diff --git a/samples/client/3_0_3_unit_test/python/.openapi-generator/FILES b/samples/client/3_0_3_unit_test/python/.openapi-generator/FILES index eb0d569bd5c..4fa23dcd04a 100644 --- a/samples/client/3_0_3_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_0_3_unit_test/python/.openapi-generator/FILES @@ -118,179 +118,353 @@ docs/components/schema/uri_format.md docs/components/schema/uri_reference_format.md docs/components/schema/uri_template_format.md docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md +docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md +docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_request_body/post.md +docs/paths/request_body_post_allof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_simple_types_request_body/post.md +docs/paths/request_body_post_allof_simple_types_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +docs/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_anyof_complex_types_request_body/post.md +docs/paths/request_body_post_anyof_complex_types_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_anyof_request_body/post.md +docs/paths/request_body_post_anyof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +docs/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +docs/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_by_int_request_body/post.md +docs/paths/request_body_post_by_int_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_by_number_request_body/post.md +docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_by_small_number_request_body/post.md +docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md +docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_email_format_request_body/post.md +docs/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +docs/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enums_in_properties_request_body/post.md +docs/paths/request_body_post_enums_in_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_forbidden_property_request_body/post.md +docs/paths/request_body_post_forbidden_property_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_hostname_format_request_body/post.md +docs/paths/request_body_post_hostname_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +docs/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md +docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md +docs/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ipv4_format_request_body/post.md +docs/paths/request_body_post_ipv4_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ipv6_format_request_body/post.md +docs/paths/request_body_post_ipv6_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_json_pointer_format_request_body/post.md +docs/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maximum_validation_request_body/post.md +docs/paths/request_body_post_maximum_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maxitems_validation_request_body/post.md +docs/paths/request_body_post_maxitems_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maxlength_validation_request_body/post.md +docs/paths/request_body_post_maxlength_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maxproperties_validation_request_body/post.md +docs/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minimum_validation_request_body/post.md +docs/paths/request_body_post_minimum_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minitems_validation_request_body/post.md +docs/paths/request_body_post_minitems_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minlength_validation_request_body/post.md +docs/paths/request_body_post_minlength_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minproperties_validation_request_body/post.md +docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_items_request_body/post.md +docs/paths/request_body_post_nested_items_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_request_body/post.md +docs/paths/request_body_post_not_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +docs/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +docs/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_object_properties_validation_request_body/post.md +docs/paths/request_body_post_object_properties_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +docs/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_oneof_complex_types_request_body/post.md +docs/paths/request_body_post_oneof_complex_types_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_oneof_request_body/post.md +docs/paths/request_body_post_oneof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +docs/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +docs/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_oneof_with_required_request_body/post.md +docs/paths/request_body_post_oneof_with_required_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +docs/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_pattern_validation_request_body/post.md +docs/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +docs/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md +docs/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_allof_request_body/post.md +docs/paths/request_body_post_ref_in_allof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_anyof_request_body/post.md +docs/paths/request_body_post_ref_in_anyof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_items_request_body/post.md +docs/paths/request_body_post_ref_in_items_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_not_request_body/post.md +docs/paths/request_body_post_ref_in_not_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_oneof_request_body/post.md +docs/paths/request_body_post_ref_in_oneof_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_ref_in_property_request_body/post.md +docs/paths/request_body_post_ref_in_property_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_required_default_validation_request_body/post.md +docs/paths/request_body_post_required_default_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_required_validation_request_body/post.md +docs/paths/request_body_post_required_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_required_with_empty_array_request_body/post.md +docs/paths/request_body_post_required_with_empty_array_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +docs/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_simple_enum_validation_request_body/post.md +docs/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +docs/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md +docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +docs/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uri_format_request_body/post.md +docs/paths/request_body_post_uri_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uri_reference_format_request_body/post.md +docs/paths/request_body_post_uri_reference_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uri_template_format_request_body/post.md +docs/paths/request_body_post_uri_template_format_request_body/post/request_body/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md +docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md +docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md +docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md +docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_response_body_for_content_types/post.md +docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md +docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md +docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/servers/server_0.md git_push.sh migration_2_0_0.md diff --git a/samples/client/3_0_3_unit_test/python/README.md b/samples/client/3_0_3_unit_test/python/README.md index 39f5a554744..b037a68a20e 100644 --- a/samples/client/3_0_3_unit_test/python/README.md +++ b/samples/client/3_0_3_unit_test/python/README.md @@ -112,7 +112,7 @@ N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. See te below accessors for string data: -- type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ +- type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -131,7 +131,7 @@ For example the string payload '2023-12-20' is validates to both of these schema format: date ``` Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data -is stored as a string, with a date accessor, instance.as_date_ +is stored as a string, with a date accessor, instance.as_date ## Getting Started diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/_not.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/_not.md index 5e9d8935dfb..709f3043224 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/_not.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/_not.md @@ -1,22 +1,28 @@ +# _Not unit_test_api.components.schema._not -# Schema _Not +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_not](#not2) | int | int | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[Not2](#not2) | int | int # Not2 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_allows_a_schema_which_should_validate.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_allows_a_schema_which_should_validate.md index cba6bd203ff..7f9ffd1dbd7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_allows_a_schema_which_should_validate.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_allows_a_schema_which_should_validate.md @@ -1,16 +1,59 @@ +# AdditionalpropertiesAllowsASchemaWhichShouldValidate unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate -# Schema AdditionalpropertiesAllowsASchemaWhichShouldValidate +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](#additionalpropertiesallowsaschemawhichshouldvalidatedict) | + +## AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + bool, + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | bool | any string name can be used but the value must be the correct type | [optional] + +## AdditionalpropertiesAllowsASchemaWhichShouldValidateDict +``` +base class: schemas.immutabledict[str, bool] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | bool | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | bool | bool | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](#additionalpropertiesallowsaschemawhichshouldvalidatedict) | a constructor +get_additional_property_ | str | bool, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_are_allowed_by_default.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_are_allowed_by_default.md index a66981d7b6a..721c0f2453a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_are_allowed_by_default.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_are_allowed_by_default.md @@ -1,16 +1,46 @@ +# AdditionalpropertiesAreAllowedByDefault unit_test_api.components.schema.additionalproperties_are_allowed_by_default -# Schema AdditionalpropertiesAreAllowedByDefault +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalpropertiesAreAllowedByDefaultDictInput](#additionalpropertiesareallowedbydefaultdictinput), [AdditionalpropertiesAreAllowedByDefaultDict](#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AdditionalpropertiesAreAllowedByDefaultDict](#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## AdditionalpropertiesAreAllowedByDefaultDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AdditionalpropertiesAreAllowedByDefaultDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalpropertiesAreAllowedByDefaultDictInput](#additionalpropertiesareallowedbydefaultdictinput), [AdditionalpropertiesAreAllowedByDefaultDict](#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AdditionalpropertiesAreAllowedByDefaultDict](#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_can_exist_by_itself.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_can_exist_by_itself.md index 556eb8391d9..91734799218 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_can_exist_by_itself.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_can_exist_by_itself.md @@ -1,14 +1,39 @@ +# AdditionalpropertiesCanExistByItself unit_test_api.components.schema.additionalproperties_can_exist_by_itself -# Schema AdditionalpropertiesCanExistByItself +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalpropertiesCanExistByItselfDictInput](#additionalpropertiescanexistbyitselfdictinput), [AdditionalpropertiesCanExistByItselfDict](#additionalpropertiescanexistbyitselfdict) | [AdditionalpropertiesCanExistByItselfDict](#additionalpropertiescanexistbyitselfdict) | + +## AdditionalpropertiesCanExistByItselfDictInput +``` +type: typing.Mapping[ + str, + bool, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | bool | any string name can be used but the value must be the correct type | [optional] + +## AdditionalpropertiesCanExistByItselfDict +``` +base class: schemas.immutabledict[str, bool] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | bool | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | bool | bool | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalpropertiesCanExistByItselfDictInput](#additionalpropertiescanexistbyitselfdictinput), [AdditionalpropertiesCanExistByItselfDict](#additionalpropertiescanexistbyitselfdict) | [AdditionalpropertiesCanExistByItselfDict](#additionalpropertiescanexistbyitselfdict) | a constructor +get_additional_property_ | str | bool, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_should_not_look_in_applicators.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_should_not_look_in_applicators.md index 5a33562dc88..3ffbff64683 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_should_not_look_in_applicators.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/additionalproperties_should_not_look_in_applicators.md @@ -1,33 +1,86 @@ +# AdditionalpropertiesShouldNotLookInApplicators unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators -# Schema AdditionalpropertiesShouldNotLookInApplicators +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalpropertiesShouldNotLookInApplicatorsDictInput](#additionalpropertiesshouldnotlookinapplicatorsdictinput), [AdditionalpropertiesShouldNotLookInApplicatorsDict](#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AdditionalpropertiesShouldNotLookInApplicatorsDict](#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## AdditionalpropertiesShouldNotLookInApplicatorsDictInput +``` +type: typing.Mapping[ + str, + bool, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**any_string_name** | bool | any string name can be used but the value must be the correct type | [optional] + +## AdditionalpropertiesShouldNotLookInApplicatorsDict +``` +base class: schemas.immutabledict[str, bool] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | bool | bool | any string name can be used but the value must be the correct type | [optional] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | bool | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalpropertiesShouldNotLookInApplicatorsDictInput](#additionalpropertiesshouldnotlookinapplicatorsdictinput), [AdditionalpropertiesShouldNotLookInApplicatorsDict](#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AdditionalpropertiesShouldNotLookInApplicatorsDict](#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | bool, schemas.Unset | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# allof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof.md index d08a48df329..54b80ec27a8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof.md @@ -1,42 +1,101 @@ +# Allof unit_test_api.components.schema.allof -# Schema Allof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#allof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# allof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | int | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | int | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | int | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | int | int | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# allof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_combined_with_anyof_oneof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_combined_with_anyof_oneof.md index 23f43de814f..5c3d9d5885c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_combined_with_anyof_oneof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_combined_with_anyof_oneof.md @@ -1,44 +1,56 @@ +# AllofCombinedWithAnyofOneof unit_test_api.components.schema.allof_combined_with_anyof_oneof -# Schema AllofCombinedWithAnyofOneof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_03) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_03](#_03) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_02) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_02](#_02) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -# allof _03 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -# anyof _02 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -# oneof _0 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +# _03 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +# _02 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_simple_types.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_simple_types.md index c2748f09ec7..9253a5b8437 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_simple_types.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_simple_types.md @@ -1,30 +1,39 @@ +# AllofSimpleTypes unit_test_api.components.schema.allof_simple_types -# Schema AllofSimpleTypes +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#allof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -# allof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_base_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_base_schema.md index ceefae17f6a..5870ed59a86 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_base_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_base_schema.md @@ -1,48 +1,132 @@ +# AllofWithBaseSchema unit_test_api.components.schema.allof_with_base_schema -# Schema AllofWithBaseSchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AllofWithBaseSchemaDictInput](#allofwithbaseschemadictinput), [AllofWithBaseSchemaDict](#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AllofWithBaseSchemaDict](#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## AllofWithBaseSchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | int | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AllofWithBaseSchemaDict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | int | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | int | int | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | int | | + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AllofWithBaseSchemaDictInput](#allofwithbaseschemadictinput), [AllofWithBaseSchemaDict](#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [AllofWithBaseSchemaDict](#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#allof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# allof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, str] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# allof _1 +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str | | -## Type Info -Input Type | Accessed Type | Description | Notes +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# _1 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**baz** | None | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, None] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**baz** | None | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**baz** | None | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baz** | None | None | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_one_empty_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_one_empty_schema.md index e01a3b36dec..5cf9db40ba4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_one_empty_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_one_empty_schema.md @@ -1,22 +1,28 @@ +# AllofWithOneEmptySchema unit_test_api.components.schema.allof_with_one_empty_schema -# Schema AllofWithOneEmptySchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_first_empty_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_first_empty_schema.md index caef2a21520..356803ec24c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_first_empty_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_first_empty_schema.md @@ -1,30 +1,39 @@ +# AllofWithTheFirstEmptySchema unit_test_api.components.schema.allof_with_the_first_empty_schema -# Schema AllofWithTheFirstEmptySchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#allof-_1) | float, int | float, int | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | float, int | float, int -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -# allof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_last_empty_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_last_empty_schema.md index df419248f99..1b2e4fb7e53 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_last_empty_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_the_last_empty_schema.md @@ -1,30 +1,39 @@ +# AllofWithTheLastEmptySchema unit_test_api.components.schema.allof_with_the_last_empty_schema -# Schema AllofWithTheLastEmptySchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | float, int | float, int | | -[_1](#allof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | float, int | float, int +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | -# allof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_two_empty_schemas.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_two_empty_schemas.md index 2ed3273147c..aa9c99a101f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_two_empty_schemas.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/allof_with_two_empty_schemas.md @@ -1,30 +1,39 @@ +# AllofWithTwoEmptySchemas unit_test_api.components.schema.allof_with_two_empty_schemas -# Schema AllofWithTwoEmptySchemas +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#allof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -# allof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof.md index 765605d8307..042780da106 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof.md @@ -1,30 +1,39 @@ +# Anyof unit_test_api.components.schema.anyof -# Schema Anyof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | int | int | | -[_1](#anyof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | int | int +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# anyof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | -# anyof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_complex_types.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_complex_types.md index 72a9abd1d31..aaa645bbf34 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_complex_types.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_complex_types.md @@ -1,42 +1,101 @@ +# AnyofComplexTypes unit_test_api.components.schema.anyof_complex_types -# Schema AnyofComplexTypes +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#anyof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# anyof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | int | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | int | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | int | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | int | int | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# anyof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_base_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_base_schema.md index 490bfedbe1b..5c150ef6fa1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_base_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_base_schema.md @@ -1,30 +1,39 @@ +# AnyofWithBaseSchema unit_test_api.components.schema.anyof_with_base_schema -# Schema AnyofWithBaseSchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#anyof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# anyof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -# anyof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_one_empty_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_one_empty_schema.md index e530adefbeb..d4243c366e9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_one_empty_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/anyof_with_one_empty_schema.md @@ -1,30 +1,39 @@ +# AnyofWithOneEmptySchema unit_test_api.components.schema.anyof_with_one_empty_schema -# Schema AnyofWithOneEmptySchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | float, int | float, int | | -[_1](#anyof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | float, int | float, int +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# anyof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | -# anyof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/array_type_matches_arrays.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/array_type_matches_arrays.md index e850c0c4405..c16d15867d8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/array_type_matches_arrays.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/array_type_matches_arrays.md @@ -1,14 +1,52 @@ +# ArrayTypeMatchesArrays unit_test_api.components.schema.array_type_matches_arrays -# Schema ArrayTypeMatchesArrays +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayTypeMatchesArraysTupleInput](#arraytypematchesarraystupleinput), [ArrayTypeMatchesArraysTuple](#arraytypematchesarraystuple) | [ArrayTypeMatchesArraysTuple](#arraytypematchesarraystuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## ArrayTypeMatchesArraysTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## ArrayTypeMatchesArraysTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayTypeMatchesArraysTupleInput](#arraytypematchesarraystupleinput), [ArrayTypeMatchesArraysTuple](#arraytypematchesarraystuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/boolean_type_matches_booleans.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/boolean_type_matches_booleans.md index 4d44e38a2e2..40353276217 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/boolean_type_matches_booleans.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/boolean_type_matches_booleans.md @@ -1,9 +1,12 @@ +# BooleanTypeMatchesBooleans unit_test_api.components.schema.boolean_type_matches_booleans -# Schema BooleanTypeMatchesBooleans +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bool | bool | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_int.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_int.md index 0f1353b94fa..1945ad2240f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_int.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_int.md @@ -1,9 +1,12 @@ +# ByInt unit_test_api.components.schema.by_int -# Schema ByInt +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_number.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_number.md index d636930ba7a..46ce873dcf1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_number.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_number.md @@ -1,9 +1,12 @@ +# ByNumber unit_test_api.components.schema.by_number -# Schema ByNumber +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_small_number.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_small_number.md index 14ec7faf883..e69123a95f8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/by_small_number.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/by_small_number.md @@ -1,9 +1,12 @@ +# BySmallNumber unit_test_api.components.schema.by_small_number -# Schema BySmallNumber +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/date_time_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/date_time_format.md index ba69569619b..672d9536be7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/date_time_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/date_time_format.md @@ -1,9 +1,12 @@ +# DateTimeFormat unit_test_api.components.schema.date_time_format -# Schema DateTimeFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | value must conform to RFC-3339 date-time +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | value must conform to RFC-3339 date-time [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/email_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/email_format.md index 3aa8410c4b3..19c83e8d25b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/email_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/email_format.md @@ -1,9 +1,12 @@ +# EmailFormat unit_test_api.components.schema.email_format -# Schema EmailFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with0_does_not_match_false.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with0_does_not_match_false.md index 6d5d909c347..15b5dc53b6e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with0_does_not_match_false.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with0_does_not_match_false.md @@ -1,9 +1,12 @@ +# EnumWith0DoesNotMatchFalse unit_test_api.components.schema.enum_with0_does_not_match_false -# Schema EnumWith0DoesNotMatchFalse +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | must be one of [0] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | must be one of [0] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with1_does_not_match_true.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with1_does_not_match_true.md index 149426f1694..6615b73908f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with1_does_not_match_true.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with1_does_not_match_true.md @@ -1,9 +1,12 @@ +# EnumWith1DoesNotMatchTrue unit_test_api.components.schema.enum_with1_does_not_match_true -# Schema EnumWith1DoesNotMatchTrue +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | must be one of [1] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | must be one of [1] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_escaped_characters.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_escaped_characters.md index bde7746d5ff..3c0ea810a81 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_escaped_characters.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_escaped_characters.md @@ -1,9 +1,12 @@ +# EnumWithEscapedCharacters unit_test_api.components.schema.enum_with_escaped_characters -# Schema EnumWithEscapedCharacters +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["foo\nbar", "foo\rbar"] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] | must be one of ["foo\nbar", "foo\rbar"] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_false_does_not_match0.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_false_does_not_match0.md index c2d25bfa2e2..fdc3978854d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_false_does_not_match0.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_false_does_not_match0.md @@ -1,9 +1,12 @@ +# EnumWithFalseDoesNotMatch0 unit_test_api.components.schema.enum_with_false_does_not_match0 -# Schema EnumWithFalseDoesNotMatch0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | must be one of [False] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[False] | typing.Literal[False] | must be one of [False] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_true_does_not_match1.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_true_does_not_match1.md index 917978ffc0e..b77e0d0ce8c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_true_does_not_match1.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enum_with_true_does_not_match1.md @@ -1,9 +1,12 @@ +# EnumWithTrueDoesNotMatch1 unit_test_api.components.schema.enum_with_true_does_not_match1 -# Schema EnumWithTrueDoesNotMatch1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | must be one of [True] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[True] | typing.Literal[True] | must be one of [True] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/enums_in_properties.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/enums_in_properties.md index 5a745cc9693..11533a2bda0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/enums_in_properties.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/enums_in_properties.md @@ -1,16 +1,46 @@ +# EnumsInProperties unit_test_api.components.schema.enums_in_properties -# Schema EnumsInProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EnumsInPropertiesDictInput](#enumsinpropertiesdictinput), [EnumsInPropertiesDict](#enumsinpropertiesdict) | [EnumsInPropertiesDict](#enumsinpropertiesdict) | + +## EnumsInPropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**bar** | typing.Literal["bar"] | | must be one of ["bar"] +**foo** | typing.Literal["foo"] | | [optional] must be one of ["foo"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## EnumsInPropertiesDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | typing.Literal["bar"] | | must be one of ["bar"] +**foo** | typing.Literal["foo"], schemas.Unset | | [optional] must be one of ["foo"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | typing.Literal["bar"] | | must be one of ["bar"] +**foo** | typing.Literal["foo"], schemas.Unset | | [optional] must be one of ["foo"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | str | str | | must be one of ["bar"] -**foo** | str | str | | [optional] must be one of ["foo"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [EnumsInPropertiesDictInput](#enumsinpropertiesdictinput), [EnumsInPropertiesDict](#enumsinpropertiesdict) | [EnumsInPropertiesDict](#enumsinpropertiesdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/forbidden_property.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/forbidden_property.md index 863b0bacfe5..36656ca9031 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/forbidden_property.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/forbidden_property.md @@ -1,35 +1,68 @@ +# ForbiddenProperty unit_test_api.components.schema.forbidden_property -# Schema ForbiddenProperty +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ForbiddenPropertyDictInput](#forbiddenpropertydictinput), [ForbiddenPropertyDict](#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ForbiddenPropertyDict](#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## ForbiddenPropertyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.Foo](#properties-foo) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ForbiddenPropertyDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# properties Foo +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ForbiddenPropertyDictInput](#forbiddenpropertydictinput), [ForbiddenPropertyDict](#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ForbiddenPropertyDict](#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# Foo +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_not](#properties-foo-_not) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_Not](#_not) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# properties Foo _Not +# _Not +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/hostname_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/hostname_format.md index 4eccf34613a..df9411b9603 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/hostname_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/hostname_format.md @@ -1,9 +1,12 @@ +# HostnameFormat unit_test_api.components.schema.hostname_format -# Schema HostnameFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/integer_type_matches_integers.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/integer_type_matches_integers.md index b8a97037bc9..6630731f225 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/integer_type_matches_integers.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/integer_type_matches_integers.md @@ -1,9 +1,12 @@ +# IntegerTypeMatchesIntegers unit_test_api.components.schema.integer_type_matches_integers -# Schema IntegerTypeMatchesIntegers +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md index 3b9a9c06e25..c20ec1b1bde 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md @@ -1,9 +1,12 @@ +# InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf -# Schema InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_string_value_for_default.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_string_value_for_default.md index ef2a4cd7abd..b133dafe889 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_string_value_for_default.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/invalid_string_value_for_default.md @@ -1,15 +1,43 @@ +# InvalidStringValueForDefault unit_test_api.components.schema.invalid_string_value_for_default -# Schema InvalidStringValueForDefault +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[InvalidStringValueForDefaultDictInput](#invalidstringvaluefordefaultdictinput), [InvalidStringValueForDefaultDict](#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [InvalidStringValueForDefaultDict](#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## InvalidStringValueForDefaultDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | str | | [optional] if omitted the server will use the default value of bad +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## InvalidStringValueForDefaultDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] if omitted the server will use the default value of bad +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] if omitted the server will use the default value of bad -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | str | str | | [optional] if omitted the server will use the default value of bad -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [InvalidStringValueForDefaultDictInput](#invalidstringvaluefordefaultdictinput), [InvalidStringValueForDefaultDict](#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [InvalidStringValueForDefaultDict](#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv4_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv4_format.md index d4a78f03f8f..78d8cc1092c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv4_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv4_format.md @@ -1,9 +1,12 @@ +# Ipv4Format unit_test_api.components.schema.ipv4_format -# Schema Ipv4Format +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv6_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv6_format.md index ecd1d648216..a72f9736166 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv6_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ipv6_format.md @@ -1,9 +1,12 @@ +# Ipv6Format unit_test_api.components.schema.ipv6_format -# Schema Ipv6Format +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/json_pointer_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/json_pointer_format.md index 789540a7aca..98e8b61825c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/json_pointer_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/json_pointer_format.md @@ -1,9 +1,12 @@ +# JsonPointerFormat unit_test_api.components.schema.json_pointer_format -# Schema JsonPointerFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation.md index 7e8b703a2b4..378b58f8023 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation.md @@ -1,9 +1,12 @@ +# MaximumValidation unit_test_api.components.schema.maximum_validation -# Schema MaximumValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation_with_unsigned_integer.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation_with_unsigned_integer.md index 7975f85bee7..d67df0a95ec 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation_with_unsigned_integer.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maximum_validation_with_unsigned_integer.md @@ -1,9 +1,12 @@ +# MaximumValidationWithUnsignedInteger unit_test_api.components.schema.maximum_validation_with_unsigned_integer -# Schema MaximumValidationWithUnsignedInteger +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxitems_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxitems_validation.md index 809a6a3159f..e7b2d56546b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxitems_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxitems_validation.md @@ -1,9 +1,12 @@ +# MaxitemsValidation unit_test_api.components.schema.maxitems_validation -# Schema MaxitemsValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxlength_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxlength_validation.md index 92c5a232f39..5f3a102065f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxlength_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxlength_validation.md @@ -1,9 +1,12 @@ +# MaxlengthValidation unit_test_api.components.schema.maxlength_validation -# Schema MaxlengthValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties0_means_the_object_is_empty.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties0_means_the_object_is_empty.md index 800dfc4f575..5477108f943 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties0_means_the_object_is_empty.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties0_means_the_object_is_empty.md @@ -1,9 +1,12 @@ +# Maxproperties0MeansTheObjectIsEmpty unit_test_api.components.schema.maxproperties0_means_the_object_is_empty -# Schema Maxproperties0MeansTheObjectIsEmpty +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties_validation.md index cc35220fc2a..cd9d2b02984 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/maxproperties_validation.md @@ -1,9 +1,12 @@ +# MaxpropertiesValidation unit_test_api.components.schema.maxproperties_validation -# Schema MaxpropertiesValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation.md index 08865693deb..d90d5b573de 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation.md @@ -1,9 +1,12 @@ +# MinimumValidation unit_test_api.components.schema.minimum_validation -# Schema MinimumValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation_with_signed_integer.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation_with_signed_integer.md index 1687dd92bc9..b3c9f3dba7f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation_with_signed_integer.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/minimum_validation_with_signed_integer.md @@ -1,9 +1,12 @@ +# MinimumValidationWithSignedInteger unit_test_api.components.schema.minimum_validation_with_signed_integer -# Schema MinimumValidationWithSignedInteger +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/minitems_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/minitems_validation.md index e42d8361c32..76b3b846a9f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/minitems_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/minitems_validation.md @@ -1,9 +1,12 @@ +# MinitemsValidation unit_test_api.components.schema.minitems_validation -# Schema MinitemsValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/minlength_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/minlength_validation.md index bcb9fd7b473..149cd02b965 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/minlength_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/minlength_validation.md @@ -1,9 +1,12 @@ +# MinlengthValidation unit_test_api.components.schema.minlength_validation -# Schema MinlengthValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/minproperties_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/minproperties_validation.md index 1ee75611fda..87f643e4e40 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/minproperties_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/minproperties_validation.md @@ -1,9 +1,12 @@ +# MinpropertiesValidation unit_test_api.components.schema.minproperties_validation -# Schema MinpropertiesValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_allof_to_check_validation_semantics.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_allof_to_check_validation_semantics.md index 483bde76228..216fa2e6bbc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_allof_to_check_validation_semantics.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_allof_to_check_validation_semantics.md @@ -1,35 +1,44 @@ +# NestedAllofToCheckValidationSemantics unit_test_api.components.schema.nested_allof_to_check_validation_semantics -# Schema NestedAllofToCheckValidationSemantics +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0-allof-_02) | None | None | | - -# allof _0 allof _02 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_02](#_02) | None | None + +# _02 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_anyof_to_check_validation_semantics.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_anyof_to_check_validation_semantics.md index 5eeac7872e5..69dbb3c5ed1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_anyof_to_check_validation_semantics.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_anyof_to_check_validation_semantics.md @@ -1,35 +1,44 @@ +# NestedAnyofToCheckValidationSemantics unit_test_api.components.schema.nested_anyof_to_check_validation_semantics -# Schema NestedAnyofToCheckValidationSemantics +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# anyof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0-anyof-_02) | None | None | | - -# anyof _0 anyof _02 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_02](#_02) | None | None + +# _02 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_items.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_items.md index e8c73f20b34..12858c9191b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_items.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_items.md @@ -1,50 +1,202 @@ +# NestedItems unit_test_api.components.schema.nested_items -# Schema NestedItems +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NestedItemsTupleInput](#nesteditemstupleinput), [NestedItemsTuple](#nesteditemstuple) | [NestedItemsTuple](#nesteditemstuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | list, tuple | tuple | | +## NestedItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput3, + ItemsTuple3 + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput3, + ItemsTuple3 + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput3](#itemstupleinput3), [ItemsTuple3](#itemstuple3) | | + +## NestedItemsTuple +``` +base class: typing.Tuple[ + ItemsTuple3, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [NestedItemsTupleInput](#nesteditemstupleinput), [NestedItemsTuple](#nesteditemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple3](#itemstuple3) | This method is used under the hood when instance[0] is called # Items +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput3](#itemstupleinput3), [ItemsTuple3](#itemstuple3) | [ItemsTuple3](#itemstuple3) | + +## ItemsTupleInput3 +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput2, + ItemsTuple2 + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput2, + ItemsTuple2 + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) | | + +## ItemsTuple3 +``` +base class: typing.Tuple[ + ItemsTuple2, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput3](#itemstupleinput3), [ItemsTuple3](#itemstuple3) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple2](#itemstuple2) | This method is used under the hood when instance[0] is called + +# Items2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) | [ItemsTuple2](#itemstuple2) | -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## ItemsTupleInput2 +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items-items2) | list, tuple | tuple | | +## ItemsTuple2 +``` +base class: typing.Tuple[ + ItemsTuple, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -# Items Items2 +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple](#itemstuple) | This method is used under the hood when instance[0] is called -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +# Items3 +``` +type: schemas.Schema +``` -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items-items2-items3) | list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | [ItemsTuple](#itemstuple) | -# Items Items2 Items3 +## ItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +float, int | | -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## ItemsTuple +``` +base class: typing.Tuple[ + typing.Union[int, float], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | float, int | float, int | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | float, int | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_oneof_to_check_validation_semantics.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_oneof_to_check_validation_semantics.md index e1ef59ebd0b..95a56bdfb5a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_oneof_to_check_validation_semantics.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/nested_oneof_to_check_validation_semantics.md @@ -1,35 +1,44 @@ +# NestedOneofToCheckValidationSemantics unit_test_api.components.schema.nested_oneof_to_check_validation_semantics -# Schema NestedOneofToCheckValidationSemantics +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0-oneof-_02) | None | None | | - -# oneof _0 oneof _02 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_02](#_02) | None | None + +# _02 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/not_more_complex_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/not_more_complex_schema.md index ff34e22c966..35f539f5e86 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/not_more_complex_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/not_more_complex_schema.md @@ -1,28 +1,59 @@ +# NotMoreComplexSchema unit_test_api.components.schema.not_more_complex_schema -# Schema NotMoreComplexSchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_not](#_not) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_Not](#_not) | [NotDictInput](#notdictinput), [NotDict](#notdict) | [NotDict](#notdict) # _Not +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NotDictInput](#notdictinput), [NotDict](#notdict) | [NotDict](#notdict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## NotDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**foo** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## NotDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NotDictInput](#notdictinput), [NotDict](#notdict) | [NotDict](#notdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/nul_characters_in_strings.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/nul_characters_in_strings.md index e6070446d19..6b2ae0f5596 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/nul_characters_in_strings.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/nul_characters_in_strings.md @@ -1,9 +1,12 @@ +# NulCharactersInStrings unit_test_api.components.schema.nul_characters_in_strings -# Schema NulCharactersInStrings +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["hello\x00there"] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] | must be one of ["hello\x00there"] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/null_type_matches_only_the_null_object.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/null_type_matches_only_the_null_object.md index 0ee81b57219..d61c3f1ddd1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/null_type_matches_only_the_null_object.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/null_type_matches_only_the_null_object.md @@ -1,9 +1,12 @@ +# NullTypeMatchesOnlyTheNullObject unit_test_api.components.schema.null_type_matches_only_the_null_object -# Schema NullTypeMatchesOnlyTheNullObject +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/number_type_matches_numbers.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/number_type_matches_numbers.md index 76e4ce0521f..cac70e72fdc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/number_type_matches_numbers.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/number_type_matches_numbers.md @@ -1,9 +1,12 @@ +# NumberTypeMatchesNumbers unit_test_api.components.schema.number_type_matches_numbers -# Schema NumberTypeMatchesNumbers +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/object_properties_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/object_properties_validation.md index 6c04cd66b0b..9d0d16a0fc2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/object_properties_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/object_properties_validation.md @@ -1,16 +1,46 @@ +# ObjectPropertiesValidation unit_test_api.components.schema.object_properties_validation -# Schema ObjectPropertiesValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectPropertiesValidationDictInput](#objectpropertiesvalidationdictinput), [ObjectPropertiesValidationDict](#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ObjectPropertiesValidationDict](#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## ObjectPropertiesValidationDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | int | | [optional] +**bar** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectPropertiesValidationDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | int, schemas.Unset | | [optional] +**bar** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | int, schemas.Unset | | [optional] +**bar** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | int | int | | [optional] -**bar** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectPropertiesValidationDictInput](#objectpropertiesvalidationdictinput), [ObjectPropertiesValidationDict](#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ObjectPropertiesValidationDict](#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/object_type_matches_objects.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/object_type_matches_objects.md index ebe31f82632..71b0fb1fa2c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/object_type_matches_objects.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/object_type_matches_objects.md @@ -1,9 +1,12 @@ +# ObjectTypeMatchesObjects unit_test_api.components.schema.object_type_matches_objects -# Schema ObjectTypeMatchesObjects +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof.md index fab731375f6..1d897561347 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof.md @@ -1,30 +1,39 @@ +# Oneof unit_test_api.components.schema.oneof -# Schema Oneof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | int | int | | -[_1](#oneof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | int | int +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | -# oneof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_complex_types.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_complex_types.md index 362cd2aeed5..f22cb43716a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_complex_types.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_complex_types.md @@ -1,42 +1,101 @@ +# OneofComplexTypes unit_test_api.components.schema.oneof_complex_types -# Schema OneofComplexTypes +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#oneof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# oneof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | int | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | int | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | int | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | int | int | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# oneof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_base_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_base_schema.md index f6f138c0729..4230ca82320 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_base_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_base_schema.md @@ -1,30 +1,39 @@ +# OneofWithBaseSchema unit_test_api.components.schema.oneof_with_base_schema -# Schema OneofWithBaseSchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#oneof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -# oneof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_empty_schema.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_empty_schema.md index cb048a924d8..9a5e93ffe25 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_empty_schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_empty_schema.md @@ -1,30 +1,39 @@ +# OneofWithEmptySchema unit_test_api.components.schema.oneof_with_empty_schema -# Schema OneofWithEmptySchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | float, int | float, int | | -[_1](#oneof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | float, int | float, int +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | -# oneof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_required.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_required.md index 999061a3f93..c3df344c8f2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_required.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/oneof_with_required.md @@ -1,44 +1,105 @@ +# OneofWithRequired unit_test_api.components.schema.oneof_with_required -# Schema OneofWithRequired +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -[_1](#oneof-_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` -# oneof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_0Dict](#_0dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# oneof _1 +# _1 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baz** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +**baz** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**baz** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**baz** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_1Dict](#_1dict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_is_not_anchored.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_is_not_anchored.md index a5d344a1e1c..172c789e202 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_is_not_anchored.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_is_not_anchored.md @@ -1,9 +1,12 @@ +# PatternIsNotAnchored unit_test_api.components.schema.pattern_is_not_anchored -# Schema PatternIsNotAnchored +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_validation.md index 6d7b6821bfa..97fc2c367fd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/pattern_validation.md @@ -1,9 +1,12 @@ +# PatternValidation unit_test_api.components.schema.pattern_validation -# Schema PatternValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/properties_with_escaped_characters.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/properties_with_escaped_characters.md index 5a4e513d24e..f8e20241ea3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/properties_with_escaped_characters.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/properties_with_escaped_characters.md @@ -1,20 +1,43 @@ +# PropertiesWithEscapedCharacters unit_test_api.components.schema.properties_with_escaped_characters -# Schema PropertiesWithEscapedCharacters +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PropertiesWithEscapedCharactersDictInput](#propertieswithescapedcharactersdictinput), [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## PropertiesWithEscapedCharactersDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo\nbar** | float, int | | [optional] +**foo\"bar** | float, int | | [optional] +**foo\\bar** | float, int | | [optional] +**foo\rbar** | float, int | | [optional] +**foo\tbar** | float, int | | [optional] +**foo\fbar** | float, int | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## PropertiesWithEscapedCharactersDict +``` +base class: schemas.immutabledict[str, typing.Union[int, float]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo\nbar** | float, int | float, int | | [optional] -**foo\"bar** | float, int | float, int | | [optional] -**foo\\bar** | float, int | float, int | | [optional] -**foo\rbar** | float, int | float, int | | [optional] -**foo\tbar** | float, int | float, int | | [optional] -**foo\fbar** | float, int | float, int | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PropertiesWithEscapedCharactersDictInput](#propertieswithescapedcharactersdictinput), [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | float, int | This model has invalid python names so this method is used under the hood when you access instance["foo\nbar"], instance["foo\"bar"], instance["foo\\bar"], instance["foo\rbar"], instance["foo\tbar"], instance["foo\fbar"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/property_named_ref_that_is_not_a_reference.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/property_named_ref_that_is_not_a_reference.md index 1df2ee9f7bc..d87bd15550d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/property_named_ref_that_is_not_a_reference.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/property_named_ref_that_is_not_a_reference.md @@ -1,15 +1,38 @@ +# PropertyNamedRefThatIsNotAReference unit_test_api.components.schema.property_named_ref_that_is_not_a_reference -# Schema PropertyNamedRefThatIsNotAReference +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PropertyNamedRefThatIsNotAReferenceDictInput](#propertynamedrefthatisnotareferencedictinput), [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## PropertyNamedRefThatIsNotAReferenceDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**$ref** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## PropertyNamedRefThatIsNotAReferenceDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**$ref** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PropertyNamedRefThatIsNotAReferenceDictInput](#propertynamedrefthatisnotareferencedictinput), [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | str | This model has invalid python names so this method is used under the hood when you access instance["$ref"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_additionalproperties.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_additionalproperties.md index 79c034e5734..6c0739ad78a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_additionalproperties.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_additionalproperties.md @@ -1,14 +1,41 @@ +# RefInAdditionalproperties unit_test_api.components.schema.ref_in_additionalproperties -# Schema RefInAdditionalproperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RefInAdditionalpropertiesDictInput](#refinadditionalpropertiesdictinput), [RefInAdditionalpropertiesDict](#refinadditionalpropertiesdict) | [RefInAdditionalpropertiesDict](#refinadditionalpropertiesdict) | + +## RefInAdditionalpropertiesDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## RefInAdditionalpropertiesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RefInAdditionalpropertiesDictInput](#refinadditionalpropertiesdictinput), [RefInAdditionalpropertiesDict](#refinadditionalpropertiesdict) | [RefInAdditionalpropertiesDict](#refinadditionalpropertiesdict) | a constructor +get_additional_property_ | str | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_allof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_allof.md index cdcb3d2efb7..6c563963f4b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_allof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_allof.md @@ -1,15 +1,18 @@ +# RefInAllof unit_test_api.components.schema.ref_in_allof -# Schema RefInAllof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_anyof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_anyof.md index 943215b08c3..012b7825ee8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_anyof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_anyof.md @@ -1,15 +1,18 @@ +# RefInAnyof unit_test_api.components.schema.ref_in_anyof -# Schema RefInAnyof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_items.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_items.md index a7d66165332..e5bffd4b68b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_items.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_items.md @@ -1,14 +1,52 @@ +# RefInItems unit_test_api.components.schema.ref_in_items -# Schema RefInItems +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RefInItemsTupleInput](#refinitemstupleinput), [RefInItemsTuple](#refinitemstuple) | [RefInItemsTuple](#refinitemstuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | +## RefInItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## RefInItemsTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [RefInItemsTupleInput](#refinitemstupleinput), [RefInItemsTuple](#refinitemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_not.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_not.md index b82271963a9..9b083bb46dc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_not.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_not.md @@ -1,15 +1,18 @@ +# RefInNot unit_test_api.components.schema.ref_in_not -# Schema RefInNot +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_oneof.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_oneof.md index 42c5b3bf7f6..0d03c124ece 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_oneof.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_oneof.md @@ -1,15 +1,18 @@ +# RefInOneof unit_test_api.components.schema.ref_in_oneof -# Schema RefInOneof +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_property.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_property.md index dd393ffc624..128e7293ba5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_property.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/ref_in_property.md @@ -1,15 +1,42 @@ +# RefInProperty unit_test_api.components.schema.ref_in_property -# Schema RefInProperty +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RefInPropertyDictInput](#refinpropertydictinput), [RefInPropertyDict](#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RefInPropertyDict](#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## RefInPropertyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**a** | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## RefInPropertyDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**PropertyNamedRefThatIsNotAReference**](property_named_ref_that_is_not_a_reference.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RefInPropertyDictInput](#refinpropertydictinput), [RefInPropertyDict](#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RefInPropertyDict](#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_default_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_default_validation.md index 1b3fca9ccd9..8d2aad871ff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_default_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_default_validation.md @@ -1,15 +1,43 @@ +# RequiredDefaultValidation unit_test_api.components.schema.required_default_validation -# Schema RequiredDefaultValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RequiredDefaultValidationDictInput](#requireddefaultvalidationdictinput), [RequiredDefaultValidationDict](#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredDefaultValidationDict](#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## RequiredDefaultValidationDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## RequiredDefaultValidationDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RequiredDefaultValidationDictInput](#requireddefaultvalidationdictinput), [RequiredDefaultValidationDict](#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredDefaultValidationDict](#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_validation.md index 6883948c82d..6268cd56adb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_validation.md @@ -1,16 +1,46 @@ +# RequiredValidation unit_test_api.components.schema.required_validation -# Schema RequiredValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RequiredValidationDictInput](#requiredvalidationdictinput), [RequiredValidationDict](#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredValidationDict](#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## RequiredValidationDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## RequiredValidationDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RequiredValidationDictInput](#requiredvalidationdictinput), [RequiredValidationDict](#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredValidationDict](#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_empty_array.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_empty_array.md index 256cb4a2e7b..e07a7e61229 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_empty_array.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_empty_array.md @@ -1,15 +1,43 @@ +# RequiredWithEmptyArray unit_test_api.components.schema.required_with_empty_array -# Schema RequiredWithEmptyArray +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RequiredWithEmptyArrayDictInput](#requiredwithemptyarraydictinput), [RequiredWithEmptyArrayDict](#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredWithEmptyArrayDict](#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## RequiredWithEmptyArrayDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## RequiredWithEmptyArrayDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RequiredWithEmptyArrayDictInput](#requiredwithemptyarraydictinput), [RequiredWithEmptyArrayDict](#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredWithEmptyArrayDict](#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_escaped_characters.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_escaped_characters.md index 1757e6c75d6..748c9e5fda0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_escaped_characters.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/required_with_escaped_characters.md @@ -1,20 +1,42 @@ +# RequiredWithEscapedCharacters unit_test_api.components.schema.required_with_escaped_characters -# Schema RequiredWithEscapedCharacters +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[RequiredWithEscapedCharactersDictInput](#requiredwithescapedcharactersdictinput), [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## RequiredWithEscapedCharactersDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**foo\tbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo\nbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo\fbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo\rbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo\"bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**foo\\bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## RequiredWithEscapedCharactersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**foo\tbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo\nbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo\fbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo\rbar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo\"bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**foo\\bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [RequiredWithEscapedCharactersDictInput](#requiredwithescapedcharactersdictinput), [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | schemas.OUTPUT_BASE_TYPES | This model has invalid python names so this method is used under the hood when you access instance["foo\tbar"], instance["foo\nbar"], instance["foo\fbar"], instance["foo\rbar"], instance["foo\"bar"], instance["foo\\bar"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/simple_enum_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/simple_enum_validation.md index 1db7038b95d..76d4e96d6cb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/simple_enum_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/simple_enum_validation.md @@ -1,9 +1,12 @@ +# SimpleEnumValidation unit_test_api.components.schema.simple_enum_validation -# Schema SimpleEnumValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | must be one of [1, 2, 3] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | must be one of [1, 2, 3] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/string_type_matches_strings.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/string_type_matches_strings.md index f9412fa23d3..5ad002dcdb6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/string_type_matches_strings.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/string_type_matches_strings.md @@ -1,9 +1,12 @@ +# StringTypeMatchesStrings unit_test_api.components.schema.string_type_matches_strings -# Schema StringTypeMatchesStrings +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md index 8befbfec456..7b976eeb4e9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md @@ -1,15 +1,43 @@ +# TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing -# Schema TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | + +## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**alpha** | float, int | | [optional] if omitted the server will use the default value of 5 +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict +``` +base class: schemas.immutabledict[str, typing.Union[int, float]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**alpha** | float, int, schemas.Unset | | [optional] if omitted the server will use the default value of 5 +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**alpha** | float, int, schemas.Unset | | [optional] if omitted the server will use the default value of 5 -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**alpha** | float, int | float, int | | [optional] if omitted the server will use the default value of 5 -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_false_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_false_validation.md index c5ed876f2bb..a6d90d841c2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_false_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_false_validation.md @@ -1,9 +1,12 @@ +# UniqueitemsFalseValidation unit_test_api.components.schema.uniqueitems_false_validation -# Schema UniqueitemsFalseValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_validation.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_validation.md index 1737def680a..21ecd3794ff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_validation.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/uniqueitems_validation.md @@ -1,9 +1,12 @@ +# UniqueitemsValidation unit_test_api.components.schema.uniqueitems_validation -# Schema UniqueitemsValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_format.md index 60aa598e2a0..8d178c0bec8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_format.md @@ -1,9 +1,12 @@ +# UriFormat unit_test_api.components.schema.uri_format -# Schema UriFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_reference_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_reference_format.md index b8b46de0880..1cb2c8ad458 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_reference_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_reference_format.md @@ -1,9 +1,12 @@ +# UriReferenceFormat unit_test_api.components.schema.uri_reference_format -# Schema UriReferenceFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_template_format.md b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_template_format.md index 15fd1a0d4ed..45598bd12a6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_template_format.md +++ b/samples/client/3_0_3_unit_test/python/docs/components/schema/uri_template_format.md @@ -1,9 +1,12 @@ +# UriTemplateFormat unit_test_api.components.schema.uri_template_format -# Schema UriTemplateFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md index e637e6413fc..90cab5b679d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_additionalproperties_allows_a_schema_which Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesAllowsASchemaWhichShouldValidate](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f9d8955ef1a --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md index 23d583acee4..8554c96713b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_defaul Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesAreAllowedByDefault](../../components/schema/additionalproperties_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..8adb6deb24c --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md index 6bfd4b50714..c2b17ece9ba 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesCanExistByItself](../../components/schema/additionalproperties_can_exist_by_itself.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2622a9fdaeb --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md index 015cc8907ca..a44e2dcb721 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_additionalproperties_should_not_look_in_ap Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_additionalproperties_should_not_look_in_applicators_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesShouldNotLookInApplicators](../../components/schema/additionalproperties_should_not_look_in_applicators.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7d099bca735 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_additionalproperties_should_not_look_in_applicators_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md index ec7f09a911f..9be4c301450 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_bo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofCombinedWithAnyofOneof](../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a3ba5fd80bd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md index 47604080c2c..65e7855052f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Allof](../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof.Allof**](../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e5b02f5e9de --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof.Allof**](../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md index c2103c38315..d021d71c21b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_simple_types_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofSimpleTypes](../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_simple_types.AllofSimpleTypes**](../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..fa24cfc7d0b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_simple_types.AllofSimpleTypes**](../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md index d51f157c0b5..99ae566bd2f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.operat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[allof_with_base_schema.AllofWithBaseSchemaDictInput](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithBaseSchema](../../components/schema/allof_with_base_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_base_schema.AllofWithBaseSchema**](../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..5fe2da452e8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md index cbb629b7684..59c96d42ac0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithOneEmptySchema](../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..d62458c2736 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md index 7a805c24f39..c277dc958f8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTheFirstEmptySchema](../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..03a40fd48f7 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md index 282893f192d..bed16abcd6e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_with_the_last_empty_schema_request_b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_with_the_last_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTheLastEmptySchema](../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..119504f10bd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_with_the_last_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md index d24922b40ac..9a4b6dfe3bd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTwoEmptySchemas](../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..df6bea17732 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md index 1ddd7518ee3..f1cd5106c6b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_anyof_complex_types_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofComplexTypes](../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_complex_types.AnyofComplexTypes**](../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6c85ec92e7c --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_complex_types.AnyofComplexTypes**](../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md index 8d6e0da02f7..eb414b9f99a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_anyof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_anyof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Anyof](../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof.Anyof**](../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e505e7ff96d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_anyof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof.Anyof**](../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md index 05de6052cb2..f5f31bce479 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.operat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), str] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[str] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofWithBaseSchema](../../components/schema/anyof_with_base_schema.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../components/schema/anyof_with_base_schema.md) | str | str ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6bc4b61160f --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../components/schema/anyof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md index 88fb388ff2a..839e0adbee6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofWithOneEmptySchema](../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..4f690bb3250 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md index 8b8dd4f5bcb..bc9e90461e3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.ope Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), list, tuple] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ArrayTypeMatchesArrays](../../components/schema/array_type_matches_arrays.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f6e410ec73d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md index 6049ef509a1..1ade3bce191 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_boolean_type_matches_booleans_request_body Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), bool] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[bool] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_boolean_type_matches_booleans_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[BooleanTypeMatchesBooleans](../../components/schema/boolean_type_matches_booleans.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../components/schema/boolean_type_matches_booleans.md) | bool | bool ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2be4a7194f4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_boolean_type_matches_booleans_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md index 6154b97ff82..00cba812ee1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_by_int_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_by_int_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ByInt](../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_int.ByInt**](../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..0f7caeec980 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_by_int_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_int.ByInt**](../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md index 3f67c363145..c28ebf06eb6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_by_number_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_by_number_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ByNumber](../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_number.ByNumber**](../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..d25dd29ce4b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_by_number_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_number.ByNumber**](../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md index ebf5166f00a..7b53863e89e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_by_small_number_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_by_small_number_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[BySmallNumber](../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_small_number.BySmallNumber**](../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6117c581379 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_by_small_number_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_small_number.BySmallNumber**](../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md index e9793479584..4976f86275c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_date_time_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_date_time_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[DateTimeFormat](../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**date_time_format.DateTimeFormat**](../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..05af6a6936e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_date_time_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**date_time_format.DateTimeFormat**](../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md index 8425a9c846e..debadfdaa9c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_email_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_email_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EmailFormat](../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**email_format.EmailFormat**](../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..aca20031054 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_email_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**email_format.EmailFormat**](../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md index 5d96d907b55..2c310fcb689 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_bo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), float, int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[float, int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWith0DoesNotMatchFalse](../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..3aad6ce790e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md index 137539a3c91..9df7783f695 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_bod Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), float, int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[float, int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWith1DoesNotMatchTrue](../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9e236f18dce --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md index 121887f2696..38629e77cf8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), str] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[typing.Literal["foo\nbar", "foo\rbar"]] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithEscapedCharacters](../../components/schema/enum_with_escaped_characters.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..5a956275466 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md index 5879130e411..f7b4d87bb4c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_bo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), bool] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[typing.Literal[False]] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithFalseDoesNotMatch0](../../components/schema/enum_with_false_does_not_match0.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..be7d7d2185e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md index 2b40c791a84..07dba91f1b9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_bod Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), bool] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[typing.Literal[True]] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithTrueDoesNotMatch1](../../components/schema/enum_with_true_does_not_match1.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..8a09d37c3cf --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md index 2457c460612..803189418ec 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_enums_in_properties_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[enums_in_properties.EnumsInPropertiesDictInput](../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumsInProperties](../../components/schema/enums_in_properties.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enums_in_properties.EnumsInProperties**](../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..890bbb203e4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enums_in_properties.EnumsInProperties**](../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md index 8d7d92538e9..a9f0cff5656 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_forbidden_property_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[forbidden_property.ForbiddenPropertyDictInput](../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_forbidden_property_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ForbiddenProperty](../../components/schema/forbidden_property.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**forbidden_property.ForbiddenProperty**](../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..477fd4bf110 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_forbidden_property_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**forbidden_property.ForbiddenProperty**](../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md index dcbc15128a9..170dd0e6ad7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_hostname_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_hostname_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[HostnameFormat](../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**hostname_format.HostnameFormat**](../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b532a7696f9 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_hostname_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**hostname_format.HostnameFormat**](../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md index cae69d595b3..e43c0ef54aa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[IntegerTypeMatchesIntegers](../../components/schema/integer_type_matches_integers.md) | int | int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../components/schema/integer_type_matches_integers.md) | int | int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b5ed5607039 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../components/schema/integer_type_matches_integers.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md index 97370370418..0b76ccdcc91 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_invalid_instance_should_not_raise_error_wh Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf](../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b96cdd0d8be --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../../../../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md index df38049e81d..0ecc766672e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_invalid_string_value_for_default_request_b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_invalid_string_value_for_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[InvalidStringValueForDefault](../../components/schema/invalid_string_value_for_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7e1137ba3c1 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_invalid_string_value_for_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../../../../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md index 5e7f7a94e47..16d63578e3a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ipv4_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ipv4_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Ipv4Format](../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv4_format.Ipv4Format**](../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a4f700a75b8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ipv4_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv4_format.Ipv4Format**](../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md index a60cca43d28..96cbc3f76e3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ipv6_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ipv6_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Ipv6Format](../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv6_format.Ipv6Format**](../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..11bc0f7b806 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ipv6_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv6_format.Ipv6Format**](../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md index 4d1bdbc8b25..a999ad3f6f9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_json_pointer_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[JsonPointerFormat](../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_pointer_format.JsonPointerFormat**](../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..33bc78895d4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_pointer_format.JsonPointerFormat**](../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md index 8ac015f263b..f24b3853b65 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maximum_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maximum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaximumValidation](../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation.MaximumValidation**](../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..be3c93ae24c --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maximum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation.MaximumValidation**](../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md index e05fa0dcc2d..30365fb9ca1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaximumValidationWithUnsignedInteger](../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b0bf5e71910 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md index 7e70265167c..f45e52c11a6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maxitems_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxitemsValidation](../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxitems_validation.MaxitemsValidation**](../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2bd55dba2f7 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxitems_validation.MaxitemsValidation**](../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md index 3e89a288c22..c95f99981ab 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maxlength_validation_request_body.operatio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maxlength_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxlengthValidation](../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxlength_validation.MaxlengthValidation**](../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b7da7fd31a8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maxlength_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxlength_validation.MaxlengthValidation**](../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md index 360fdb84590..b68ad31d034 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Maxproperties0MeansTheObjectIsEmpty](../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..35e47689f0b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md index 58b5b6fa9ee..0482029c128 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_maxproperties_validation_request_body.oper Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_maxproperties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxpropertiesValidation](../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties_validation.MaxpropertiesValidation**](../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e882da859df --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_maxproperties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md index e042d01d993..6b0bb0b00c0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_minimum_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_minimum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinimumValidation](../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation.MinimumValidation**](../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..74799fabb1b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_minimum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation.MinimumValidation**](../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md index 96baa108335..cdc7edbf6c8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_req Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinimumValidationWithSignedInteger](../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..342fc0ece47 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md index 29c17519232..ebef8474baf 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_minitems_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_minitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinitemsValidation](../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minitems_validation.MinitemsValidation**](../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..00594449602 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_minitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minitems_validation.MinitemsValidation**](../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md index bce8eb212fd..f010d67bc93 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_minlength_validation_request_body.operatio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_minlength_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinlengthValidation](../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minlength_validation.MinlengthValidation**](../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b6af02526ff --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_minlength_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minlength_validation.MinlengthValidation**](../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md index b598607879c..44ebc591e23 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_minproperties_validation_request_body.oper Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinpropertiesValidation](../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minproperties_validation.MinpropertiesValidation**](../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..81eac66a89b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minproperties_validation.MinpropertiesValidation**](../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md index 7d07909c266..c8aa6cacbb2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedAllofToCheckValidationSemantics](../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a09ad22e5dd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md index f7dfb536d24..e55f702b5f9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedAnyofToCheckValidationSemantics](../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e3eb761591b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md index 3684a43ac6f..bb03b0b4657 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_nested_items_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), list, tuple] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[nested_items.NestedItemsTupleInput](../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_nested_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedItems](../../components/schema/nested_items.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_items.NestedItems**](../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..ef6ed0f74a0 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_nested_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_items.NestedItems**](../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../components/schema/nested_items.md#nesteditemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md index cad456e836c..6c09a9c10b3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedOneofToCheckValidationSemantics](../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e99df8cdcc8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md index ecb826e3376..ba84d2916ed 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.opera Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NotMoreComplexSchema](../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_more_complex_schema.NotMoreComplexSchema**](../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2be602ec8ca --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md index 9730e9cc8ab..5f55df0cd4f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_not_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_not_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[_Not](../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**_not._Not**](../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7ac51831f10 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_not_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**_not._Not**](../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md index 6dc9ae93df3..de90bc47e81 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.ope Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), str] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[typing.Literal["hello\x00there"]] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NulCharactersInStrings](../../components/schema/nul_characters_in_strings.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nul_characters_in_strings.NulCharactersInStrings**](../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9b096e1e0e0 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md index e06caee39a5..28bc705d032 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_req Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), None] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[None] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NullTypeMatchesOnlyTheNullObject](../../components/schema/null_type_matches_only_the_null_object.md) | None | None | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../components/schema/null_type_matches_only_the_null_object.md) | None | None ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..923e8534809 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md index 15bcaf29970..6008bd3e0ea 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), float, int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[float, int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NumberTypeMatchesNumbers](../../components/schema/number_type_matches_numbers.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../components/schema/number_type_matches_numbers.md) | float, int | float, int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..d560c52c179 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md index 6bd0923acc2..ccc69a09207 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_object_properties_validation_request_body. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[object_properties_validation.ObjectPropertiesValidationDictInput](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectPropertiesValidation](../../components/schema/object_properties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_properties_validation.ObjectPropertiesValidation**](../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..ddf8e6d3426 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md index a0b9312dc50..001c95bd130 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectTypeMatchesObjects](../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..1cbf9a03284 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md index 7087201b001..b76d583fc5e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_oneof_complex_types_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofComplexTypes](../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_complex_types.OneofComplexTypes**](../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..c119409aebc --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_complex_types.OneofComplexTypes**](../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md index 333662a0e66..66f34c14a49 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_oneof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Oneof](../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof.Oneof**](../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f84083cd752 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof.Oneof**](../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md index a2f038fabc4..73c1cd62652 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_oneof_with_base_schema_request_body.operat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), str] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[str] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_oneof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithBaseSchema](../../components/schema/oneof_with_base_schema.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_base_schema.OneofWithBaseSchema**](../../components/schema/oneof_with_base_schema.md) | str | str ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f05a782297c --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_oneof_with_base_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../components/schema/oneof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md index 74f8f82f231..d5af56776cb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.opera Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithEmptySchema](../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f3a79e500f2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md index c851da048fa..33ee18cd31a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_oneof_with_required_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithRequired](../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_required.OneofWithRequired**](../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..cc0fa575d91 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_required.OneofWithRequired**](../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md index 888eb4b2d77..995e926c293 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.opera Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PatternIsNotAnchored](../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..32bc040c111 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md index 3065c7b64b6..270d093790f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_pattern_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_pattern_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PatternValidation](../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_validation.PatternValidation**](../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..ac6c6c26aaa --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_pattern_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_validation.PatternValidation**](../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md index e657f3e6fd5..562e7a084e8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_properties_with_escaped_characters_request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PropertiesWithEscapedCharacters](../../components/schema/properties_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..011522e070f --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md index f7d928c2a85..2ff5185c9c6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PropertyNamedRefThatIsNotAReference](../../components/schema/property_named_ref_that_is_not_a_reference.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..91735099a8d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md index e81c61bf288..7d9884f7c57 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_additionalproperties_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAdditionalproperties](../../components/schema/ref_in_additionalproperties.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_additionalproperties.RefInAdditionalproperties**](../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a92a9508145 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_additionalproperties.RefInAdditionalproperties**](../../../../../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md index b4344db7aca..98daeded659 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_allof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_allof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAllof](../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_allof.RefInAllof**](../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..bd11df1abb8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_allof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_allof.RefInAllof**](../../../../../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md index 2c8e4bf59b0..6d7f74025c5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_anyof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_anyof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAnyof](../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_anyof.RefInAnyof**](../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..5912436ef18 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_anyof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_anyof.RefInAnyof**](../../../../../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md index d207212e64a..d9a870b0c57 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_items_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), list, tuple] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[ref_in_items.RefInItemsTupleInput](../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInItems](../../components/schema/ref_in_items.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_items.RefInItems**](../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..be8e2b4c6e2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_items.RefInItems**](../../../../../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../../../../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../../../../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../../../../../components/schema/ref_in_items.md#refinitemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md index da90bc8e8b3..b8ddea6c2fb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_not_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_not_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInNot](../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_not.RefInNot**](../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..c4022752dc4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_not_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_not.RefInNot**](../../../../../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md index b340ad6d865..b8e74193cb4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_oneof_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInOneof](../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_oneof.RefInOneof**](../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..cc427c35cd8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_oneof_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_oneof.RefInOneof**](../../../../../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md index a077a2e12a7..d87eeea3c36 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_ref_in_property_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[ref_in_property.RefInPropertyDictInput](../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_ref_in_property_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInProperty](../../components/schema/ref_in_property.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_property.RefInProperty**](../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..c5435590269 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_ref_in_property_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_property.RefInProperty**](../../../../../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../../../../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md index 19643b0abcb..2b022ae3499 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_required_default_validation_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[required_default_validation.RequiredDefaultValidationDictInput](../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_required_default_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredDefaultValidation](../../components/schema/required_default_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_default_validation.RequiredDefaultValidation**](../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..4b5288e297a --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_required_default_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_default_validation.RequiredDefaultValidation**](../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md index e13dc6806e7..80282aa23c8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_required_validation_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[required_validation.RequiredValidationDictInput](../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_required_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredValidation](../../components/schema/required_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_validation.RequiredValidation**](../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6cc4e33fb7e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_required_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_validation.RequiredValidation**](../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md index 4865da12cb3..c21ccdec1d6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_required_with_empty_array_request_body.ope Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[required_with_empty_array.RequiredWithEmptyArrayDictInput](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredWithEmptyArray](../../components/schema/required_with_empty_array.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_empty_array.RequiredWithEmptyArray**](../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..78b5e6b214b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md index 7a0f6e23f93..e8519a622f3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_required_with_escaped_characters_request_b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredWithEscapedCharacters](../../components/schema/required_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7e2312e6faa --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md index c5c0f2d00d1..20cc7f7d3db 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_simple_enum_validation_request_body.operat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), float, int] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[float, int] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[SimpleEnumValidation](../../components/schema/simple_enum_validation.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**simple_enum_validation.SimpleEnumValidation**](../../components/schema/simple_enum_validation.md) | float, int | float, int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..234fb7952bb --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**simple_enum_validation.SimpleEnumValidation**](../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md index d296736572f..0c262630fe8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_string_type_matches_strings_request_body.o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), str] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[str] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_string_type_matches_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringTypeMatchesStrings](../../components/schema/string_type_matches_strings.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_type_matches_strings.StringTypeMatchesStrings**](../../components/schema/string_type_matches_strings.md) | str | str ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..dd90568de3d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_string_type_matches_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../components/schema/string_type_matches_strings.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md index 62adeb5cd88..e729c9500bb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_the_default_keyword_does_not_do_anything_i Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..42b20695a46 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md index 792ac0316df..53d78c8e59e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UniqueitemsFalseValidation](../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..07532d5f933 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md index 24d1ea83d21..87c4614401b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.operat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UniqueitemsValidation](../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_validation.UniqueitemsValidation**](../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..38893605355 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md index fb05c051b57..33064a96f4d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_uri_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_uri_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriFormat](../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_format.UriFormat**](../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..5a737d4927e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_uri_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_format.UriFormat**](../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md index 43dda81d6fb..0f7343755a6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_uri_reference_format_request_body.operatio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriReferenceFormat](../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_reference_format.UriReferenceFormat**](../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..dad318c12cf --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_reference_format.UriReferenceFormat**](../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md index d12fc0b5b25..f8f75e693f3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md @@ -27,8 +27,8 @@ unit_test_api.paths.request_body_post_uri_template_format_request_body.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -42,25 +42,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +unit_test_api.paths.request_body_post_uri_template_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriTemplateFormat](../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_template_format.UriTemplateFormat**](../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..aae6ac2cb59 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.request_body_post_uri_template_format_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_template_format.UriTemplateFormat**](../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md index 65c311d74a2..7c54a16d634 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesAllowsASchemaWhichShouldValidate](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..feee5fa0c70 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md index 7e629dbeaa4..ce300a2fb08 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesAreAllowedByDefault](../../components/schema/additionalproperties_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..710cbbba6f3 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md index 67fcb097a21..ef15e1c31a5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesCanExistByItself](../../components/schema/additionalproperties_can_exist_by_itself.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8a3d189231e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md index faa0d98c268..ce239fe07a0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalpropertiesShouldNotLookInApplicators](../../components/schema/additionalproperties_should_not_look_in_applicators.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..4e947c2299d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md index 0684f1c0575..d20455459e0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofCombinedWithAnyofOneof](../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..769ddfcdc7a --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md index 1610822e459..db8d8b1344c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Allof](../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof.Allof**](../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..70b2c0c1435 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof.Allof**](../../../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md index 8130efdee9a..1de59bc0208 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofSimpleTypes](../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_simple_types.AllofSimpleTypes**](../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e054a2abf51 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_simple_types.AllofSimpleTypes**](../../../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md index 8e95dffd8e6..5d5bc256ade 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithBaseSchema](../../components/schema/allof_with_base_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_base_schema.AllofWithBaseSchema**](../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a580fb16e25 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md index 63abcc4ff97..9659885a723 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithOneEmptySchema](../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..dd2c79d53f6 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md index f3ab37f16c2..ebde290b238 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTheFirstEmptySchema](../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..4fea51c81c6 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md index 011f3a37f01..6520416c4b3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTheLastEmptySchema](../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..604a1125afd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md index 79fffa71c48..2eae2566856 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AllofWithTwoEmptySchemas](../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..497ee03415e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md index 693db9486cf..185c7a73b24 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_anyof_complex_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofComplexTypes](../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_complex_types.AnyofComplexTypes**](../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..222d908090e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_anyof_complex_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_complex_types.AnyofComplexTypes**](../../../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md index 666ab8ff670..8b9affeb905 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Anyof](../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof.Anyof**](../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b83e89a693e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof.Anyof**](../../../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md index 53f8d6d01ed..21137402990 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofWithBaseSchema](../../components/schema/anyof_with_base_schema.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../components/schema/anyof_with_base_schema.md) | str | str ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..847590ae9f8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../../../components/schema/anyof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md index 56326c0d124..d381bd9d784 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnyofWithOneEmptySchema](../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..151e7927aed --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md index b4ae3ad944b..daff6ec9735 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ArrayTypeMatchesArrays](../../components/schema/array_type_matches_arrays.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e9a2149e5dd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md index 1c3ba6da17e..fa1d751ca9c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | bool | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_boolean_type_matches_booleans_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[BooleanTypeMatchesBooleans](../../components/schema/boolean_type_matches_booleans.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../components/schema/boolean_type_matches_booleans.md) | bool | bool ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3105e0e3219 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_boolean_type_matches_booleans_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md index 6d914ebabf7..9b272728a24 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_by_int_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ByInt](../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_int.ByInt**](../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2332017e8e9 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_by_int_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_int.ByInt**](../../../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md index c1ff2e664b4..1725ce58367 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_by_number_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ByNumber](../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_number.ByNumber**](../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d11ce214302 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_by_number_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_number.ByNumber**](../../../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md index 3f9e523fb73..23c2022871d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[BySmallNumber](../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_small_number.BySmallNumber**](../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..961305f8ea4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**by_small_number.BySmallNumber**](../../../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md index cc31dd89476..929133a3b6b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[DateTimeFormat](../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**date_time_format.DateTimeFormat**](../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e8184e67c51 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**date_time_format.DateTimeFormat**](../../../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md index 103bc1627e3..7e01fa2635f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EmailFormat](../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**email_format.EmailFormat**](../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..483a1bb05b2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**email_format.EmailFormat**](../../../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md index 8789261d6bf..306eb07bd88 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWith0DoesNotMatchFalse](../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a5b29275639 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md index 7e63bdede45..91999d822b9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWith1DoesNotMatchTrue](../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..770f0350c7d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md index 93d0564e96b..22775450bff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithEscapedCharacters](../../components/schema/enum_with_escaped_characters.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..c0888b1895e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md index e2aed22186c..a5e30135e7a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | typing.Literal[False] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithFalseDoesNotMatch0](../../components/schema/enum_with_false_does_not_match0.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..62719a8ffab --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md index 4f860b904f1..fdd10b96270 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | typing.Literal[True] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumWithTrueDoesNotMatch1](../../components/schema/enum_with_true_does_not_match1.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8a4e4d0ab7b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md index 12fc180f903..704949978a5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[EnumsInProperties](../../components/schema/enums_in_properties.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enums_in_properties.EnumsInProperties**](../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..ad1e0ccaf8c --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**enums_in_properties.EnumsInProperties**](../../../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md index e80be9c7449..464ee53b030 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ForbiddenProperty](../../components/schema/forbidden_property.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**forbidden_property.ForbiddenProperty**](../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..f5eb5f8fd98 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**forbidden_property.ForbiddenProperty**](../../../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md index dbfd051b4f5..a80ec6e6541 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[HostnameFormat](../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**hostname_format.HostnameFormat**](../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..feaa24242a4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**hostname_format.HostnameFormat**](../../../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md index acde602ccc2..d3672dd5708 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[IntegerTypeMatchesIntegers](../../components/schema/integer_type_matches_integers.md) | int | int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../components/schema/integer_type_matches_integers.md) | int | int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1ba9ce82364 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../../../components/schema/integer_type_matches_integers.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md index cc826edd1d5..91bfd7574dc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf](../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a80cb695eb7 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../../../../../../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md index 12c55822479..8bd5fb10dcc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_invalid_string_value_for_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[InvalidStringValueForDefault](../../components/schema/invalid_string_value_for_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..897adbc0731 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_invalid_string_value_for_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../../../../../../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md index 605677708b2..1b1b8a0298b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ipv4_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Ipv4Format](../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv4_format.Ipv4Format**](../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b63648692aa --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ipv4_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv4_format.Ipv4Format**](../../../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md index 2f22edee55f..8045ddcaf4e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Ipv6Format](../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv6_format.Ipv6Format**](../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..320f5158c2b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ipv6_format.Ipv6Format**](../../../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md index 16f17b90327..bac2c3f0959 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_json_pointer_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[JsonPointerFormat](../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_pointer_format.JsonPointerFormat**](../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8b8f917c432 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_json_pointer_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_pointer_format.JsonPointerFormat**](../../../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md index be7bc191d65..7afb456e194 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaximumValidation](../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation.MaximumValidation**](../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d6cd4a4d465 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation.MaximumValidation**](../../../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md index 2c006b5243a..baadfb3fcae 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaximumValidationWithUnsignedInteger](../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..408b0a0e560 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md index 9e750c161da..431379aa8bc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxitemsValidation](../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxitems_validation.MaxitemsValidation**](../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3e697dd873e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxitems_validation.MaxitemsValidation**](../../../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md index bbdeb092f3a..8773f9b6288 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxlengthValidation](../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxlength_validation.MaxlengthValidation**](../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8cf98fbfdc2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxlength_validation.MaxlengthValidation**](../../../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md index 14ed858052c..1411de79687 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Maxproperties0MeansTheObjectIsEmpty](../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..ce639c00136 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md index f2c97db8518..7125b4dc526 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MaxpropertiesValidation](../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties_validation.MaxpropertiesValidation**](../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..5a5292554f5 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md index 136b8d9b1de..b082dd9dec9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinimumValidation](../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation.MinimumValidation**](../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..65d1b34d1a2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation.MinimumValidation**](../../../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md index f8d139eafcb..74db058b3fc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinimumValidationWithSignedInteger](../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d84ea99cc2a --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md index e71a111a65e..14e19042f05 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinitemsValidation](../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minitems_validation.MinitemsValidation**](../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..515f003f23d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minitems_validation.MinitemsValidation**](../../../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md index 3a3c30d99d6..c6ccdf7d656 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinlengthValidation](../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minlength_validation.MinlengthValidation**](../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..46401234afb --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minlength_validation.MinlengthValidation**](../../../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md index 7d1753027bf..6b7cbddee08 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_minproperties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[MinpropertiesValidation](../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minproperties_validation.MinpropertiesValidation**](../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..c3eff867c58 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_minproperties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**minproperties_validation.MinpropertiesValidation**](../../../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md index 15e3ade71b1..104712fc1ba 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedAllofToCheckValidationSemantics](../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2a22e19589d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md index bff96d5889e..594a24801ee 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedAnyofToCheckValidationSemantics](../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d5a029f7fe4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md index 0e971360f53..8c8319af0a6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedItems](../../components/schema/nested_items.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_items.NestedItems**](../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2f0508d8b28 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_items.NestedItems**](../../../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../../../components/schema/nested_items.md#nesteditemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md index e58dcce0e2d..c9ff723d11c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NestedOneofToCheckValidationSemantics](../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..554e7610acd --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md index e0db753a627..eb770f646eb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NotMoreComplexSchema](../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_more_complex_schema.NotMoreComplexSchema**](../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a3e7c81a798 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md index 4a59ef43a91..efa0ac8af6b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[_Not](../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**_not._Not**](../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1df922fbbd2 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**_not._Not**](../../../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md index 443c5542629..61984e95ab9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | typing.Literal["hello\x00there"] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NulCharactersInStrings](../../components/schema/nul_characters_in_strings.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nul_characters_in_strings.NulCharactersInStrings**](../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b3e82fc8cfa --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md index 74f7a0e12e5..93bd62f9eab 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | None | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NullTypeMatchesOnlyTheNullObject](../../components/schema/null_type_matches_only_the_null_object.md) | None | None | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../components/schema/null_type_matches_only_the_null_object.md) | None | None ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..4689a1546db --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md index 0a48f95177a..6c58290aefd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NumberTypeMatchesNumbers](../../components/schema/number_type_matches_numbers.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../components/schema/number_type_matches_numbers.md) | float, int | float, int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0585fa46364 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md index 7651b5fc5b0..a296295532f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectPropertiesValidation](../../components/schema/object_properties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_properties_validation.ObjectPropertiesValidation**](../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..ab4604314a4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md index 25cab39dbc9..938733cd93b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_object_type_matches_objects_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectTypeMatchesObjects](../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2bcc57b1f0d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_object_type_matches_objects_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md index 2cc5a33a412..52250a274a0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_oneof_complex_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofComplexTypes](../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_complex_types.OneofComplexTypes**](../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..da74119cea3 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_oneof_complex_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_complex_types.OneofComplexTypes**](../../../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md index 8b26089ab76..2cb75aa369a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Oneof](../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof.Oneof**](../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d62036a116d --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof.Oneof**](../../../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md index 4c7c479dea8..27e5bcbd8ca 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithBaseSchema](../../components/schema/oneof_with_base_schema.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_base_schema.OneofWithBaseSchema**](../../components/schema/oneof_with_base_schema.md) | str | str ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e120d6ff2ba --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../../../components/schema/oneof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md index 6a82369627f..10dc953c7d0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithEmptySchema](../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..53ed9deb444 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md index ee97871df05..7a71c7147c1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[OneofWithRequired](../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_required.OneofWithRequired**](../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..415f7effda7 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**oneof_with_required.OneofWithRequired**](../../../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md index 3dddfa4e787..368b4157f34 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PatternIsNotAnchored](../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..37e52b86ced --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md index e23cf606731..eb85ff723c1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PatternValidation](../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_validation.PatternValidation**](../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..62ac57c1690 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pattern_validation.PatternValidation**](../../../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md index eba155f4dd9..c723dccf436 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PropertiesWithEscapedCharacters](../../components/schema/properties_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d7d780388b4 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md index d1cfb7c07e4..71607ef93b1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[PropertyNamedRefThatIsNotAReference](../../components/schema/property_named_ref_that_is_not_a_reference.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d1b7b05941f --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md index 5e9547e4100..a9b1e8359a8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAdditionalproperties](../../components/schema/ref_in_additionalproperties.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_additionalproperties.RefInAdditionalproperties**](../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..9895c9f83c3 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_additionalproperties.RefInAdditionalproperties**](../../../../../../../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md index 178e397c5ba..f90ac7a61a0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_allof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAllof](../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_allof.RefInAllof**](../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..fab95b0a4e6 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_allof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_allof.RefInAllof**](../../../../../../../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md index 99861e897b8..d0202c41261 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_anyof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInAnyof](../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_anyof.RefInAnyof**](../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d5a9bf2bc9a --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_anyof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_anyof.RefInAnyof**](../../../../../../../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md index 16c1080ca53..1fe04d28abe 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInItems](../../components/schema/ref_in_items.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_items.RefInItems**](../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..13cab4fdc19 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_items.RefInItems**](../../../../../../../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../../../../../../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../../../../../../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../../../../../../../components/schema/ref_in_items.md#refinitemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md index 9933651d4c2..c51b4fcc65c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_not_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInNot](../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_not.RefInNot**](../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..ccb1ffb2d40 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_not_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_not.RefInNot**](../../../../../../../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md index 9ece23ba041..d7f7786674c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInOneof](../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_oneof.RefInOneof**](../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0ec61079c1e --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_oneof_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_oneof.RefInOneof**](../../../../../../../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md index 29a3c3e5b58..dbccbe797e1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_ref_in_property_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefInProperty](../../components/schema/ref_in_property.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_property.RefInProperty**](../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0642070c3d5 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_ref_in_property_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_in_property.RefInProperty**](../../../../../../../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../../../../../../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md index 97f53f7f4cc..4fff3370b76 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_required_default_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredDefaultValidation](../../components/schema/required_default_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_default_validation.RequiredDefaultValidation**](../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..f684746dd4b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_required_default_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_default_validation.RequiredDefaultValidation**](../../../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md index f9cbe4871c7..a84a21a948c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredValidation](../../components/schema/required_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_validation.RequiredValidation**](../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..95955b2ba90 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_validation.RequiredValidation**](../../../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md index 4a6e5f8e9a3..1b021abf359 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredWithEmptyArray](../../components/schema/required_with_empty_array.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_empty_array.RequiredWithEmptyArray**](../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..bed5bee49e8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md index afc55dbc412..19cedd669d0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_required_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RequiredWithEscapedCharacters](../../components/schema/required_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a6504ea1047 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_required_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md index 449d005be24..10871119959 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_simple_enum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[SimpleEnumValidation](../../components/schema/simple_enum_validation.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**simple_enum_validation.SimpleEnumValidation**](../../components/schema/simple_enum_validation.md) | float, int | float, int ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d404bce23f9 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_simple_enum_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**simple_enum_validation.SimpleEnumValidation**](../../../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md index 782f44cb88e..7bbf47bd8d3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_string_type_matches_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringTypeMatchesStrings](../../components/schema/string_type_matches_strings.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_type_matches_strings.StringTypeMatchesStrings**](../../components/schema/string_type_matches_strings.md) | str | str ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..5cd9e7423e9 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_string_type_matches_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../../../components/schema/string_type_matches_strings.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md index 75baf407388..3bf0db6a54c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +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.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b9ea561433b --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +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.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md index f32d37eece1..3070d435179 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UniqueitemsFalseValidation](../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1ea43efb1c0 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md index 7e0555fc47f..6a2768d9359 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UniqueitemsValidation](../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_validation.UniqueitemsValidation**](../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e8d319345ea --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md index ebf596776de..755ba1b5785 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriFormat](../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_format.UriFormat**](../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2d2a2077b83 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_format.UriFormat**](../../../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md index 1c9531b0b92..49b2bbfff27 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriReferenceFormat](../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_reference_format.UriReferenceFormat**](../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..155e39b1fcb --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_reference_format.UriReferenceFormat**](../../../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md index 0babf1beedd..3e098d7bba5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +unit_test_api.paths.response_body_post_uri_template_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[UriTemplateFormat](../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_template_format.UriTemplateFormat**](../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..83da246ef05 --- /dev/null +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +unit_test_api.paths.response_body_post_uri_template_format_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**uri_template_format.UriTemplateFormat**](../../../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/migration_other_python_generators.md b/samples/client/3_0_3_unit_test/python/migration_other_python_generators.md index db57f718d75..e9dea7cbad7 100644 --- a/samples/client/3_0_3_unit_test/python/migration_other_python_generators.md +++ b/samples/client/3_0_3_unit_test/python/migration_other_python_generators.md @@ -20,12 +20,10 @@ When switching from other python client generators you will need to make some ch 6. String + Number types with formats - String type data is stored as a string and if you need to access types based on its format like date, date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ - - type number + format: See .as_float_, .as_int_ + - type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid - this was done because openapi/json-schema defines constraints. string data may be type string with no format keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_/as_datetime_/as_decimal_/as_uuid_ - - So if you need to access a number format based type, use as_int_/as_float_ + - So if you need to access a string format based type, use as_date/as_datetime/as_decimal/as_uuid 7. Property access on AnyType(type unset) or object(dict) schemas - Only required keys with valid python names are properties like .someProp and have type hints - All optional keys may not exist, so properties are not defined for them diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/api_client.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/api_client.py index bd389e22aaf..abfb517827e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/api_client.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/api_client.py @@ -1247,7 +1247,7 @@ def _verify_response_status(response: api_response.ApiResponse): ) -class SerializedRequestBody(typing_extensions.TypedDict, total=False): +class SerializedRequestBody(typing.TypedDict, total=False): body: typing.Union[str, bytes] fields: typing.Tuple[rest.RequestField, ...] diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/path_to_api.py index 360e9952b79..d40dec912e6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -176,7 +176,7 @@ from unit_test_api.apis.paths.response_body_post_uri_reference_format_response_body_for_content_types import ResponseBodyPostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uri_template_format_response_body_for_content_types import ResponseBodyPostUriTemplateFormatResponseBodyForContentTypes -PathToApi = typing_extensions.TypedDict( +PathToApi = typing.TypedDict( 'PathToApi', { "/requestBody/postAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody], diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tag_to_api.py index ade636c0491..615b9da6db3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -30,7 +30,7 @@ from unit_test_api.apis.tags.enum_api import EnumApi from unit_test_api.apis.tags.max_items_api import MaxItemsApi -TagToApi = typing_extensions.TypedDict( +TagToApi = typing.TypedDict( 'TagToApi', { "maximum": typing.Type[MaximumApi], diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py index 0b8918eb72c..21f965e6c62 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.BoolSchema Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -30,12 +30,6 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidateDict(schemas.immutable "foo", "bar", }) - @staticmethod - def from_dict_( - arg: AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionalpropertiesAllowsASchemaWhichShouldValidateDict: - return AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate(arg, configuration=configuration) def __new__( cls, @@ -64,7 +58,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput, arg_) return AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput, + AdditionalpropertiesAllowsASchemaWhichShouldValidateDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionalpropertiesAllowsASchemaWhichShouldValidateDict: + return AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py index 3e747fd824c..b717e4b8b6d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py @@ -12,7 +12,7 @@ Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -29,12 +29,6 @@ class AdditionalpropertiesAreAllowedByDefaultDict(schemas.immutabledict[str, sch "foo", "bar", }) - @staticmethod - def from_dict_( - arg: AdditionalpropertiesAreAllowedByDefaultDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionalpropertiesAreAllowedByDefaultDict: - return AdditionalpropertiesAreAllowedByDefault.validate(arg, configuration=configuration) def __new__( cls, @@ -63,7 +57,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AdditionalpropertiesAreAllowedByDefaultDictInput, arg_) return AdditionalpropertiesAreAllowedByDefault.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AdditionalpropertiesAreAllowedByDefaultDictInput, + AdditionalpropertiesAreAllowedByDefaultDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionalpropertiesAreAllowedByDefaultDict: + return AdditionalpropertiesAreAllowedByDefault.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py index 241e2db6f76..47d3eb45368 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: AdditionalpropertiesCanExistByItselfDictInput, + arg: typing.Union[ + AdditionalpropertiesCanExistByItselfDictInput, + AdditionalpropertiesCanExistByItselfDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AdditionalpropertiesCanExistByItselfDict: return AdditionalpropertiesCanExistByItself.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[bool, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py index f538f2b53b6..61e61d10acf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py @@ -12,7 +12,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.BoolSchema Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -27,12 +27,6 @@ class _0Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -55,7 +49,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: @@ -109,11 +112,13 @@ def __new__( @staticmethod def from_dict_( - arg: AdditionalpropertiesShouldNotLookInApplicatorsDictInput, + arg: typing.Union[ + AdditionalpropertiesShouldNotLookInApplicatorsDictInput, + AdditionalpropertiesShouldNotLookInApplicatorsDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AdditionalpropertiesShouldNotLookInApplicatorsDict: return AdditionalpropertiesShouldNotLookInApplicators.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[bool, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof.py index bcbb4044b26..1fd7be02b00 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Bar: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -26,12 +26,6 @@ class _0Dict(schemas.immutabledict[str, int]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def bar(self) -> int: @@ -80,7 +83,7 @@ class _0( ) Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties2 = typing_extensions.TypedDict( +Properties2 = typing.TypedDict( 'Properties2', { "foo": typing.Type[Foo], @@ -95,12 +98,6 @@ class _1Dict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -115,7 +112,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def foo(self) -> str: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof_with_base_schema.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof_with_base_schema.py index d7a1f2db70e..2bd7ae35980 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof_with_base_schema.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/allof_with_base_schema.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties2 = typing_extensions.TypedDict( +Properties2 = typing.TypedDict( 'Properties2', { "foo": typing.Type[Foo], @@ -26,12 +26,6 @@ class _0Dict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def foo(self) -> str: @@ -80,7 +83,7 @@ class _0( ) Baz: typing_extensions.TypeAlias = schemas.NoneSchema -Properties3 = typing_extensions.TypedDict( +Properties3 = typing.TypedDict( 'Properties3', { "baz": typing.Type[Baz], @@ -95,12 +98,6 @@ class _1Dict(schemas.immutabledict[str, None]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -115,7 +112,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def baz(self) -> None: @@ -153,7 +159,7 @@ class _1( typing.Type[_1], ] Bar: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -168,12 +174,6 @@ class AllofWithBaseSchemaDict(schemas.immutabledict[str, int]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: AllofWithBaseSchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AllofWithBaseSchemaDict: - return AllofWithBaseSchema.validate(arg, configuration=configuration) def __new__( cls, @@ -188,7 +188,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AllofWithBaseSchemaDictInput, arg_) return AllofWithBaseSchema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AllofWithBaseSchemaDictInput, + AllofWithBaseSchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AllofWithBaseSchemaDict: + return AllofWithBaseSchema.validate(arg, configuration=configuration) @property def bar(self) -> int: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/anyof_complex_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/anyof_complex_types.py index cab45d14a55..d06dcaf10bb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/anyof_complex_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/anyof_complex_types.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Bar: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -26,12 +26,6 @@ class _0Dict(schemas.immutabledict[str, int]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def bar(self) -> int: @@ -80,7 +83,7 @@ class _0( ) Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties2 = typing_extensions.TypedDict( +Properties2 = typing.TypedDict( 'Properties2', { "foo": typing.Type[Foo], @@ -95,12 +98,6 @@ class _1Dict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -115,7 +112,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def foo(self) -> str: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/array_type_matches_arrays.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/array_type_matches_arrays.py index 1ed7ad483fd..597baa7e7c6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/array_type_matches_arrays.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/array_type_matches_arrays.py @@ -20,7 +20,7 @@ class ArrayTypeMatchesArraysTuple( ] ): - def __new__(cls, arg: ArrayTypeMatchesArraysTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayTypeMatchesArraysTupleInput, ArrayTypeMatchesArraysTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayTypeMatchesArrays.validate(arg, configuration=configuration) ArrayTypeMatchesArraysTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with0_does_not_match_false.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with0_does_not_match_false.py index 6002445107e..017b97b26bf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with0_does_not_match_false.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with0_does_not_match_false.py @@ -15,7 +15,7 @@ class EnumWith0DoesNotMatchFalseEnums: @schemas.classproperty - def POSITIVE_0(cls) -> typing_extensions.Literal[0]: + def POSITIVE_0(cls) -> typing.Literal[0]: return EnumWith0DoesNotMatchFalse.validate(0) @@ -43,16 +43,16 @@ class EnumWith0DoesNotMatchFalse( @classmethod def validate( cls, - arg: typing_extensions.Literal[0], + arg: typing.Literal[0], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0]: ... + ) -> typing.Literal[0]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0,]: ... + ) -> typing.Literal[0,]: ... @classmethod def validate( cls, diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with1_does_not_match_true.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with1_does_not_match_true.py index f79f18722d5..600fdc59ae3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with1_does_not_match_true.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with1_does_not_match_true.py @@ -15,7 +15,7 @@ class EnumWith1DoesNotMatchTrueEnums: @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return EnumWith1DoesNotMatchTrue.validate(1) @@ -43,16 +43,16 @@ class EnumWith1DoesNotMatchTrue( @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1,]: ... + ) -> typing.Literal[1,]: ... @classmethod def validate( cls, diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_escaped_characters.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_escaped_characters.py index 5233676a8f7..8d34c07b984 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_escaped_characters.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_escaped_characters.py @@ -15,11 +15,11 @@ class EnumWithEscapedCharactersEnums: @schemas.classproperty - def FOO_LINE_FEED_LF_BAR(cls) -> typing_extensions.Literal["foo\nbar"]: + def FOO_LINE_FEED_LF_BAR(cls) -> typing.Literal["foo\nbar"]: return EnumWithEscapedCharacters.validate("foo\nbar") @schemas.classproperty - def FOO_CARRIAGE_RETURN_CR_BAR(cls) -> typing_extensions.Literal["foo\rbar"]: + def FOO_CARRIAGE_RETURN_CR_BAR(cls) -> typing.Literal["foo\rbar"]: return EnumWithEscapedCharacters.validate("foo\rbar") @@ -47,29 +47,29 @@ class EnumWithEscapedCharacters( @classmethod def validate( cls, - arg: typing_extensions.Literal["foo\nbar"], + arg: typing.Literal["foo\nbar"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["foo\nbar"]: ... + ) -> typing.Literal["foo\nbar"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["foo\rbar"], + arg: typing.Literal["foo\rbar"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["foo\rbar"]: ... + ) -> typing.Literal["foo\rbar"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["foo\nbar","foo\rbar",]: ... + ) -> typing.Literal["foo\nbar","foo\rbar",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "foo\nbar", "foo\rbar", ]: @@ -77,7 +77,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "foo\nbar", "foo\rbar", ], diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_false_does_not_match0.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_false_does_not_match0.py index 83fdd520693..40bb6e7464e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_false_does_not_match0.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_false_does_not_match0.py @@ -15,7 +15,7 @@ class EnumWithFalseDoesNotMatch0Enums: @schemas.classproperty - def FALSE(cls) -> typing_extensions.Literal[False]: + def FALSE(cls) -> typing.Literal[False]: return EnumWithFalseDoesNotMatch0.validate(False) @@ -42,29 +42,29 @@ class EnumWithFalseDoesNotMatch0( @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod def validate( cls, arg: bool, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False,]: ... + ) -> typing.Literal[False,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ False, ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ False, ], validated_arg diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_true_does_not_match1.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_true_does_not_match1.py index 886807f08ba..490e125f519 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_true_does_not_match1.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enum_with_true_does_not_match1.py @@ -15,7 +15,7 @@ class EnumWithTrueDoesNotMatch1Enums: @schemas.classproperty - def TRUE(cls) -> typing_extensions.Literal[True]: + def TRUE(cls) -> typing.Literal[True]: return EnumWithTrueDoesNotMatch1.validate(True) @@ -42,29 +42,29 @@ class EnumWithTrueDoesNotMatch1( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, arg: bool, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True,]: ... + ) -> typing.Literal[True,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ True, ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ True, ], validated_arg diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enums_in_properties.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enums_in_properties.py index 02370eda43c..d8b9565f1de 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enums_in_properties.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/enums_in_properties.py @@ -15,7 +15,7 @@ class FooEnums: @schemas.classproperty - def FOO(cls) -> typing_extensions.Literal["foo"]: + def FOO(cls) -> typing.Literal["foo"]: return Foo.validate("foo") @@ -37,29 +37,29 @@ class Foo( @classmethod def validate( cls, - arg: typing_extensions.Literal["foo"], + arg: typing.Literal["foo"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["foo"]: ... + ) -> typing.Literal["foo"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["foo",]: ... + ) -> typing.Literal["foo",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "foo", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "foo", ], validated_arg @@ -69,7 +69,7 @@ def validate( class BarEnums: @schemas.classproperty - def BAR(cls) -> typing_extensions.Literal["bar"]: + def BAR(cls) -> typing.Literal["bar"]: return Bar.validate("bar") @@ -91,34 +91,34 @@ class Bar( @classmethod def validate( cls, - arg: typing_extensions.Literal["bar"], + arg: typing.Literal["bar"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["bar"]: ... + ) -> typing.Literal["bar"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["bar",]: ... + ) -> typing.Literal["bar",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "bar", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "bar", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -135,21 +135,15 @@ class EnumsInPropertiesDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: EnumsInPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> EnumsInPropertiesDict: - return EnumsInProperties.validate(arg, configuration=configuration) def __new__( cls, *, - bar: typing_extensions.Literal[ + bar: typing.Literal[ "bar" ], foo: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "foo" ], schemas.Unset @@ -169,22 +163,31 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(EnumsInPropertiesDictInput, arg_) return EnumsInProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + EnumsInPropertiesDictInput, + EnumsInPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> EnumsInPropertiesDict: + return EnumsInProperties.validate(arg, configuration=configuration) @property - def bar(self) -> typing_extensions.Literal["bar"]: + def bar(self) -> typing.Literal["bar"]: return typing.cast( - typing_extensions.Literal["bar"], + typing.Literal["bar"], self.__getitem__("bar") ) @property - def foo(self) -> typing.Union[typing_extensions.Literal["foo"], schemas.Unset]: + def foo(self) -> typing.Union[typing.Literal["foo"], schemas.Unset]: val = self.get("foo", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["foo"], + typing.Literal["foo"], val ) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/forbidden_property.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/forbidden_property.py index bf67bf37c5a..e80ba688c67 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/forbidden_property.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/forbidden_property.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Foo: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -25,12 +25,6 @@ class ForbiddenPropertyDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: ForbiddenPropertyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ForbiddenPropertyDict: - return ForbiddenProperty.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ForbiddenPropertyDictInput, arg_) return ForbiddenProperty.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ForbiddenPropertyDictInput, + ForbiddenPropertyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ForbiddenPropertyDict: + return ForbiddenProperty.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/invalid_string_value_for_default.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/invalid_string_value_for_default.py index 7c85a10a1ba..7454475f51a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/invalid_string_value_for_default.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/invalid_string_value_for_default.py @@ -20,8 +20,8 @@ class Bar( str, }) min_length: int = 4 - default: typing_extensions.Literal["bad"] = "bad" -Properties = typing_extensions.TypedDict( + default: typing.Literal["bad"] = "bad" +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -36,12 +36,6 @@ class InvalidStringValueForDefaultDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "bar", }) - @staticmethod - def from_dict_( - arg: InvalidStringValueForDefaultDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> InvalidStringValueForDefaultDict: - return InvalidStringValueForDefault.validate(arg, configuration=configuration) def __new__( cls, @@ -63,7 +57,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(InvalidStringValueForDefaultDictInput, arg_) return InvalidStringValueForDefault.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + InvalidStringValueForDefaultDictInput, + InvalidStringValueForDefaultDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> InvalidStringValueForDefaultDict: + return InvalidStringValueForDefault.validate(arg, configuration=configuration) @property def bar(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nested_items.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nested_items.py index 788e51e85ea..6d230ea872d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nested_items.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nested_items.py @@ -20,7 +20,7 @@ class ItemsTuple( ] ): - def __new__(cls, arg: ItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput, ItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items3.validate(arg, configuration=configuration) ItemsTupleInput = typing.Union[ typing.List[ @@ -76,7 +76,7 @@ class ItemsTuple2( ] ): - def __new__(cls, arg: ItemsTupleInput2, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput2, ItemsTuple2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items2.validate(arg, configuration=configuration) ItemsTupleInput2 = typing.Union[ typing.List[ @@ -132,7 +132,7 @@ class ItemsTuple3( ] ): - def __new__(cls, arg: ItemsTupleInput3, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput3, ItemsTuple3], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items.validate(arg, configuration=configuration) ItemsTupleInput3 = typing.Union[ typing.List[ @@ -188,7 +188,7 @@ class NestedItemsTuple( ] ): - def __new__(cls, arg: NestedItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[NestedItemsTupleInput, NestedItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return NestedItems.validate(arg, configuration=configuration) NestedItemsTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/not_more_complex_schema.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/not_more_complex_schema.py index 6a390c20eea..b129c5b4d01 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/not_more_complex_schema.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/not_more_complex_schema.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -26,12 +26,6 @@ class NotDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: NotDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> NotDict: - return _Not.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(NotDictInput, arg_) return _Not.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + NotDictInput, + NotDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NotDict: + return _Not.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nul_characters_in_strings.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nul_characters_in_strings.py index d6ab1e3758b..24a0c0b8b04 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nul_characters_in_strings.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/nul_characters_in_strings.py @@ -15,7 +15,7 @@ class NulCharactersInStringsEnums: @schemas.classproperty - def HELLO_NULL_THERE(cls) -> typing_extensions.Literal["hello\x00there"]: + def HELLO_NULL_THERE(cls) -> typing.Literal["hello\x00there"]: return NulCharactersInStrings.validate("hello\x00there") @@ -42,29 +42,29 @@ class NulCharactersInStrings( @classmethod def validate( cls, - arg: typing_extensions.Literal["hello\x00there"], + arg: typing.Literal["hello\x00there"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["hello\x00there"]: ... + ) -> typing.Literal["hello\x00there"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["hello\x00there",]: ... + ) -> typing.Literal["hello\x00there",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "hello\x00there", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "hello\x00there", ], validated_arg diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/object_properties_validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/object_properties_validation.py index e59c51253f7..dd0ab293018 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/object_properties_validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/object_properties_validation.py @@ -12,7 +12,7 @@ Foo: typing_extensions.TypeAlias = schemas.IntSchema Bar: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -29,12 +29,6 @@ class ObjectPropertiesValidationDict(schemas.immutabledict[str, schemas.OUTPUT_B "foo", "bar", }) - @staticmethod - def from_dict_( - arg: ObjectPropertiesValidationDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectPropertiesValidationDict: - return ObjectPropertiesValidation.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectPropertiesValidationDictInput, arg_) return ObjectPropertiesValidation.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectPropertiesValidationDictInput, + ObjectPropertiesValidationDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectPropertiesValidationDict: + return ObjectPropertiesValidation.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[int, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_complex_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_complex_types.py index 045d320eccc..efa0e978ca0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_complex_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_complex_types.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Bar: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -26,12 +26,6 @@ class _0Dict(schemas.immutabledict[str, int]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def bar(self) -> int: @@ -80,7 +83,7 @@ class _0( ) Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties2 = typing_extensions.TypedDict( +Properties2 = typing.TypedDict( 'Properties2', { "foo": typing.Type[Foo], @@ -95,12 +98,6 @@ class _1Dict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -115,7 +112,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def foo(self) -> str: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_with_required.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_with_required.py index bb37b715854..cb7bc49d654 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_with_required.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/oneof_with_required.py @@ -19,12 +19,6 @@ class _0Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _0DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _0Dict: - return _0.validate(arg, configuration=configuration) def __new__( cls, @@ -47,7 +41,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_0DictInput, arg_) return _0.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _0DictInput, + _0Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _0Dict: + return _0.validate(arg, configuration=configuration) @property def bar(self) -> schemas.OUTPUT_BASE_TYPES: @@ -96,12 +99,6 @@ class _1Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -124,7 +121,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def baz(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/properties_with_escaped_characters.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/properties_with_escaped_characters.py index fe8e2f0dfac..a2d0df7a445 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/properties_with_escaped_characters.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/properties_with_escaped_characters.py @@ -16,7 +16,7 @@ FooRbar: typing_extensions.TypeAlias = schemas.NumberSchema FooTbar: typing_extensions.TypeAlias = schemas.NumberSchema FooFbar: typing_extensions.TypeAlias = schemas.NumberSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo\nbar": typing.Type[FooNbar], @@ -41,12 +41,6 @@ class PropertiesWithEscapedCharactersDict(schemas.immutabledict[str, typing.Unio "foo\tbar", "foo\fbar", }) - @staticmethod - def from_dict_( - arg: PropertiesWithEscapedCharactersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PropertiesWithEscapedCharactersDict: - return PropertiesWithEscapedCharacters.validate(arg, configuration=configuration) def __new__( cls, @@ -58,7 +52,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(PropertiesWithEscapedCharactersDictInput, arg_) return PropertiesWithEscapedCharacters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PropertiesWithEscapedCharactersDictInput, + PropertiesWithEscapedCharactersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PropertiesWithEscapedCharactersDict: + return PropertiesWithEscapedCharacters.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py index 4394e6f94b7..0162d24da54 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Ref: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "$ref": typing.Type[Ref], @@ -26,12 +26,6 @@ class PropertyNamedRefThatIsNotAReferenceDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "$ref", }) - @staticmethod - def from_dict_( - arg: PropertyNamedRefThatIsNotAReferenceDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PropertyNamedRefThatIsNotAReferenceDict: - return PropertyNamedRefThatIsNotAReference.validate(arg, configuration=configuration) def __new__( cls, @@ -43,7 +37,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(PropertyNamedRefThatIsNotAReferenceDictInput, arg_) return PropertyNamedRefThatIsNotAReference.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PropertyNamedRefThatIsNotAReferenceDictInput, + PropertyNamedRefThatIsNotAReferenceDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PropertyNamedRefThatIsNotAReferenceDict: + return PropertyNamedRefThatIsNotAReference.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_additionalproperties.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_additionalproperties.py index 989fd4c2f85..8ac141872c5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_additionalproperties.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_additionalproperties.py @@ -32,11 +32,13 @@ def __new__( @staticmethod def from_dict_( - arg: RefInAdditionalpropertiesDictInput, + arg: typing.Union[ + RefInAdditionalpropertiesDictInput, + RefInAdditionalpropertiesDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> RefInAdditionalpropertiesDict: return RefInAdditionalproperties.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_items.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_items.py index 815233fa9cf..bf456288a2d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_items.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_items.py @@ -21,7 +21,7 @@ class RefInItemsTuple( ] ): - def __new__(cls, arg: RefInItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[RefInItemsTupleInput, RefInItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return RefInItems.validate(arg, configuration=configuration) RefInItemsTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_property.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_property.py index ff41b7c9cd4..56967773383 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_property.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/ref_in_property.py @@ -12,7 +12,7 @@ from unit_test_api.components.schema import property_named_ref_that_is_not_a_reference -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference], @@ -26,12 +26,6 @@ class RefInPropertyDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "a", }) - @staticmethod - def from_dict_( - arg: RefInPropertyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> RefInPropertyDict: - return RefInProperty.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(RefInPropertyDictInput, arg_) return RefInProperty.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + RefInPropertyDictInput, + RefInPropertyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> RefInPropertyDict: + return RefInProperty.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_default_validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_default_validation.py index 248a53d1ee5..229ae0a0bbe 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_default_validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_default_validation.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -26,12 +26,6 @@ class RequiredDefaultValidationDict(schemas.immutabledict[str, schemas.OUTPUT_BA __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: RequiredDefaultValidationDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> RequiredDefaultValidationDict: - return RequiredDefaultValidation.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(RequiredDefaultValidationDictInput, arg_) return RequiredDefaultValidation.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + RequiredDefaultValidationDictInput, + RequiredDefaultValidationDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> RequiredDefaultValidationDict: + return RequiredDefaultValidation.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_validation.py index 6f097bc6b7d..83254c9a140 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_validation.py @@ -12,7 +12,7 @@ Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -29,12 +29,6 @@ class RequiredValidationDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPE __optional_keys__: typing.FrozenSet[str] = frozenset({ "bar", }) - @staticmethod - def from_dict_( - arg: RequiredValidationDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> RequiredValidationDict: - return RequiredValidation.validate(arg, configuration=configuration) def __new__( cls, @@ -63,7 +57,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(RequiredValidationDictInput, arg_) return RequiredValidation.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + RequiredValidationDictInput, + RequiredValidationDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> RequiredValidationDict: + return RequiredValidation.validate(arg, configuration=configuration) @property def foo(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_empty_array.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_empty_array.py index 4bed83a5d00..6e0c4c39bc8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_empty_array.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_empty_array.py @@ -11,7 +11,7 @@ from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "foo": typing.Type[Foo], @@ -26,12 +26,6 @@ class RequiredWithEmptyArrayDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_ __optional_keys__: typing.FrozenSet[str] = frozenset({ "foo", }) - @staticmethod - def from_dict_( - arg: RequiredWithEmptyArrayDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> RequiredWithEmptyArrayDict: - return RequiredWithEmptyArray.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(RequiredWithEmptyArrayDictInput, arg_) return RequiredWithEmptyArray.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + RequiredWithEmptyArrayDictInput, + RequiredWithEmptyArrayDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> RequiredWithEmptyArrayDict: + return RequiredWithEmptyArray.validate(arg, configuration=configuration) @property def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_escaped_characters.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_escaped_characters.py index 8972fdfe65b..6865f78194d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_escaped_characters.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/required_with_escaped_characters.py @@ -23,12 +23,6 @@ class RequiredWithEscapedCharactersDict(schemas.immutabledict[str, schemas.OUTPU }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: RequiredWithEscapedCharactersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> RequiredWithEscapedCharactersDict: - return RequiredWithEscapedCharacters.validate(arg, configuration=configuration) def __new__( cls, @@ -41,7 +35,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(RequiredWithEscapedCharactersDictInput, arg_) return RequiredWithEscapedCharacters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + RequiredWithEscapedCharactersDictInput, + RequiredWithEscapedCharactersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> RequiredWithEscapedCharactersDict: + return RequiredWithEscapedCharacters.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/simple_enum_validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/simple_enum_validation.py index 4221623c985..cbd2eeff26f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/simple_enum_validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/simple_enum_validation.py @@ -15,15 +15,15 @@ class SimpleEnumValidationEnums: @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return SimpleEnumValidation.validate(1) @schemas.classproperty - def POSITIVE_2(cls) -> typing_extensions.Literal[2]: + def POSITIVE_2(cls) -> typing.Literal[2]: return SimpleEnumValidation.validate(2) @schemas.classproperty - def POSITIVE_3(cls) -> typing_extensions.Literal[3]: + def POSITIVE_3(cls) -> typing.Literal[3]: return SimpleEnumValidation.validate(3) @@ -53,30 +53,30 @@ class SimpleEnumValidation( @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[2], + arg: typing.Literal[2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[2]: ... + ) -> typing.Literal[2]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[3], + arg: typing.Literal[3], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[3]: ... + ) -> typing.Literal[3]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1,2,3,]: ... + ) -> typing.Literal[1,2,3,]: ... @classmethod def validate( cls, diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py index 39f512b6c53..50daf65a9e0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py @@ -22,7 +22,7 @@ class Alpha( }) inclusive_maximum: typing.Union[int, float] = 3 default: typing.Union[int, float] = 5 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "alpha": typing.Type[Alpha], @@ -37,12 +37,6 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict(schemas.immut __optional_keys__: typing.FrozenSet[str] = frozenset({ "alpha", }) - @staticmethod - def from_dict_( - arg: TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict: - return TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.validate(arg, configuration=configuration) def __new__( cls, @@ -65,7 +59,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput, arg_) return TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput, + TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict: + return TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.validate(arg, configuration=configuration) @property def alpha(self) -> typing.Union[int, float, schemas.Unset]: diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/configurations/api_configuration.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/configurations/api_configuration.py index bfc5a98f4cc..30deb1c7d10 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/configurations/api_configuration.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/configurations/api_configuration.py @@ -21,7 +21,7 @@ from unit_test_api.servers import server_0 # the server to use at each openapi document json path -ServerInfo = typing_extensions.TypedDict( +ServerInfo = typing.TypedDict( 'ServerInfo', { 'servers/0': server_0.Server0, @@ -30,10 +30,10 @@ ) -class ServerIndexInfoRequired(typing_extensions.TypedDict): - servers: typing_extensions.Literal[0] +class ServerIndexInfoRequired(typing.TypedDict): + servers: typing.Literal[0] -ServerIndexInfoOptional = typing_extensions.TypedDict( +ServerIndexInfoOptional = typing.TypedDict( 'ServerIndexInfoOptional', { }, @@ -251,7 +251,7 @@ def to_debug_report(self): def get_server_url( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "servers", ], index: typing.Optional[int], @@ -269,7 +269,7 @@ def get_server_url( # fallback and use the default index used_index = self.server_index_info.get("servers", 0) server_info_key = typing.cast( - typing_extensions.Literal[ + typing.Literal[ "servers/0", ], f"{key_prefix}/{used_index}" diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py index 274c11de669..3919d0459c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index 2cb8400de94..b99a1e03592 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_additionalproperties_are_allowed_by_default_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_additionalproperties_are_allowed_by_default_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index a6adcc73d74..87e6d559418 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_additionalproperties_can_exist_by_itself_request_body( additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_additionalproperties_can_exist_by_itself_request_body( additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_additionalproperties_can_exist_by_itself_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py index 5bb33706f33..8e28a994247 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index bc014213e55..df62c6894d1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_combined_with_anyof_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_combined_with_anyof_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_combined_with_anyof_oneof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index a1d9b5a24ba..364453afdf2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index 986436f5837..167997e0be3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_simple_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_simple_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_simple_types_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index 64e561600d9..5d6e5a9417f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_with_base_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_with_base_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_with_base_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index fab0d4cfcd1..c41c7abb227 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_with_one_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_with_one_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_with_one_empty_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 3ad91844a4c..7b4aa22f5c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_with_the_first_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_with_the_first_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_with_the_first_empty_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index c7b487fe71d..247deedb197 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_with_the_last_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_with_the_last_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_with_the_last_empty_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index 53aa48beb8c..de243529c40 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_allof_with_two_empty_schemas_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_allof_with_two_empty_schemas_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_allof_with_two_empty_schemas_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index 4aca720ee6e..c1d882fa50f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_anyof_complex_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_anyof_complex_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_anyof_complex_types_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index c6e1d4a162e..5392be95ab2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_anyof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_anyof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_anyof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 3edfb9e0cf2..0b83156330d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_anyof_with_base_schema_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_anyof_with_base_schema_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_anyof_with_base_schema_request_body( body: str, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index b235077c4fd..9ec95b7ec02 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_anyof_with_one_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_anyof_with_one_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_anyof_with_one_empty_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index 44184104c01..b7c44a67e0d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_array_type_matches_arrays_request_body( array_type_matches_arrays.ArrayTypeMatchesArraysTuple ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_array_type_matches_arrays_request_body( array_type_matches_arrays.ArrayTypeMatchesArraysTuple ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_array_type_matches_arrays_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index 28ef416b6c9..0c4bc24658c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_boolean_type_matches_booleans_request_body( self, body: bool, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_boolean_type_matches_booleans_request_body( self, body: bool, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_boolean_type_matches_booleans_request_body( body: bool, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 476dfa4e943..7d82e25ebaf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_by_int_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_by_int_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_by_int_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 493bf6c7ea1..7e4d024e818 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_by_number_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_by_number_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_by_number_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 7ee7790316a..1ebeac7c700 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_by_small_number_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_by_small_number_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_by_small_number_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index 6d7448de8d3..28c8dc3e083 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_date_time_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_date_time_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_date_time_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index fdd4da386e1..8727d68b73b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_email_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_email_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_email_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index a621dc67582..6c2a295bdac 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_enum_with0_does_not_match_false_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_enum_with0_does_not_match_false_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_enum_with0_does_not_match_false_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index a89dc584b8e..994f98feb69 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_enum_with1_does_not_match_true_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_enum_with1_does_not_match_true_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_enum_with1_does_not_match_true_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index cc79b748cd5..c92dedda09a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -31,13 +31,13 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "foo\nbar", "foo\rbar" ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -46,13 +46,13 @@ def _post_enum_with_escaped_characters_request_body( @typing.overload def _post_enum_with_escaped_characters_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "foo\nbar", "foo\rbar" ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -60,13 +60,13 @@ def _post_enum_with_escaped_characters_request_body( def _post_enum_with_escaped_characters_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "foo\nbar", "foo\rbar" ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index ba0bad434a6..aff23b76309 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -31,12 +31,12 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ False ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,12 +45,12 @@ def _post_enum_with_false_does_not_match0_request_body( @typing.overload def _post_enum_with_false_does_not_match0_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ False ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -58,12 +58,12 @@ def _post_enum_with_false_does_not_match0_request_body( def _post_enum_with_false_does_not_match0_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ False ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -106,7 +106,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 77180b51154..139fe18c966 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -31,12 +31,12 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ True ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,12 +45,12 @@ def _post_enum_with_true_does_not_match1_request_body( @typing.overload def _post_enum_with_true_does_not_match1_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ True ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -58,12 +58,12 @@ def _post_enum_with_true_does_not_match1_request_body( def _post_enum_with_true_does_not_match1_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ True ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -106,7 +106,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index a75d0373f01..ed6e7b81230 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_enums_in_properties_request_body( enums_in_properties.EnumsInPropertiesDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_enums_in_properties_request_body( enums_in_properties.EnumsInPropertiesDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_enums_in_properties_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index f353bfb500e..46217c66181 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_forbidden_property_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_forbidden_property_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_forbidden_property_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index 8b748f5f366..b7d0f127816 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_hostname_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_hostname_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_hostname_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index dfb18ee3ab3..b8cd1a3b31f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_integer_type_matches_integers_request_body( self, body: int, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_integer_type_matches_integers_request_body( self, body: int, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_integer_type_matches_integers_request_body( body: int, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py index c5918b3f6fe..de6b538ad87 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques self, body: int, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques self, body: int, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques body: int, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py index 11de2eb71fe..6a1cb6817a3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_invalid_string_value_for_default_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_invalid_string_value_for_default_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_invalid_string_value_for_default_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index ca98f88d094..92369d23fc3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ipv4_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ipv4_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ipv4_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index a93fa3d0fc6..f37ca537c41 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ipv6_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ipv6_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ipv6_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index 8758260d065..a0eab10a36a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_json_pointer_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_json_pointer_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_json_pointer_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 81517333131..898a1d303ed 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maximum_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maximum_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maximum_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 00989bf1d6f..1c4f855e870 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maximum_validation_with_unsigned_integer_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maximum_validation_with_unsigned_integer_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maximum_validation_with_unsigned_integer_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index a902caf6412..a666fb30fdb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maxitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maxitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maxitems_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 495f50ee92f..79d516829f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maxlength_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maxlength_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maxlength_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index 60866362406..f3b0af790a9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maxproperties0_means_the_object_is_empty_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maxproperties0_means_the_object_is_empty_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maxproperties0_means_the_object_is_empty_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index cb176b5b120..e61260a93cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_maxproperties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_maxproperties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_maxproperties_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index b122c1160eb..80bae3df4d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_minimum_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_minimum_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_minimum_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 30d5c6bcd7e..1661841a2fb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_minimum_validation_with_signed_integer_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_minimum_validation_with_signed_integer_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_minimum_validation_with_signed_integer_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index f5f31aade21..a96c9474e2c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_minitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_minitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_minitems_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 1093d3396b6..4918b3efd30 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_minlength_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_minlength_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_minlength_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 82ff78aa55d..98b26a84a6f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_minproperties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_minproperties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_minproperties_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index 49f881751f1..d1d165a59ed 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_nested_allof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_nested_allof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_nested_allof_to_check_validation_semantics_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index 6d30524eade..e48324ee80c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_nested_anyof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_nested_anyof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_nested_anyof_to_check_validation_semantics_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index 3a806fcb83e..faa7c7266d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_nested_items_request_body( nested_items.NestedItemsTuple ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_nested_items_request_body( nested_items.NestedItemsTuple ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_nested_items_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index ca3fec7bd26..b5ef0dca00d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_nested_oneof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_nested_oneof_to_check_validation_semantics_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_nested_oneof_to_check_validation_semantics_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index e1b3ee7199c..57849fc889d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_not_more_complex_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_not_more_complex_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_not_more_complex_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index 29da7bec770..d63f15c0b8c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_not_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_not_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_not_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index 64b945c8c03..b521f8d42c5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -31,12 +31,12 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "hello\x00there" ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,12 +45,12 @@ def _post_nul_characters_in_strings_request_body( @typing.overload def _post_nul_characters_in_strings_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "hello\x00there" ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -58,12 +58,12 @@ def _post_nul_characters_in_strings_request_body( def _post_nul_characters_in_strings_request_body( self, - body: typing_extensions.Literal[ + body: typing.Literal[ "hello\x00there" ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -106,7 +106,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index 3039f10b543..e4b653621a0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_null_type_matches_only_the_null_object_request_body( self, body: None, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_null_type_matches_only_the_null_object_request_body( self, body: None, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_null_type_matches_only_the_null_object_request_body( body: None, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 9588fca77f9..63ca3bef84a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_number_type_matches_numbers_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_number_type_matches_numbers_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_number_type_matches_numbers_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 61ca23e67d0..4c48562b936 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_object_properties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_object_properties_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_object_properties_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 93c1d332bfa..7075dfb67dc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_object_type_matches_objects_request_body( schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_object_type_matches_objects_request_body( schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_object_type_matches_objects_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index cce571ac436..ee6a59eb03b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_oneof_complex_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_oneof_complex_types_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_oneof_complex_types_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index 0ae42fe8705..2bb830e4fdc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_oneof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index 972b73593e6..cde0061a258 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_oneof_with_base_schema_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_oneof_with_base_schema_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_oneof_with_base_schema_request_body( body: str, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index 5cff6a0ef57..f3611231b21 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_oneof_with_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_oneof_with_empty_schema_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_oneof_with_empty_schema_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 40a99c7d6c2..45aac1b0644 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_oneof_with_required_request_body( schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_oneof_with_required_request_body( schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_oneof_with_required_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index adeef3cce6c..cf6a8fc241a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_pattern_is_not_anchored_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_pattern_is_not_anchored_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_pattern_is_not_anchored_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index 190684cab76..d4d620851c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_pattern_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_pattern_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_pattern_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index b6261ffb279..b48196cc896 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_properties_with_escaped_characters_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_properties_with_escaped_characters_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_properties_with_escaped_characters_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index 69b9be58e9e..ada223bdf12 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_property_named_ref_that_is_not_a_reference_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_property_named_ref_that_is_not_a_reference_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_property_named_ref_that_is_not_a_reference_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py index 731c325fda1..b6432f845ea 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_additionalproperties_request_body( ref_in_additionalproperties.RefInAdditionalpropertiesDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_additionalproperties_request_body( ref_in_additionalproperties.RefInAdditionalpropertiesDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_additionalproperties_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py index 8b998f2121b..c6d087a6178 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_allof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_allof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_allof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py index beb957986d4..d5ffe0b2ade 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_anyof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_anyof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_anyof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py index 30a10889dd3..41648e69095 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_items_request_body( ref_in_items.RefInItemsTuple ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_items_request_body( ref_in_items.RefInItemsTuple ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_items_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py index a07a7fa76a9..a9f4bca11be 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_not_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_not_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_not_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py index aa502224e9a..a1bc1303f3a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_oneof_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_oneof_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py index 8884d9e7a0e..d788cf02010 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_ref_in_property_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_ref_in_property_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_ref_in_property_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 74f8eb38f10..80c4ef28664 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_required_default_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_required_default_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_required_default_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 024d167340c..292ea1ac909 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_required_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_required_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_required_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 56e58299a99..8313bd00fd5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_required_with_empty_array_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_required_with_empty_array_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_required_with_empty_array_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index f4c47f856bb..9f84f5d435d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_required_with_escaped_characters_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_required_with_escaped_characters_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_required_with_escaped_characters_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index a36c1a4e585..0734c74a9b2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_simple_enum_validation_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_simple_enum_validation_request_body( float ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_simple_enum_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index 8b88753c234..47cfc3771e9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -33,8 +33,8 @@ def _post_string_type_matches_strings_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -45,8 +45,8 @@ def _post_string_type_matches_strings_request_body( self, body: str, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +57,7 @@ def _post_string_type_matches_strings_request_body( body: str, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py index 7e53ee6d78e..aa3710a8391 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index 8f2004bda9f..b8ae9395c4b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_uniqueitems_false_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_uniqueitems_false_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_uniqueitems_false_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index b59bf92653e..a3bc01d48ae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_uniqueitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_uniqueitems_validation_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_uniqueitems_validation_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index bf17ea2228c..ae1ef69813d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_uri_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_uri_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_uri_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 137607f6e71..2e69c8c5e0f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_uri_reference_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_uri_reference_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_uri_reference_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index db540734adc..17e17846bda 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _post_uri_template_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _post_uri_template_format_request_body( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _post_uri_template_format_request_body( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py index 82fdcd089f9..169531f3cd6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 59205a2efc1..090b14d82de 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index e1ca96275ce..30fdcbd90c7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py index a38efb3eb59..0be3c6cd84b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 20a9acbf01c..01e96ea5a8d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_combined_with_anyof_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types( def _post_allof_combined_with_anyof_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 0c0885aa05f..7dc48ea05b5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_response_body_for_content_types( def _post_allof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index 7a3f0ccba56..da0d46d7ad9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_simple_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_simple_types_response_body_for_content_types( def _post_allof_simple_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index b9df3c6dcc5..95e82a9b74d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_with_base_schema_response_body_for_content_types( def _post_allof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 5f45d408073..6246cf73da7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_with_one_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types( def _post_allof_with_one_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 927ad7a4577..9d0d84c8b83 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_with_the_first_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types( def _post_allof_with_the_first_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 74bb44b6935..07440623ae1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_with_the_last_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types( def _post_allof_with_the_last_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 944213f1f3a..5ddd8aba6cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_allof_with_two_empty_schemas_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types( def _post_allof_with_two_empty_schemas_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 94be8d125a2..564492657b6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_anyof_complex_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_anyof_complex_types_response_body_for_content_types( def _post_anyof_complex_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 7cba7186920..99431cc5f3b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_anyof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_anyof_response_body_for_content_types( def _post_anyof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 084a80c85b6..5a9ce6a0b52 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_anyof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_anyof_with_base_schema_response_body_for_content_types( def _post_anyof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index b7c285f64f4..2238c21de72 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_anyof_with_one_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types( def _post_anyof_with_one_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index 6f86f31ab36..e72819e1ddb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_array_type_matches_arrays_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_array_type_matches_arrays_response_body_for_content_types( def _post_array_type_matches_arrays_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index c3af07aaea4..a6705e72cab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_boolean_type_matches_booleans_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types( def _post_boolean_type_matches_booleans_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 669fbacdbd5..097f09a881f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_by_int_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_by_int_response_body_for_content_types( def _post_by_int_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index ab01d7e9e18..d40fd29a04e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_by_number_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_by_number_response_body_for_content_types( def _post_by_number_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 88f3e7e0143..49e765acc99 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_by_small_number_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_by_small_number_response_body_for_content_types( def _post_by_small_number_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index a6843f65e3f..20ade10b80a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_date_time_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_date_time_format_response_body_for_content_types( def _post_date_time_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index e55681c2db1..112a8424a30 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_email_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_email_format_response_body_for_content_types( def _post_email_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index ca41022e8b2..7534d1d4fdd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enum_with0_does_not_match_false_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types( def _post_enum_with0_does_not_match_false_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 48be28b305b..3d89df03917 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enum_with1_does_not_match_true_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types( def _post_enum_with1_does_not_match_true_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index 217789ffc22..b8ff055d10c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enum_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enum_with_escaped_characters_response_body_for_content_types( def _post_enum_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 3739e82b828..f061a192eab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -12,7 +12,7 @@ @dataclasses.dataclass class ApiResponse(api_response.ApiResponse): response: urllib3.HTTPResponse - body: typing_extensions.Literal["foo\nbar", "foo\rbar"] + body: typing.Literal["foo\nbar", "foo\rbar"] headers: schemas.Unset = schemas.unset diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 37f79e463a9..916c091d348 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enum_with_false_does_not_match0_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types( def _post_enum_with_false_does_not_match0_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index 96487305992..eebec063e04 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -12,7 +12,7 @@ @dataclasses.dataclass class ApiResponse(api_response.ApiResponse): response: urllib3.HTTPResponse - body: typing_extensions.Literal[False] + body: typing.Literal[False] headers: schemas.Unset = schemas.unset diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index 3eff9821839..eab55cb3656 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enum_with_true_does_not_match1_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types( def _post_enum_with_true_does_not_match1_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index 79ac91550c0..fc99a56108b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -12,7 +12,7 @@ @dataclasses.dataclass class ApiResponse(api_response.ApiResponse): response: urllib3.HTTPResponse - body: typing_extensions.Literal[True] + body: typing.Literal[True] headers: schemas.Unset = schemas.unset diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 43d177e366c..63dbc1d7b53 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_enums_in_properties_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_enums_in_properties_response_body_for_content_types( def _post_enums_in_properties_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index c4355913141..564fa742323 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_forbidden_property_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_forbidden_property_response_body_for_content_types( def _post_forbidden_property_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index d80378a706b..99ade598795 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_hostname_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_hostname_format_response_body_for_content_types( def _post_hostname_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 0bcef96ea68..93b66401eae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_integer_type_matches_integers_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_integer_type_matches_integers_response_body_for_content_types( def _post_integer_type_matches_integers_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py index d4231ddd860..64105ee313a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py index 7937d5764f0..55db8d9d0eb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_invalid_string_value_for_default_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_invalid_string_value_for_default_response_body_for_content_types( def _post_invalid_string_value_for_default_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index 4d795cb5333..da231a84141 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ipv4_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ipv4_format_response_body_for_content_types( def _post_ipv4_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index ecf8ce45423..fb8dfd0b363 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ipv6_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ipv6_format_response_body_for_content_types( def _post_ipv6_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 75124d535ef..55cd085b6b5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_json_pointer_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_json_pointer_format_response_body_for_content_types( def _post_json_pointer_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index 092812c1bd8..fb63d32b1cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maximum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maximum_validation_response_body_for_content_types( def _post_maximum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index f3f03eefa5e..d5a88e876d0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index 98cbf751f90..c080de1ae09 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maxitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maxitems_validation_response_body_for_content_types( def _post_maxitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 8a6c9bda04b..94fec2d28c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maxlength_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maxlength_validation_response_body_for_content_types( def _post_maxlength_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index c2505ab2d6d..d2a9ba4469e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index fc17c2cb32c..d67cb2110ae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_maxproperties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_maxproperties_validation_response_body_for_content_types( def _post_maxproperties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index 874f829a5be..e2806d1a61d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_minimum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_minimum_validation_response_body_for_content_types( def _post_minimum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index 1990f7cbfdb..c830d5678bf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_minimum_validation_with_signed_integer_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types def _post_minimum_validation_with_signed_integer_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index c0cc6f59315..15946ad6450 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_minitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_minitems_validation_response_body_for_content_types( def _post_minitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index 0f224b8479d..c7464c7b38f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_minlength_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_minlength_validation_response_body_for_content_types( def _post_minlength_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index a8b3b8f1014..95226b68f3d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_minproperties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_minproperties_validation_response_body_for_content_types( def _post_minproperties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 90fb6b1453a..578d2167c2e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index ea28dc0a931..b68edd3471b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index 3241fc0849b..e6fc6c285c9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_nested_items_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_nested_items_response_body_for_content_types( def _post_nested_items_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index cc18dc37907..aa684fa8db6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 4353fc51017..6ae647ad6f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_not_more_complex_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_not_more_complex_schema_response_body_for_content_types( def _post_not_more_complex_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index d45671039de..0a73512a8b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_not_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_not_response_body_for_content_types( def _post_not_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 5017ed1a5fb..d1545d7dc02 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_nul_characters_in_strings_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_nul_characters_in_strings_response_body_for_content_types( def _post_nul_characters_in_strings_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 4d2f698ca27..14261b2cda0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -12,7 +12,7 @@ @dataclasses.dataclass class ApiResponse(api_response.ApiResponse): response: urllib3.HTTPResponse - body: typing_extensions.Literal["hello\x00there"] + body: typing.Literal["hello\x00there"] headers: schemas.Unset = schemas.unset diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 4a98665993d..5c40e450c0f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_null_type_matches_only_the_null_object_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types def _post_null_type_matches_only_the_null_object_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 92069b320db..907a62f5004 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_number_type_matches_numbers_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_number_type_matches_numbers_response_body_for_content_types( def _post_number_type_matches_numbers_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index 4d67e28f6b3..d28a04439db 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_object_properties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_object_properties_validation_response_body_for_content_types( def _post_object_properties_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 2ba2777f929..08e97aa21b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_object_type_matches_objects_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_object_type_matches_objects_response_body_for_content_types( def _post_object_type_matches_objects_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index 1a757870272..fc443417cde 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_oneof_complex_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_oneof_complex_types_response_body_for_content_types( def _post_oneof_complex_types_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index e07300259a8..085a08a618e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_oneof_response_body_for_content_types( def _post_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index da09f577f25..1fae0ff470d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_oneof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_oneof_with_base_schema_response_body_for_content_types( def _post_oneof_with_base_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 4534a8bf16a..0f147a7dca7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_oneof_with_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_oneof_with_empty_schema_response_body_for_content_types( def _post_oneof_with_empty_schema_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index 29d2b194db0..a04bd8b8243 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_oneof_with_required_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_oneof_with_required_response_body_for_content_types( def _post_oneof_with_required_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index 305cc7aa540..e4d865cd63e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_pattern_is_not_anchored_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_pattern_is_not_anchored_response_body_for_content_types( def _post_pattern_is_not_anchored_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index e41679244be..f271f994e3f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_pattern_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_pattern_validation_response_body_for_content_types( def _post_pattern_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 41c5f5bef9e..74d601d6ca6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_properties_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_properties_with_escaped_characters_response_body_for_content_types( def _post_properties_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index c85b26dc073..222ecd2bd65 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py index a3eb97b1569..b0b7510fda7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_additionalproperties_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_additionalproperties_response_body_for_content_types( def _post_ref_in_additionalproperties_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py index 25782cb16d2..df6ab9e0998 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_allof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_allof_response_body_for_content_types( def _post_ref_in_allof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py index 7f06a395762..8fbf2b36ac6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_anyof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_anyof_response_body_for_content_types( def _post_ref_in_anyof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py index 24384c95b89..869038af506 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_items_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_items_response_body_for_content_types( def _post_ref_in_items_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py index ba72f432b46..c5e2ddf926c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_not_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_not_response_body_for_content_types( def _post_ref_in_not_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py index 21e9679c69e..a296e1cd756 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_oneof_response_body_for_content_types( def _post_ref_in_oneof_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py index ce86c7d52be..96d196b3daf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_ref_in_property_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_ref_in_property_response_body_for_content_types( def _post_ref_in_property_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index 3167610b78b..f0905a65506 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_required_default_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_required_default_validation_response_body_for_content_types( def _post_required_default_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index fc94d713d85..a4ce81f6b8b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_required_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_required_validation_response_body_for_content_types( def _post_required_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index cbc30b0f72d..78ca7737667 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_required_with_empty_array_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_required_with_empty_array_response_body_for_content_types( def _post_required_with_empty_array_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index ab7441d1558..7e1bd517f1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_required_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_required_with_escaped_characters_response_body_for_content_types( def _post_required_with_escaped_characters_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index b4281195828..0f0f1c9b902 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_simple_enum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_simple_enum_validation_response_body_for_content_types( def _post_simple_enum_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 0588eeb04b9..102cea8c432 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_string_type_matches_strings_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_string_type_matches_strings_response_body_for_content_types( def _post_string_type_matches_strings_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/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/operation.py b/samples/client/3_0_3_unit_test/python/src/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/operation.py index 4a86563ee8d..6d0ec3120dd 100644 --- a/samples/client/3_0_3_unit_test/python/src/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/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/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/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index 02221ebab30..d8c291ec290 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_uniqueitems_false_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_uniqueitems_false_validation_response_body_for_content_types( def _post_uniqueitems_false_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 211aefae92a..85ab539389c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_uniqueitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_uniqueitems_validation_response_body_for_content_types( def _post_uniqueitems_validation_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index fda6daab152..2e78f3fc368 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_uri_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_uri_format_response_body_for_content_types( def _post_uri_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index 584b44293a0..ce243405e0e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_uri_reference_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_uri_reference_format_response_body_for_content_types( def _post_uri_reference_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 2d5131923a7..94aa199b34a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _post_uri_template_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _post_uri_template_format_response_body_for_content_types( def _post_uri_template_format_response_body_for_content_types( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -90,7 +90,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/__init__.py index 23a462b48d3..75cdb24e298 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/__init__.py @@ -63,7 +63,7 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M for key, val in t_dict.__annotations__.items(): if isinstance(val, typing._GenericAlias): # type: ignore # typing.Type[W] -> W - val_cls = typing_extensions.get_args(val)[0] + val_cls = typing.get_args(val)[0] res[key] = val_cls return res @@ -71,10 +71,10 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M def tuple_to_instance(tup: typing.Type[X]) -> X: res = [] - for arg in typing_extensions.get_args(tup): + for arg in typing.get_args(tup): if isinstance(arg, typing._GenericAlias): # type: ignore # typing.Type[Schema] -> Schema - arg_cls = typing_extensions.get_args(arg)[0] + arg_cls = typing.get_args(arg)[0] res.append(arg_cls) return tuple(res) # type: ignore @@ -135,10 +135,10 @@ def raise_if_key_known( 'PatternInfo', 'ValidationMetadata', 'immutabledict', - 'as_date_', - 'as_datetime_', - 'as_decimal_', - 'as_uuid_', + 'as_date', + 'as_datetime', + 'as_decimal', + 'as_uuid', 'typed_dict_to_instance', 'tuple_to_instance', 'Unset', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schema.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schema.py index 5df01fbd3ad..c9ef4f83fe8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schema.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schema.py @@ -399,17 +399,17 @@ def validate_base( @classmethod def validate_base( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate_base( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod @@ -541,7 +541,7 @@ def get_class( ) -> typing.Type[Schema]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls @@ -574,17 +574,17 @@ def validate( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schemas.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schemas.py index c6f8ecdf6b8..d7d36c54cb7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schemas.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/schemas.py @@ -287,17 +287,17 @@ class BoolSchema(schema.Schema): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py index 24a1f2fe343..913dedfc0dd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py @@ -139,7 +139,7 @@ def _get_class( ) -> typing.Type[SchemaValidator]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/security_schemes.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/security_schemes.py index c36acb8a086..714f7ab4f29 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/security_schemes.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/security_schemes.py @@ -219,7 +219,7 @@ def apply_auth( Key is the Security scheme class Value is the list of scopes """ -SecurityRequirementObject = typing_extensions.TypedDict( +SecurityRequirementObject = typing.TypedDict( 'SecurityRequirementObject', { }, diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES index 24831b94071..e5535ee70ae 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES @@ -7,6 +7,7 @@ docs/components/schema/addition_operator.md docs/components/schema/operator.md docs/components/schema/subtraction_operator.md docs/paths/operators/post.md +docs/paths/operators/post/request_body/content/application_json/schema.md docs/servers/server_0.md git_push.sh migration_2_0_0.md diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md index 62062066373..33170567277 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md @@ -112,7 +112,7 @@ N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. See te below accessors for string data: -- type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ +- type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -131,7 +131,7 @@ For example the string payload '2023-12-20' is validates to both of these schema format: date ``` Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data -is stored as a string, with a date accessor, instance.as_date_ +is stored as a string, with a date accessor, instance.as_date ## Getting Started diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/addition_operator.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/addition_operator.md index 76544562172..cd2c58ba95c 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/addition_operator.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/addition_operator.md @@ -1,16 +1,46 @@ +# AdditionOperator this_package.components.schema.addition_operator -# Schema AdditionOperator +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionOperatorDictInput](#additionoperatordictinput), [AdditionOperatorDict](#additionoperatordict) | [AdditionOperatorDict](#additionoperatordict) | + +## AdditionOperatorDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of ADD + +## AdditionOperatorDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of ADD + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of ADD -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | float, int | float, int | | value must be a 64 bit float -**b** | float, int | float, int | | value must be a 64 bit float -**operator_id** | str | str | | if omitted the server will use the default value of ADD +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionOperatorDictInput](#additionoperatordictinput), [AdditionOperatorDict](#additionoperatordict) | [AdditionOperatorDict](#additionoperatordict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/operator.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/operator.md index 06a76c07afd..37bcfdf5255 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/operator.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/operator.md @@ -1,16 +1,19 @@ +# Operator this_package.components.schema.operator -# Schema Operator +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**AdditionOperator**](addition_operator.md) | [**AdditionOperator**](addition_operator.md) | [**AdditionOperator**](addition_operator.md) | | -[**SubtractionOperator**](subtraction_operator.md) | [**SubtractionOperator**](subtraction_operator.md) | [**SubtractionOperator**](subtraction_operator.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**addition_operator.AdditionOperator**](../../components/schema/addition_operator.md) | [addition_operator.AdditionOperatorDictInput](../../components/schema/addition_operator.md#additionoperatordictinput), [addition_operator.AdditionOperatorDict](../../components/schema/addition_operator.md#additionoperatordict) | [addition_operator.AdditionOperatorDict](../../components/schema/addition_operator.md#additionoperatordict) +[**subtraction_operator.SubtractionOperator**](../../components/schema/subtraction_operator.md) | [subtraction_operator.SubtractionOperatorDictInput](../../components/schema/subtraction_operator.md#subtractionoperatordictinput), [subtraction_operator.SubtractionOperatorDict](../../components/schema/subtraction_operator.md#subtractionoperatordict) | [subtraction_operator.SubtractionOperatorDict](../../components/schema/subtraction_operator.md#subtractionoperatordict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/subtraction_operator.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/subtraction_operator.md index 28047d1d88a..22f009f8ae4 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/subtraction_operator.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/subtraction_operator.md @@ -1,16 +1,46 @@ +# SubtractionOperator this_package.components.schema.subtraction_operator -# Schema SubtractionOperator +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SubtractionOperatorDictInput](#subtractionoperatordictinput), [SubtractionOperatorDict](#subtractionoperatordict) | [SubtractionOperatorDict](#subtractionoperatordict) | + +## SubtractionOperatorDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of SUB + +## SubtractionOperatorDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of SUB + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | float, int | | value must be a 64 bit float +**b** | float, int | | value must be a 64 bit float +**operator_id** | str | | if omitted the server will use the default value of SUB -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | float, int | float, int | | value must be a 64 bit float -**b** | float, int | float, int | | value must be a 64 bit float -**operator_id** | str | str | | if omitted the server will use the default value of SUB +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SubtractionOperatorDictInput](#subtractionoperatordictinput), [SubtractionOperatorDict](#subtractionoperatordict) | [SubtractionOperatorDict](#subtractionoperatordict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md index 47eda9b6237..bbebb571d03 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md @@ -24,8 +24,8 @@ this_package.paths.operators.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -39,25 +39,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +this_package.paths.operators.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Operator](../../components/schema/operator.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**operator.Operator**](../../components/schema/operator.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK ## ResponseFor200 ### Description OK -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post/request_body/content/application_json/schema.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e94e96b946b --- /dev/null +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +this_package.paths.operators.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**operator.Operator**](../../../../../../components/schema/operator.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/migration_other_python_generators.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/migration_other_python_generators.md index db57f718d75..e9dea7cbad7 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/migration_other_python_generators.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/migration_other_python_generators.md @@ -20,12 +20,10 @@ When switching from other python client generators you will need to make some ch 6. String + Number types with formats - String type data is stored as a string and if you need to access types based on its format like date, date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ - - type number + format: See .as_float_, .as_int_ + - type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid - this was done because openapi/json-schema defines constraints. string data may be type string with no format keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_/as_datetime_/as_decimal_/as_uuid_ - - So if you need to access a number format based type, use as_int_/as_float_ + - So if you need to access a string format based type, use as_date/as_datetime/as_decimal/as_uuid 7. Property access on AnyType(type unset) or object(dict) schemas - Only required keys with valid python names are properties like .someProp and have type hints - All optional keys may not exist, so properties are not defined for them diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/api_client.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/api_client.py index 5379ad91bc2..bb363271df5 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/api_client.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/api_client.py @@ -1247,7 +1247,7 @@ def _verify_response_status(response: api_response.ApiResponse): ) -class SerializedRequestBody(typing_extensions.TypedDict, total=False): +class SerializedRequestBody(typing.TypedDict, total=False): body: typing.Union[str, bytes] fields: typing.Tuple[rest.RequestField, ...] diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/path_to_api.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/path_to_api.py index 9b93470cc63..baf0b4670dc 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/path_to_api.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/path_to_api.py @@ -3,7 +3,7 @@ from this_package.apis.paths.operators import Operators -PathToApi = typing_extensions.TypedDict( +PathToApi = typing.TypedDict( 'PathToApi', { "/operators": typing.Type[Operators], diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tag_to_api.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tag_to_api.py index c58c06a5153..902bd19c83e 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tag_to_api.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tag_to_api.py @@ -3,7 +3,7 @@ from this_package.apis.tags.default_api import DefaultApi -TagToApi = typing_extensions.TypedDict( +TagToApi = typing.TypedDict( 'TagToApi', { "default": typing.Type[DefaultApi], diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/addition_operator.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/addition_operator.py index 5acf923ba98..33b16966829 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/addition_operator.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/addition_operator.py @@ -22,8 +22,8 @@ class OperatorId( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["ADD"] = "ADD" -Properties = typing_extensions.TypedDict( + default: typing.Literal["ADD"] = "ADD" +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -42,12 +42,6 @@ class AdditionOperatorDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: AdditionOperatorDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionOperatorDict: - return AdditionOperator.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( } used_arg_ = typing.cast(AdditionOperatorDictInput, arg_) return AdditionOperator.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AdditionOperatorDictInput, + AdditionOperatorDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionOperatorDict: + return AdditionOperator.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[int, float]: @@ -92,7 +95,7 @@ def operator_id(self) -> str: str, self.__getitem__("operator_id") ) -AdditionOperatorDictInput = typing_extensions.TypedDict( +AdditionOperatorDictInput = typing.TypedDict( 'AdditionOperatorDictInput', { "a": typing.Union[ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/subtraction_operator.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/subtraction_operator.py index 0cd77efc1ff..95132c36215 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/subtraction_operator.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/subtraction_operator.py @@ -22,8 +22,8 @@ class OperatorId( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["SUB"] = "SUB" -Properties = typing_extensions.TypedDict( + default: typing.Literal["SUB"] = "SUB" +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -42,12 +42,6 @@ class SubtractionOperatorDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYP }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: SubtractionOperatorDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SubtractionOperatorDict: - return SubtractionOperator.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( } used_arg_ = typing.cast(SubtractionOperatorDictInput, arg_) return SubtractionOperator.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SubtractionOperatorDictInput, + SubtractionOperatorDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SubtractionOperatorDict: + return SubtractionOperator.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[int, float]: @@ -92,7 +95,7 @@ def operator_id(self) -> str: str, self.__getitem__("operator_id") ) -SubtractionOperatorDictInput = typing_extensions.TypedDict( +SubtractionOperatorDictInput = typing.TypedDict( 'SubtractionOperatorDictInput', { "a": typing.Union[ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/configurations/api_configuration.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/configurations/api_configuration.py index 9e024ec2125..c4f1ac7931d 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/configurations/api_configuration.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/configurations/api_configuration.py @@ -21,7 +21,7 @@ from this_package.servers import server_0 # the server to use at each openapi document json path -ServerInfo = typing_extensions.TypedDict( +ServerInfo = typing.TypedDict( 'ServerInfo', { 'servers/0': server_0.Server0, @@ -30,10 +30,10 @@ ) -class ServerIndexInfoRequired(typing_extensions.TypedDict): - servers: typing_extensions.Literal[0] +class ServerIndexInfoRequired(typing.TypedDict): + servers: typing.Literal[0] -ServerIndexInfoOptional = typing_extensions.TypedDict( +ServerIndexInfoOptional = typing.TypedDict( 'ServerIndexInfoOptional', { }, @@ -251,7 +251,7 @@ def to_debug_report(self): def get_server_url( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "servers", ], index: typing.Optional[int], @@ -269,7 +269,7 @@ def get_server_url( # fallback and use the default index used_index = self.server_index_info.get("servers", 0) server_info_key = typing.cast( - typing_extensions.Literal[ + typing.Literal[ "servers/0", ], f"{key_prefix}/{used_index}" diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py index aea5a9dfa81..155ec32a45e 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -37,8 +37,8 @@ def _post_operators( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -53,8 +53,8 @@ def _post_operators( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -69,7 +69,7 @@ def _post_operators( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -112,7 +112,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/__init__.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/__init__.py index 71d5d48f8a2..1df56a1a180 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/__init__.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/__init__.py @@ -63,7 +63,7 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M for key, val in t_dict.__annotations__.items(): if isinstance(val, typing._GenericAlias): # type: ignore # typing.Type[W] -> W - val_cls = typing_extensions.get_args(val)[0] + val_cls = typing.get_args(val)[0] res[key] = val_cls return res @@ -71,10 +71,10 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M def tuple_to_instance(tup: typing.Type[X]) -> X: res = [] - for arg in typing_extensions.get_args(tup): + for arg in typing.get_args(tup): if isinstance(arg, typing._GenericAlias): # type: ignore # typing.Type[Schema] -> Schema - arg_cls = typing_extensions.get_args(arg)[0] + arg_cls = typing.get_args(arg)[0] res.append(arg_cls) return tuple(res) # type: ignore @@ -135,10 +135,10 @@ def raise_if_key_known( 'PatternInfo', 'ValidationMetadata', 'immutabledict', - 'as_date_', - 'as_datetime_', - 'as_decimal_', - 'as_uuid_', + 'as_date', + 'as_datetime', + 'as_decimal', + 'as_uuid', 'typed_dict_to_instance', 'tuple_to_instance', 'Unset', diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schema.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schema.py index 43830839727..583fd19425a 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schema.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schema.py @@ -399,17 +399,17 @@ def validate_base( @classmethod def validate_base( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate_base( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod @@ -541,7 +541,7 @@ def get_class( ) -> typing.Type[Schema]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls @@ -574,17 +574,17 @@ def validate( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schemas.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schemas.py index 4a41b8a7bfc..b85807f2665 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schemas.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/schemas.py @@ -287,17 +287,17 @@ class BoolSchema(schema.Schema): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py index ecbd3db927a..8a7be08eb69 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py @@ -151,7 +151,7 @@ def _get_class( ) -> typing.Type[SchemaValidator]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/security_schemes.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/security_schemes.py index 75659da7e3d..15b1c7d2af9 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/security_schemes.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/security_schemes.py @@ -219,7 +219,7 @@ def apply_auth( Key is the Security scheme class Value is the list of scopes """ -SecurityRequirementObject = typing_extensions.TypedDict( +SecurityRequirementObject = typing.TypedDict( 'SecurityRequirementObject', { }, diff --git a/samples/client/openapi_features/security/python/README.md b/samples/client/openapi_features/security/python/README.md index 6956b67d23e..95741f9a5cb 100644 --- a/samples/client/openapi_features/security/python/README.md +++ b/samples/client/openapi_features/security/python/README.md @@ -112,7 +112,7 @@ N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. See te below accessors for string data: -- type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ +- type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -131,7 +131,7 @@ For example the string payload '2023-12-20' is validates to both of these schema format: date ``` Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data -is stored as a string, with a date accessor, instance.as_date_ +is stored as a string, with a date accessor, instance.as_date ## Getting Started diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md index 6956af99244..63d1b549db8 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md @@ -35,14 +35,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK ## ResponseFor200 ### Description OK -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md index 11c3da65df4..c52ddcbb129 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK ## ResponseFor200 ### Description OK -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md index 1bd627279a4..dafacaace26 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK ## ResponseFor200 ### Description OK -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md index 70ea4d2d3b4..4690217ed7d 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK ## ResponseFor200 ### Description OK -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/migration_other_python_generators.md b/samples/client/openapi_features/security/python/migration_other_python_generators.md index db57f718d75..e9dea7cbad7 100644 --- a/samples/client/openapi_features/security/python/migration_other_python_generators.md +++ b/samples/client/openapi_features/security/python/migration_other_python_generators.md @@ -20,12 +20,10 @@ When switching from other python client generators you will need to make some ch 6. String + Number types with formats - String type data is stored as a string and if you need to access types based on its format like date, date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ - - type number + format: See .as_float_, .as_int_ + - type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid - this was done because openapi/json-schema defines constraints. string data may be type string with no format keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_/as_datetime_/as_decimal_/as_uuid_ - - So if you need to access a number format based type, use as_int_/as_float_ + - So if you need to access a string format based type, use as_date/as_datetime/as_decimal/as_uuid 7. Property access on AnyType(type unset) or object(dict) schemas - Only required keys with valid python names are properties like .someProp and have type hints - All optional keys may not exist, so properties are not defined for them diff --git a/samples/client/openapi_features/security/python/src/this_package/api_client.py b/samples/client/openapi_features/security/python/src/this_package/api_client.py index 9ae8abfe3a0..41c56936c29 100644 --- a/samples/client/openapi_features/security/python/src/this_package/api_client.py +++ b/samples/client/openapi_features/security/python/src/this_package/api_client.py @@ -1145,7 +1145,7 @@ def update_params_for_auth( return for security_scheme_component_name, scope_names in security_requirement_object.items(): scope_names = typing.cast(typing.Tuple[str, ...], scope_names) - security_scheme_component_name = typing.cast(typing_extensions.Literal[ + security_scheme_component_name = typing.cast(typing.Literal[ 'api_key', 'bearer_test', 'http_basic_test', @@ -1270,7 +1270,7 @@ def _verify_response_status(response: api_response.ApiResponse): ) -class SerializedRequestBody(typing_extensions.TypedDict, total=False): +class SerializedRequestBody(typing.TypedDict, total=False): body: typing.Union[str, bytes] fields: typing.Tuple[rest.RequestField, ...] diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/path_to_api.py b/samples/client/openapi_features/security/python/src/this_package/apis/path_to_api.py index 3f15addab19..b37ffc54bbf 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/path_to_api.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/path_to_api.py @@ -6,7 +6,7 @@ from this_package.apis.paths.path_with_security_from_root import PathWithSecurityFromRoot from this_package.apis.paths.path_with_two_explicit_security import PathWithTwoExplicitSecurity -PathToApi = typing_extensions.TypedDict( +PathToApi = typing.TypedDict( 'PathToApi', { "/pathWithNoExplicitSecurity": typing.Type[PathWithNoExplicitSecurity], diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/tag_to_api.py b/samples/client/openapi_features/security/python/src/this_package/apis/tag_to_api.py index c58c06a5153..902bd19c83e 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/tag_to_api.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/tag_to_api.py @@ -3,7 +3,7 @@ from this_package.apis.tags.default_api import DefaultApi -TagToApi = typing_extensions.TypedDict( +TagToApi = typing.TypedDict( 'TagToApi', { "default": typing.Type[DefaultApi], diff --git a/samples/client/openapi_features/security/python/src/this_package/configurations/api_configuration.py b/samples/client/openapi_features/security/python/src/this_package/configurations/api_configuration.py index ac0e05549cb..2a6fb032a55 100644 --- a/samples/client/openapi_features/security/python/src/this_package/configurations/api_configuration.py +++ b/samples/client/openapi_features/security/python/src/this_package/configurations/api_configuration.py @@ -25,7 +25,7 @@ from this_package.servers import server_0 # security scheme key identifier to security scheme instance -SecuritySchemeInfo = typing_extensions.TypedDict( +SecuritySchemeInfo = typing.TypedDict( 'SecuritySchemeInfo', { "api_key": security_scheme_api_key.ApiKey, @@ -36,14 +36,14 @@ ) -class SecurityIndexInfoRequired(typing_extensions.TypedDict): - security: typing_extensions.Literal[0, 1, 2, 3] +class SecurityIndexInfoRequired(typing.TypedDict): + security: typing.Literal[0, 1, 2, 3] -SecurityIndexInfoOptional = typing_extensions.TypedDict( +SecurityIndexInfoOptional = typing.TypedDict( 'SecurityIndexInfoOptional', { - "paths//pathWithOneExplicitSecurity/get/security": typing_extensions.Literal[0], - "paths//pathWithTwoExplicitSecurity/get/security": typing_extensions.Literal[0, 1], + "paths//pathWithOneExplicitSecurity/get/security": typing.Literal[0], + "paths//pathWithTwoExplicitSecurity/get/security": typing.Literal[0, 1], }, total=False ) @@ -56,7 +56,7 @@ class SecurityIndexInfo(SecurityIndexInfoRequired, SecurityIndexInfoOptional): """ # the server to use at each openapi document json path -ServerInfo = typing_extensions.TypedDict( +ServerInfo = typing.TypedDict( 'ServerInfo', { 'servers/0': server_0.Server0, @@ -65,10 +65,10 @@ class SecurityIndexInfo(SecurityIndexInfoRequired, SecurityIndexInfoOptional): ) -class ServerIndexInfoRequired(typing_extensions.TypedDict): - servers: typing_extensions.Literal[0] +class ServerIndexInfoRequired(typing.TypedDict): + servers: typing.Literal[0] -ServerIndexInfoOptional = typing_extensions.TypedDict( +ServerIndexInfoOptional = typing.TypedDict( 'ServerIndexInfoOptional', { }, @@ -293,7 +293,7 @@ def to_debug_report(self): def get_server_url( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "servers", ], index: typing.Optional[int], @@ -311,7 +311,7 @@ def get_server_url( # fallback and use the default index used_index = self.server_index_info.get("servers", 0) server_info_key = typing.cast( - typing_extensions.Literal[ + typing.Literal[ "servers/0", ], f"{key_prefix}/{used_index}" @@ -324,7 +324,7 @@ def get_server_url( def get_security_requirement_object( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "security", "paths//pathWithOneExplicitSecurity/get/security", "paths//pathWithTwoExplicitSecurity/get/security", diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py index 37c2322700e..e5b06b7f0bb 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -30,7 +30,7 @@ class BaseApi(api_client.Api): def _path_with_no_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -40,7 +40,7 @@ def _path_with_no_explicit_security( def _path_with_no_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -82,7 +82,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py index e182ebcd046..ab6869f2a45 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py @@ -16,7 +16,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -35,7 +35,7 @@ class BaseApi(api_client.Api): def _path_with_one_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -46,7 +46,7 @@ def _path_with_one_explicit_security( def _path_with_one_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -96,7 +96,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index 6cbe68c0e14..677e4d34b58 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -24,7 +24,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -43,7 +43,7 @@ class BaseApi(api_client.Api): def _path_with_security_from_root( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -54,7 +54,7 @@ def _path_with_security_from_root( def _path_with_security_from_root( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -104,7 +104,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py index 104dd034ba8..f0ff8df1e9e 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py @@ -20,7 +20,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): def _path_with_two_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -50,7 +50,7 @@ def _path_with_two_explicit_security( def _path_with_two_explicit_security( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/openapi_features/security/python/src/this_package/schemas/__init__.py b/samples/client/openapi_features/security/python/src/this_package/schemas/__init__.py index 2b5d7256ce6..5b34ff5718e 100644 --- a/samples/client/openapi_features/security/python/src/this_package/schemas/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/schemas/__init__.py @@ -63,7 +63,7 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M for key, val in t_dict.__annotations__.items(): if isinstance(val, typing._GenericAlias): # type: ignore # typing.Type[W] -> W - val_cls = typing_extensions.get_args(val)[0] + val_cls = typing.get_args(val)[0] res[key] = val_cls return res @@ -71,10 +71,10 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M def tuple_to_instance(tup: typing.Type[X]) -> X: res = [] - for arg in typing_extensions.get_args(tup): + for arg in typing.get_args(tup): if isinstance(arg, typing._GenericAlias): # type: ignore # typing.Type[Schema] -> Schema - arg_cls = typing_extensions.get_args(arg)[0] + arg_cls = typing.get_args(arg)[0] res.append(arg_cls) return tuple(res) # type: ignore @@ -135,10 +135,10 @@ def raise_if_key_known( 'PatternInfo', 'ValidationMetadata', 'immutabledict', - 'as_date_', - 'as_datetime_', - 'as_decimal_', - 'as_uuid_', + 'as_date', + 'as_datetime', + 'as_decimal', + 'as_uuid', 'typed_dict_to_instance', 'tuple_to_instance', 'Unset', diff --git a/samples/client/openapi_features/security/python/src/this_package/schemas/schema.py b/samples/client/openapi_features/security/python/src/this_package/schemas/schema.py index 43830839727..583fd19425a 100644 --- a/samples/client/openapi_features/security/python/src/this_package/schemas/schema.py +++ b/samples/client/openapi_features/security/python/src/this_package/schemas/schema.py @@ -399,17 +399,17 @@ def validate_base( @classmethod def validate_base( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate_base( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod @@ -541,7 +541,7 @@ def get_class( ) -> typing.Type[Schema]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls @@ -574,17 +574,17 @@ def validate( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/openapi_features/security/python/src/this_package/schemas/schemas.py b/samples/client/openapi_features/security/python/src/this_package/schemas/schemas.py index b858542f476..231203e1cdc 100644 --- a/samples/client/openapi_features/security/python/src/this_package/schemas/schemas.py +++ b/samples/client/openapi_features/security/python/src/this_package/schemas/schemas.py @@ -287,17 +287,17 @@ class BoolSchema(schema.Schema): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py b/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py index 1b28855b668..4f057e65811 100644 --- a/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py +++ b/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py @@ -139,7 +139,7 @@ def _get_class( ) -> typing.Type[SchemaValidator]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls diff --git a/samples/client/openapi_features/security/python/src/this_package/security_schemes.py b/samples/client/openapi_features/security/python/src/this_package/security_schemes.py index 7561662c3e1..995189ffe58 100644 --- a/samples/client/openapi_features/security/python/src/this_package/security_schemes.py +++ b/samples/client/openapi_features/security/python/src/this_package/security_schemes.py @@ -219,7 +219,7 @@ def apply_auth( Key is the Security scheme class Value is the list of scopes """ -SecurityRequirementObject = typing_extensions.TypedDict( +SecurityRequirementObject = typing.TypedDict( 'SecurityRequirementObject', { 'api_key': typing.Tuple[str, ...], diff --git a/samples/client/petstore/python/.openapi-generator/FILES b/samples/client/petstore/python/.openapi-generator/FILES index 848b40b8d4b..52f6ef259ee 100644 --- a/samples/client/petstore/python/.openapi-generator/FILES +++ b/samples/client/petstore/python/.openapi-generator/FILES @@ -10,25 +10,42 @@ docs/apis/tags/pet_api.md docs/apis/tags/store_api.md docs/apis/tags/user_api.md docs/components/headers/header_int32_json_content_type_header.md +docs/components/headers/header_int32_json_content_type_header/content/application_json/schema.md docs/components/headers/header_number_header.md +docs/components/headers/header_number_header/schema.md docs/components/headers/header_ref_content_schema_header.md +docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md docs/components/headers/header_ref_schema_header.md +docs/components/headers/header_ref_schema_header/schema.md docs/components/headers/header_ref_string_header.md docs/components/headers/header_string_header.md +docs/components/headers/header_string_header/schema.md docs/components/parameters/parameter_component_ref_schema_string_with_validation.md +docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md docs/components/parameters/parameter_path_user_name.md +docs/components/parameters/parameter_path_user_name/schema.md docs/components/parameters/parameter_ref_path_user_name.md docs/components/parameters/parameter_ref_schema_string_with_validation.md +docs/components/parameters/parameter_ref_schema_string_with_validation/schema.md docs/components/request_bodies/request_body_client.md +docs/components/request_bodies/request_body_client/content/application_json/schema.md docs/components/request_bodies/request_body_pet.md +docs/components/request_bodies/request_body_pet/content/application_json/schema.md +docs/components/request_bodies/request_body_pet/content/application_xml/schema.md docs/components/request_bodies/request_body_ref_user_array.md docs/components/request_bodies/request_body_user_array.md +docs/components/request_bodies/request_body_user_array/content/application_json/schema.md docs/components/responses/response_ref_success_description_only.md docs/components/responses/response_ref_successful_xml_and_json_array_of_pet.md docs/components/responses/response_success_description_only.md docs/components/responses/response_success_inline_content_and_header.md +docs/components/responses/response_success_inline_content_and_header/content/application_json/schema.md +docs/components/responses/response_success_inline_content_and_header/headers/header_some_header/schema.md docs/components/responses/response_success_with_json_api_response.md +docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md docs/components/responses/response_successful_xml_and_json_array_of_pet.md +docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md +docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md docs/components/schema/_200_response.md docs/components/schema/_return.md docs/components/schema/abstract_step_message.md @@ -172,67 +189,206 @@ docs/components/security_schemes/security_scheme_http_signature_test.md docs/components/security_schemes/security_scheme_open_id_connect_test.md docs/components/security_schemes/security_scheme_petstore_auth.md docs/paths/another_fake_dummy/patch.md +docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md docs/paths/fake/delete.md +docs/paths/fake/delete/parameters/parameter_0/schema.md +docs/paths/fake/delete/parameters/parameter_1/schema.md +docs/paths/fake/delete/parameters/parameter_2/schema.md +docs/paths/fake/delete/parameters/parameter_3/schema.md +docs/paths/fake/delete/parameters/parameter_4/schema.md +docs/paths/fake/delete/parameters/parameter_5/schema.md docs/paths/fake/get.md +docs/paths/fake/get/parameters/parameter_0/schema.md +docs/paths/fake/get/parameters/parameter_1/schema.md +docs/paths/fake/get/parameters/parameter_2/schema.md +docs/paths/fake/get/parameters/parameter_3/schema.md +docs/paths/fake/get/parameters/parameter_4/schema.md +docs/paths/fake/get/parameters/parameter_5/schema.md +docs/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md +docs/paths/fake/get/responses/response_404/content/application_json/schema.md docs/paths/fake/patch.md +docs/paths/fake/patch/responses/response_200/content/application_json/schema.md docs/paths/fake/post.md +docs/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md docs/paths/fake_additional_properties_with_array_of_enums/get.md +docs/paths/fake_additional_properties_with_array_of_enums/get/request_body/content/application_json/schema.md +docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md docs/paths/fake_body_with_file_schema/put.md +docs/paths/fake_body_with_file_schema/put/request_body/content/application_json/schema.md docs/paths/fake_body_with_query_params/put.md +docs/paths/fake_body_with_query_params/put/parameters/parameter_0/schema.md +docs/paths/fake_body_with_query_params/put/request_body/content/application_json/schema.md docs/paths/fake_case_sensitive_params/put.md +docs/paths/fake_case_sensitive_params/put/parameters/parameter_0/schema.md +docs/paths/fake_case_sensitive_params/put/parameters/parameter_1/schema.md +docs/paths/fake_case_sensitive_params/put/parameters/parameter_2/schema.md docs/paths/fake_classname_test/patch.md +docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md docs/paths/fake_delete_coffee_id/delete.md +docs/paths/fake_delete_coffee_id/delete/parameters/parameter_0/schema.md docs/paths/fake_health/get.md +docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md docs/paths/fake_inline_additional_properties/post.md +docs/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md docs/paths/fake_inline_composition/post.md +docs/paths/fake_inline_composition/post/parameters/parameter_0/schema.md +docs/paths/fake_inline_composition/post/parameters/parameter_1/schema.md +docs/paths/fake_inline_composition/post/request_body/content/application_json/schema.md +docs/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md +docs/paths/fake_inline_composition/post/responses/response_200/content/application_json/schema.md +docs/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.md docs/paths/fake_json_form_data/get.md +docs/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md docs/paths/fake_json_patch/patch.md +docs/paths/fake_json_patch/patch/request_body/content/application_json_patchjson/schema.md docs/paths/fake_json_with_charset/post.md +docs/paths/fake_json_with_charset/post/request_body/content/application_json_charsetutf8/schema.md +docs/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/schema.md +docs/paths/fake_multiple_request_body_content_types/post.md +docs/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md +docs/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md +docs/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/fake_multiple_response_bodies/get.md +docs/paths/fake_multiple_response_bodies/get/responses/response_200/content/application_json/schema.md +docs/paths/fake_multiple_response_bodies/get/responses/response_202/content/application_json/schema.md docs/paths/fake_multiple_securities/get.md +docs/paths/fake_multiple_securities/get/responses/response_200/content/application_json/schema.md docs/paths/fake_obj_in_query/get.md +docs/paths/fake_obj_in_query/get/parameters/parameter_0/schema.md docs/paths/fake_parameter_collisions1_abab_self_ab/post.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/content/application_json/schema.md +docs/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/content/application_json/schema.md docs/paths/fake_pet_id_upload_image_with_required_file/post.md +docs/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/schema.md +docs/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md +docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md docs/paths/fake_query_param_with_json_content_type/get.md +docs/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/content/application_json/schema.md +docs/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/schema.md docs/paths/fake_redirection/get.md docs/paths/fake_ref_obj_in_query/get.md +docs/paths/fake_ref_obj_in_query/get/parameters/parameter_0/schema.md docs/paths/fake_refs_array_of_enums/post.md +docs/paths/fake_refs_array_of_enums/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_arraymodel/post.md +docs/paths/fake_refs_arraymodel/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_boolean/post.md +docs/paths/fake_refs_boolean/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_composed_one_of_number_with_validations/post.md +docs/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_enum/post.md +docs/paths/fake_refs_enum/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_mammal/post.md +docs/paths/fake_refs_mammal/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_number/post.md +docs/paths/fake_refs_number/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_object_model_with_ref_props/post.md +docs/paths/fake_refs_object_model_with_ref_props/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md docs/paths/fake_refs_string/post.md +docs/paths/fake_refs_string/post/request_body/content/application_json/schema.md +docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md docs/paths/fake_response_without_schema/get.md docs/paths/fake_test_query_paramters/put.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md +docs/paths/fake_test_query_paramters/put/parameters/parameter_5/schema.md docs/paths/fake_upload_download_file/post.md +docs/paths/fake_upload_download_file/post/request_body/content/application_octet_stream/schema.md +docs/paths/fake_upload_download_file/post/responses/response_200/content/application_octet_stream/schema.md docs/paths/fake_upload_file/post.md +docs/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md +docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md docs/paths/fake_upload_files/post.md +docs/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md +docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md docs/paths/fake_wild_card_responses/get.md +docs/paths/fake_wild_card_responses/get/responses/response_1xx/content/application_json/schema.md +docs/paths/fake_wild_card_responses/get/responses/response_200/content/application_json/schema.md +docs/paths/fake_wild_card_responses/get/responses/response_2xx/content/application_json/schema.md +docs/paths/fake_wild_card_responses/get/responses/response_3xx/content/application_json/schema.md +docs/paths/fake_wild_card_responses/get/responses/response_4xx/content/application_json/schema.md +docs/paths/fake_wild_card_responses/get/responses/response_5xx/content/application_json/schema.md docs/paths/foo/get.md +docs/paths/foo/get/responses/response_default/content/application_json/schema.md docs/paths/pet/post.md docs/paths/pet/put.md docs/paths/pet_find_by_status/get.md +docs/paths/pet_find_by_status/get/parameters/parameter_0/schema.md docs/paths/pet_find_by_tags/get.md +docs/paths/pet_find_by_tags/get/parameters/parameter_0/schema.md docs/paths/pet_pet_id/delete.md +docs/paths/pet_pet_id/delete/parameters/parameter_0/schema.md +docs/paths/pet_pet_id/delete/parameters/parameter_1/schema.md docs/paths/pet_pet_id/get.md +docs/paths/pet_pet_id/get/parameters/parameter_0/schema.md +docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md +docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md docs/paths/pet_pet_id/post.md +docs/paths/pet_pet_id/post/parameters/parameter_0/schema.md +docs/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md docs/paths/pet_pet_id_upload_image/post.md +docs/paths/pet_pet_id_upload_image/post/parameters/parameter_0/schema.md +docs/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md docs/paths/solidus/get.md docs/paths/store_inventory/get.md docs/paths/store_order/post.md +docs/paths/store_order/post/request_body/content/application_json/schema.md +docs/paths/store_order/post/responses/response_200/content/application_json/schema.md +docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md docs/paths/store_order_order_id/delete.md +docs/paths/store_order_order_id/delete/parameters/parameter_0/schema.md docs/paths/store_order_order_id/get.md +docs/paths/store_order_order_id/get/parameters/parameter_0/schema.md +docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md +docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md docs/paths/user/post.md +docs/paths/user/post/request_body/content/application_json/schema.md docs/paths/user_create_with_array/post.md docs/paths/user_create_with_list/post.md docs/paths/user_login/get.md +docs/paths/user_login/get/parameters/parameter_0/schema.md +docs/paths/user_login/get/parameters/parameter_1/schema.md +docs/paths/user_login/get/responses/response_200/content/application_json/schema.md +docs/paths/user_login/get/responses/response_200/content/application_xml/schema.md +docs/paths/user_login/get/responses/response_200/headers/header_x_expires_after/schema.md +docs/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/content/application_json/schema.md docs/paths/user_logout/get.md docs/paths/user_username/delete.md docs/paths/user_username/get.md +docs/paths/user_username/get/responses/response_200/content/application_json/schema.md +docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md docs/paths/user_username/put.md +docs/paths/user_username/put/request_body/content/application_json/schema.md docs/servers/server_0.md docs/servers/server_1.md docs/servers/server_2.md @@ -260,6 +416,7 @@ src/petstore_api/apis/paths/fake_inline_composition.py src/petstore_api/apis/paths/fake_json_form_data.py src/petstore_api/apis/paths/fake_json_patch.py src/petstore_api/apis/paths/fake_json_with_charset.py +src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py src/petstore_api/apis/paths/fake_multiple_response_bodies.py src/petstore_api/apis/paths/fake_multiple_securities.py src/petstore_api/apis/paths/fake_obj_in_query.py @@ -744,6 +901,20 @@ src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/content/__init__.py src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/__init__.py src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/schema.py +src/petstore_api/paths/fake_multiple_request_body_content_types/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/__init__.py +src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.py src/petstore_api/paths/fake_multiple_response_bodies/__init__.py src/petstore_api/paths/fake_multiple_response_bodies/get/__init__.py src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -1428,6 +1599,7 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/test_another_fake_dummy/__init__.py test/test_paths/test_another_fake_dummy/test_patch.py test/test_paths/test_fake/__init__.py @@ -1459,6 +1631,8 @@ test/test_paths/test_fake_json_patch/__init__.py test/test_paths/test_fake_json_patch/test_patch.py test/test_paths/test_fake_json_with_charset/__init__.py test/test_paths/test_fake_json_with_charset/test_post.py +test/test_paths/test_fake_multiple_request_body_content_types/__init__.py +test/test_paths/test_fake_multiple_request_body_content_types/test_post.py test/test_paths/test_fake_multiple_response_bodies/__init__.py test/test_paths/test_fake_multiple_response_bodies/test_get.py test/test_paths/test_fake_multiple_securities/__init__.py diff --git a/samples/client/petstore/python/README.md b/samples/client/petstore/python/README.md index b217db1ce87..d1ae87a8fbc 100644 --- a/samples/client/petstore/python/README.md +++ b/samples/client/petstore/python/README.md @@ -112,7 +112,7 @@ N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. See te below accessors for string data: -- type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ +- type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -131,7 +131,7 @@ For example the string payload '2023-12-20' is validates to both of these schema format: date ``` Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data -is stored as a string, with a date accessor, instance.as_date_ +is stored as a string, with a date accessor, instance.as_date ## Getting Started @@ -192,6 +192,7 @@ HTTP request | Method | Description /fake/jsonFormData **get** | [FakeApi](docs/apis/tags/fake_api.md).[json_form_data](docs/paths/fake_json_form_data/get.md) | test json serialization of form data /fake/jsonPatch **patch** | [FakeApi](docs/apis/tags/fake_api.md).[json_patch](docs/paths/fake_json_patch/patch.md) | json patch /fake/jsonWithCharset **post** | [FakeApi](docs/apis/tags/fake_api.md).[json_with_charset](docs/paths/fake_json_with_charset/post.md) | json with charset tx and rx +/fake/multipleRequestBodyContentTypes/ **post** | [FakeApi](docs/apis/tags/fake_api.md).[multiple_request_body_content_types](docs/paths/fake_multiple_request_body_content_types/post.md) | testing composed schemas at inline locations /fake/multipleResponseBodies **get** | [FakeApi](docs/apis/tags/fake_api.md).[multiple_response_bodies](docs/paths/fake_multiple_response_bodies/get.md) | multiple responses have response bodies /fake/multipleSecurities **get** | [FakeApi](docs/apis/tags/fake_api.md).[multiple_securities](docs/paths/fake_multiple_securities/get.md) | multiple security requirements /fake/objInQuery **get** | [FakeApi](docs/apis/tags/fake_api.md).[object_in_query](docs/paths/fake_obj_in_query/get.md) | user list diff --git a/samples/client/petstore/python/docs/apis/tags/fake_api.md b/samples/client/petstore/python/docs/apis/tags/fake_api.md index 9c26ad4698e..d66774038b5 100644 --- a/samples/client/petstore/python/docs/apis/tags/fake_api.md +++ b/samples/client/petstore/python/docs/apis/tags/fake_api.md @@ -29,6 +29,7 @@ Method | Description [**json_patch**](../../paths/fake_json_patch/patch.md) | json patch [**json_with_charset**](../../paths/fake_json_with_charset/post.md) | json with charset tx and rx [**mammal**](../../paths/fake_refs_mammal/post.md) | +[**multiple_request_body_content_types**](../../paths/fake_multiple_request_body_content_types/post.md) | testing composed schemas at inline locations [**multiple_response_bodies**](../../paths/fake_multiple_response_bodies/get.md) | multiple responses have response bodies [**multiple_securities**](../../paths/fake_multiple_securities/get.md) | multiple security requirements [**number_with_validations**](../../paths/fake_refs_number/post.md) | diff --git a/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header.md b/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header.md index 53a5390d95a..5c1b578519e 100644 --- a/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header.md +++ b/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header.md @@ -10,10 +10,14 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#content-applicationjson-schema) ## content ApplicationJson Schema +petstore_api.components.headers.header_int32_json_content_type_header.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 32 bit integer +### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 32 bit integer [[Back to top]](#top) [[Back to Component Headers]](../../../README.md#Component-Headers) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header/content/application_json/schema.md b/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header/content/application_json/schema.md new file mode 100644 index 00000000000..e6b37b742f6 --- /dev/null +++ b/samples/client/petstore/python/docs/components/headers/header_int32_json_content_type_header/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.headers.header_int32_json_content_type_header.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 32 bit integer diff --git a/samples/client/petstore/python/docs/components/headers/header_number_header.md b/samples/client/petstore/python/docs/components/headers/header_number_header.md index 57df87ab16c..673c1037cf8 100644 --- a/samples/client/petstore/python/docs/components/headers/header_number_header.md +++ b/samples/client/petstore/python/docs/components/headers/header_number_header.md @@ -5,10 +5,14 @@ petstore_api.components.headers.header_number_header number header description ## Schema +petstore_api.components.headers.header_number_header.schema +``` +type: schemas.Schema +``` -### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | value must be int or float numeric +### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | value must be int or float numeric [[Back to top]](#top) [[Back to Component Headers]](../../../README.md#Component-Headers) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/headers/header_number_header/schema.md b/samples/client/petstore/python/docs/components/headers/header_number_header/schema.md new file mode 100644 index 00000000000..cac9d7cf5ce --- /dev/null +++ b/samples/client/petstore/python/docs/components/headers/header_number_header/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.headers.header_number_header.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | value must be int or float numeric diff --git a/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header.md b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header.md index 69b7b5ef736..8dd151d5076 100644 --- a/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header.md +++ b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header.md @@ -10,10 +10,14 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#content-applicationjson-schema) ## content ApplicationJson Schema +petstore_api.components.headers.header_ref_content_schema_header.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringWithValidation](../../components/schema/string_with_validation.md) | str | str | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../components/schema/string_with_validation.md) | str | str [[Back to top]](#top) [[Back to Component Headers]](../../../README.md#Component-Headers) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md new file mode 100644 index 00000000000..9a30b6c86d6 --- /dev/null +++ b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.headers.header_ref_content_schema_header.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/headers/header_ref_schema_header.md b/samples/client/petstore/python/docs/components/headers/header_ref_schema_header.md index 5d2f86b954e..797f0cff4be 100644 --- a/samples/client/petstore/python/docs/components/headers/header_ref_schema_header.md +++ b/samples/client/petstore/python/docs/components/headers/header_ref_schema_header.md @@ -5,10 +5,14 @@ petstore_api.components.headers.header_ref_schema_header header that has a ref in the schema ## Schema +petstore_api.components.headers.header_ref_schema_header.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringWithValidation](../../components/schema/string_with_validation.md) | str | str | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../components/schema/string_with_validation.md) | str | str [[Back to top]](#top) [[Back to Component Headers]](../../../README.md#Component-Headers) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/headers/header_ref_schema_header/schema.md b/samples/client/petstore/python/docs/components/headers/header_ref_schema_header/schema.md new file mode 100644 index 00000000000..fc50fafd83b --- /dev/null +++ b/samples/client/petstore/python/docs/components/headers/header_ref_schema_header/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.headers.header_ref_schema_header.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/headers/header_string_header.md b/samples/client/petstore/python/docs/components/headers/header_string_header.md index b954dc0b734..812b9c11eab 100644 --- a/samples/client/petstore/python/docs/components/headers/header_string_header.md +++ b/samples/client/petstore/python/docs/components/headers/header_string_header.md @@ -5,10 +5,14 @@ petstore_api.components.headers.header_string_header string header description ## Schema +petstore_api.components.headers.header_string_header.schema +``` +type: schemas.Schema +``` -### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Headers]](../../../README.md#Component-Headers) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/headers/header_string_header/schema.md b/samples/client/petstore/python/docs/components/headers/header_string_header/schema.md new file mode 100644 index 00000000000..064a2b49636 --- /dev/null +++ b/samples/client/petstore/python/docs/components/headers/header_string_header/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.headers.header_string_header.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation.md b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation.md index 0aee4efb41e..555ce61def8 100644 --- a/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation.md +++ b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation.md @@ -9,10 +9,14 @@ Content-Type | Schema ------------ | ------- "application/json" | [content.application_json.Schema](#content-applicationjson-schema) ## content ApplicationJson Schema +petstore_api.components.parameters.parameter_component_ref_schema_string_with_validation.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringWithValidation](../../components/schema/string_with_validation.md) | str | str | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../components/schema/string_with_validation.md) | str | str [[Back to top]](#top) [[Back to Component Parameters]](../../../README.md#Component-Parameters) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md new file mode 100644 index 00000000000..15a5b091987 --- /dev/null +++ b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.parameters.parameter_component_ref_schema_string_with_validation.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name.md b/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name.md index 4a332e34abc..b1e2d12c101 100644 --- a/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name.md +++ b/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name.md @@ -5,10 +5,14 @@ petstore_api.components.parameters.parameter_path_user_name the use name to use ## Schema +petstore_api.components.parameters.parameter_path_user_name.schema +``` +type: schemas.Schema +``` -### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Parameters]](../../../README.md#Component-Parameters) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name/schema.md b/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name/schema.md new file mode 100644 index 00000000000..9404105a6e6 --- /dev/null +++ b/samples/client/petstore/python/docs/components/parameters/parameter_path_user_name/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.parameters.parameter_path_user_name.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation.md b/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation.md index 742967d6a49..807271c9c8d 100644 --- a/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation.md +++ b/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation.md @@ -5,10 +5,14 @@ petstore_api.components.parameters.parameter_ref_schema_string_with_validation a path string with validation ## Schema +petstore_api.components.parameters.parameter_ref_schema_string_with_validation.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringWithValidation](../../components/schema/string_with_validation.md) | str | str | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../components/schema/string_with_validation.md) | str | str [[Back to top]](#top) [[Back to Component Parameters]](../../../README.md#Component-Parameters) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation/schema.md b/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation/schema.md new file mode 100644 index 00000000000..0df2f4ba000 --- /dev/null +++ b/samples/client/petstore/python/docs/components/parameters/parameter_ref_schema_string_with_validation/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.parameters.parameter_ref_schema_string_with_validation.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_client.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_client.md index d64531fddbe..ce44e0082f3 100644 --- a/samples/client/petstore/python/docs/components/request_bodies/request_body_client.md +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_client.md @@ -10,10 +10,14 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#content-applicationjson-schema) ## content ApplicationJson Schema +petstore_api.components.request_bodies.request_body_client.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Client](../../components/schema/client.md) | dict, schemas.immutabledict | schemas.immutabledict | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../components/schema/client.md) | [client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict) | [client.ClientDict](../../components/schema/client.md#clientdict) [[Back to top]](#top) [[Back to Component RequestBodies]](../../../README.md#Component-RequestBodies) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_client/content/application_json/schema.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_client/content/application_json/schema.md new file mode 100644 index 00000000000..08d5887e1b9 --- /dev/null +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_client/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.request_bodies.request_body_client.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../../../components/schema/client.md) | [client.ClientDictInput](../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_pet.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet.md index 6f888e10020..f0201cbf501 100644 --- a/samples/client/petstore/python/docs/components/request_bodies/request_body_pet.md +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet.md @@ -11,16 +11,24 @@ Content-Type | Schema "application/xml" | [content.application_xml.Schema](#content-applicationxml-schema) ## content ApplicationJson Schema +petstore_api.components.request_bodies.request_body_pet.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Pet](../../components/schema/pet.md) | dict, schemas.immutabledict | schemas.immutabledict | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pet.Pet**](../../components/schema/pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) ## content ApplicationXml Schema +petstore_api.components.request_bodies.request_body_pet.content.application_xml.schema +``` +type: schemas.Schema +``` -### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefPet](../../components/schema/ref_pet.md) | dict, schemas.immutabledict | schemas.immutabledict | +### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_pet.RefPet**](../../components/schema/ref_pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) [[Back to top]](#top) [[Back to Component RequestBodies]](../../../README.md#Component-RequestBodies) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_json/schema.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_json/schema.md new file mode 100644 index 00000000000..89b6a406b41 --- /dev/null +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.request_bodies.request_body_pet.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pet.Pet**](../../../../components/schema/pet.md) | [pet.PetDictInput](../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_xml/schema.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_xml/schema.md new file mode 100644 index 00000000000..d80896481e5 --- /dev/null +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_pet/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.request_bodies.request_body_pet.content.application_xml.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_pet.RefPet**](../../../../components/schema/ref_pet.md) | [pet.PetDictInput](../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array.md index 4bb780d180e..f7f543d0c50 100644 --- a/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array.md +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array.md @@ -10,15 +10,54 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#content-applicationjson-schema) ## content ApplicationJson Schema +petstore_api.components.request_bodies.request_body_user_array.content.application_json.schema +``` +type: schemas.Schema +``` -### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#content-applicationjson-schema-schematupleinput), [SchemaTuple](#content-applicationjson-schema-schematuple) | [SchemaTuple](#content-applicationjson-schema-schematuple) | -### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**User**](../../components/schema/user.md) | [**User**](../../components/schema/user.md) | [**User**](../../components/schema/user.md) | | +### content ApplicationJson Schema SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + user.UserDictInput, + user.UserDict, + ], + ], + typing.Tuple[ + typing.Union[ + user.UserDictInput, + user.UserDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | | + +### content ApplicationJson Schema SchemaTuple +``` +base class: typing.Tuple[ + user.UserDict, + ... +] +``` +#### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#content-applicationjson-schema-schematupleinput), [SchemaTuple](#content-applicationjson-schema-schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +#### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [user.UserDict](../../components/schema/user.md#userdict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component RequestBodies]](../../../README.md#Component-RequestBodies) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array/content/application_json/schema.md b/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array/content/application_json/schema.md new file mode 100644 index 00000000000..12ddc990cfa --- /dev/null +++ b/samples/client/petstore/python/docs/components/request_bodies/request_body_user_array/content/application_json/schema.md @@ -0,0 +1,50 @@ +# Schema +petstore_api.components.request_bodies.request_body_user_array.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + user.UserDictInput, + user.UserDict, + ], + ], + typing.Tuple[ + typing.Union[ + user.UserDictInput, + user.UserDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[user.UserDictInput](../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../components/schema/user.md#userdict) | | + +## SchemaTuple +``` +base class: typing.Tuple[ + user.UserDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [user.UserDict](../../../../components/schema/user.md#userdict) | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/components/responses/response_ref_success_description_only.md b/samples/client/petstore/python/docs/components/responses/response_ref_success_description_only.md index 183cda5d99d..4038c216465 100644 --- a/samples/client/petstore/python/docs/components/responses/response_ref_success_description_only.md +++ b/samples/client/petstore/python/docs/components/responses/response_ref_success_description_only.md @@ -1,11 +1,9 @@ petstore_api.components.responses.response_ref_success_description_only # Response RefSuccessDescriptionOnly -## response_cls -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | +## Ref Response Info +Ref Response | ApiResponse +------------ | ----------- +[response_success_description_only.SuccessDescriptionOnly](../../components/responses/response_success_description_only.md#successdescriptiononly) | [response_success_description_only.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) [[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/responses/response_ref_successful_xml_and_json_array_of_pet.md b/samples/client/petstore/python/docs/components/responses/response_ref_successful_xml_and_json_array_of_pet.md index 6f093ae5ee6..8ff2326d27c 100644 --- a/samples/client/petstore/python/docs/components/responses/response_ref_successful_xml_and_json_array_of_pet.md +++ b/samples/client/petstore/python/docs/components/responses/response_ref_successful_xml_and_json_array_of_pet.md @@ -1,11 +1,9 @@ petstore_api.components.responses.response_ref_successful_xml_and_json_array_of_pet # Response RefSuccessfulXmlAndJsonArrayOfPet -## response_cls -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[[SuccessfulXmlAndJsonArrayOfPet.content.application_xml.schema](../../components/responses/response_successful_xml_and_json_array_of_pet.md#content-applicationxml-schema), [SuccessfulXmlAndJsonArrayOfPet.content.application_json.schema](../../components/responses/response_successful_xml_and_json_array_of_pet.md#content-applicationjson-schema)] | | -headers | Unset | headers were not defined | +## Ref Response Info +Ref Response | ApiResponse +------------ | ----------- +[response_successful_xml_and_json_array_of_pet.SuccessfulXmlAndJsonArrayOfPet](../../components/responses/response_successful_xml_and_json_array_of_pet.md#successfulxmlandjsonarrayofpet) | [response_successful_xml_and_json_array_of_pet.ApiResponse](../../components/responses/response_successful_xml_and_json_array_of_pet.md#apiresponse) [[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/responses/response_success_description_only.md b/samples/client/petstore/python/docs/components/responses/response_success_description_only.md index ad982ca15d1..5e6c16e4426 100644 --- a/samples/client/petstore/python/docs/components/responses/response_success_description_only.md +++ b/samples/client/petstore/python/docs/components/responses/response_success_description_only.md @@ -4,7 +4,7 @@ petstore_api.components.responses.response_success_description_only ## Description Success -## response_cls +## ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header.md b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header.md index 8d91282e659..3f002c04c51 100644 --- a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header.md +++ b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header.md @@ -4,44 +4,108 @@ petstore_api.components.responses.response_success_inline_content_and_header ## Description successful operation -## response_cls +## ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#body) | [content.application_json.schema](#content-applicationjson-schema) | | -[headers](#headers) | [Headers](#headers) | | +[body](#body) | [SchemaDict](#content-applicationjson-schema-schemadict) | | +[headers](#headers) | [HeadersDict](#headers-headersdict) | | ## Body Content-Type | Schema ------------ | ------- "application/json" | [content.application_json.Schema](#content-applicationjson-schema) -## Headers -Key | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- -someHeader | [headers.header_some_header.schema](#headers-someheader-schema) | | optional - ## Body Details ### content ApplicationJson Schema +petstore_api.components.responses.response_success_inline_content_and_header.content.application_json.schema +``` +type: schemas.Schema +``` + +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#content-applicationjson-schema-schemadictinput), [SchemaDict](#content-applicationjson-schema-schemadict) | [SchemaDict](#content-applicationjson-schema-schemadict) | + +#### content ApplicationJson Schema SchemaDictInput +``` +type: typing.Mapping[ + str, + int, +] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any_string_name** | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer + +#### content ApplicationJson Schema SchemaDict +``` +base class: schemas.immutabledict[str, int] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer typed value is accessed with the get_additional_property_ method -#### Type Info -Input Type | Accessed Type | Description | Notes +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#content-applicationjson-schema-schemadictinput), [SchemaDict](#content-applicationjson-schema-schemadict) | [SchemaDict](#content-applicationjson-schema-schemadict) | a constructor +get_additional_property_ | str | int, schemas.Unset | provides type safety for additional properties + +## Headers +### Headers +``` +type: schemas.Schema +``` + +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeadersDictInput](#headers-headersdictinput), [HeadersDict](#headers-headersdict) | [HeadersDict](#headers-headersdict) | + +#### Headers HeadersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**someHeader** | str | | [optional] -#### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | int | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer +#### Headers HeadersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someHeader** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someHeader** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeadersDictInput](#headers-headersdictinput), [HeadersDict](#headers-headersdict) | [HeadersDict](#headers-headersdict) | a constructor ## Header Details ### headers SomeHeader #### headers SomeHeader Schema +petstore_api.components.responses.response_success_inline_content_and_header.headers.header_some_header.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/content/application_json/schema.md b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/content/application_json/schema.md new file mode 100644 index 00000000000..699ea46a4d9 --- /dev/null +++ b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/content/application_json/schema.md @@ -0,0 +1,37 @@ +# Schema +petstore_api.components.responses.response_success_inline_content_and_header.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[ + str, + int, +] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any_string_name** | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer + +## SchemaDict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | int, schemas.Unset | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/header_some_header/schema.md b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/header_some_header/schema.md new file mode 100644 index 00000000000..9564b40ffe0 --- /dev/null +++ b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/header_some_header/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.responses.response_success_inline_content_and_header.headers.header_some_header.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response.md b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response.md index 736e66b087c..d633aba5c4e 100644 --- a/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response.md +++ b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response.md @@ -4,33 +4,76 @@ petstore_api.components.responses.response_success_with_json_api_response ## Description successful operation -## response_cls +## ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#body) | [content.application_json.schema](#content-applicationjson-schema) | | -[headers](#headers) | [Headers](#headers) | | +[body](#body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[headers](#headers) | [HeadersDict](#headers-headersdict) | | ## Body Content-Type | Schema ------------ | ------- "application/json" | [content.application_json.Schema](#content-applicationjson-schema) -## Headers -Key | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- -ref-schema-header | [RefSchemaHeader.schema](../../components/headers/header_ref_schema_header.md#schema) | | -int32 | [Int32JsonContentTypeHeader.content.application_json.schema](../../components/headers/header_int32_json_content_type_header.md#content-applicationjson-schema) | | -ref-content-schema-header | [RefContentSchemaHeader.content.application_json.schema](../../components/headers/header_ref_content_schema_header.md#content-applicationjson-schema) | | -stringHeader | [RefStringHeader.schema](../../components/headers/header_ref_string_header.md#schema) | | -numberHeader | [NumberHeader.schema](../../components/headers/header_number_header.md#schema) | | optional - ## Body Details ### content ApplicationJson Schema +petstore_api.components.responses.response_success_with_json_api_response.content.application_json.schema +``` +type: schemas.Schema +``` + +#### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) + +## Headers +### Headers +``` +type: schemas.Schema +``` + +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeadersDictInput](#headers-headersdictinput), [HeadersDict](#headers-headersdict) | [HeadersDict](#headers-headersdict) | + +#### Headers HeadersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**int32** | int | | +**ref-content-schema-header** | str | | +**ref-schema-header** | str | | +**stringHeader** | str | | +**numberHeader** | str | | [optional] + +#### Headers HeadersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**int32** | int | | +**stringHeader** | str | | +**numberHeader** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**int32** | int | | +**stringHeader** | str | | +**numberHeader** | str, schemas.Unset | | [optional] -#### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ApiResponse](../../components/schema/api_response.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeadersDictInput](#headers-headersdictinput), [HeadersDict](#headers-headersdict) | [HeadersDict](#headers-headersdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["ref-content-schema-header"], instance["ref-schema-header"], [[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md new file mode 100644 index 00000000000..d330fa69525 --- /dev/null +++ b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.components.responses.response_success_with_json_api_response.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet.md b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet.md index cc511437038..5f72909ae49 100644 --- a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet.md +++ b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet.md @@ -4,11 +4,11 @@ petstore_api.components.responses.response_successful_xml_and_json_array_of_pet ## Description successful operation, multiple content types -## response_cls +## ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#body) | typing.Union[[content.application_xml.schema](#content-applicationxml-schema), [content.application_json.schema](#content-applicationjson-schema)] | | +[body](#body) | typing.Union[[SchemaTuple](#content-applicationxml-schema-schematuple), [SchemaTuple](#content-applicationjson-schema-schematuple)] | | headers | Unset | headers were not defined | ## Body @@ -19,26 +19,104 @@ Content-Type | Schema ## Body Details ### content ApplicationXml Schema +petstore_api.components.responses.response_successful_xml_and_json_array_of_pet.content.application_xml.schema +``` +type: schemas.Schema +``` -#### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#content-applicationxml-schema-schematupleinput), [SchemaTuple](#content-applicationxml-schema-schematuple) | [SchemaTuple](#content-applicationxml-schema-schematuple) | -#### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Pet**](../../components/schema/pet.md) | [**Pet**](../../components/schema/pet.md) | [**Pet**](../../components/schema/pet.md) | | +#### content ApplicationXml Schema SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + pet.PetDictInput, + pet.PetDict, + ], + ], + typing.Tuple[ + typing.Union[ + pet.PetDictInput, + pet.PetDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | | + +#### content ApplicationXml Schema SchemaTuple +``` +base class: typing.Tuple[ + pet.PetDict, + ... +] +``` +##### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#content-applicationxml-schema-schematupleinput), [SchemaTuple](#content-applicationxml-schema-schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [pet.PetDict](../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called ### content ApplicationJson Schema +petstore_api.components.responses.response_successful_xml_and_json_array_of_pet.content.application_json.schema +``` +type: schemas.Schema +``` + +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#content-applicationjson-schema-schematupleinput), [SchemaTuple](#content-applicationjson-schema-schematuple) | [SchemaTuple](#content-applicationjson-schema-schematuple) | + +#### content ApplicationJson Schema SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ref_pet.pet.PetDictInput, + ref_pet.pet.PetDict, + ], + ], + typing.Tuple[ + typing.Union[ + ref_pet.pet.PetDictInput, + ref_pet.pet.PetDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | | -#### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +#### content ApplicationJson Schema SchemaTuple +``` +base class: typing.Tuple[ + ref_pet.pet.PetDict, + ... +] +``` +##### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#content-applicationjson-schema-schematupleinput), [SchemaTuple](#content-applicationjson-schema-schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -#### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**RefPet**](../../components/schema/ref_pet.md) | [**RefPet**](../../components/schema/ref_pet.md) | [**RefPet**](../../components/schema/ref_pet.md) | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [pet.PetDict](../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md new file mode 100644 index 00000000000..4f74988a858 --- /dev/null +++ b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md @@ -0,0 +1,50 @@ +# Schema +petstore_api.components.responses.response_successful_xml_and_json_array_of_pet.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ref_pet.pet.PetDictInput, + ref_pet.pet.PetDict, + ], + ], + typing.Tuple[ + typing.Union[ + ref_pet.pet.PetDictInput, + ref_pet.pet.PetDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[pet.PetDictInput](../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../components/schema/pet.md#petdict) | | + +## SchemaTuple +``` +base class: typing.Tuple[ + ref_pet.pet.PetDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [pet.PetDict](../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md new file mode 100644 index 00000000000..d9df7f87e04 --- /dev/null +++ b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md @@ -0,0 +1,50 @@ +# Schema +petstore_api.components.responses.response_successful_xml_and_json_array_of_pet.content.application_xml.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + pet.PetDictInput, + pet.PetDict, + ], + ], + typing.Tuple[ + typing.Union[ + pet.PetDictInput, + pet.PetDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[pet.PetDictInput](../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../components/schema/pet.md#petdict) | | + +## SchemaTuple +``` +base class: typing.Tuple[ + pet.PetDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [pet.PetDict](../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/components/schema/_200_response.md b/samples/client/petstore/python/docs/components/schema/_200_response.md index 2325d6e1ad9..6d16d12b94b 100644 --- a/samples/client/petstore/python/docs/components/schema/_200_response.md +++ b/samples/client/petstore/python/docs/components/schema/_200_response.md @@ -1,19 +1,48 @@ +# _200Response petstore_api.components.schema._200_response -# Schema _200Response +``` +type: schemas.Schema +``` ## Description model with an invalid class name for python, starts with a number -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_200ResponseDictInput](#_200responsedictinput), [_200ResponseDict](#_200responsedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_200ResponseDict](#_200responsedict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## _200ResponseDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | model with an invalid class name for python, starts with a number | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | int | int | | [optional] value must be a 32 bit integer -**class** | str | str | this is a reserved python keyword | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +**name** | int | | [optional] value must be a 32 bit integer +**class** | str | this is a reserved python keyword | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _200ResponseDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type model with an invalid class name for python, starts with a number | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | int, schemas.Unset | | [optional] value must be a 32 bit integer + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_200ResponseDictInput](#_200responsedictinput), [_200ResponseDict](#_200responsedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [_200ResponseDict](#_200responsedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["class"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/_return.md b/samples/client/petstore/python/docs/components/schema/_return.md index ab480e20ba3..2f9a568c0ec 100644 --- a/samples/client/petstore/python/docs/components/schema/_return.md +++ b/samples/client/petstore/python/docs/components/schema/_return.md @@ -1,18 +1,41 @@ +# _Return petstore_api.components.schema._return -# Schema _Return +``` +type: schemas.Schema +``` ## Description Model for testing reserved words -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ReturnDictInput](#returndictinput), [ReturnDict](#returndict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ReturnDict](#returndict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## ReturnDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | Model for testing reserved words | +**return** | int | this is a reserved python keyword | [optional] value must be a 32 bit integer +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ReturnDict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Model for testing reserved words | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**return** | int | int | this is a reserved python keyword | [optional] value must be a 32 bit integer -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ReturnDictInput](#returndictinput), [ReturnDict](#returndict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ReturnDict](#returndict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | int | This model has invalid python names so this method is used under the hood when you access instance["return"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/abstract_step_message.md b/samples/client/petstore/python/docs/components/schema/abstract_step_message.md index 1829d908bcd..a4c7124e8fd 100644 --- a/samples/client/petstore/python/docs/components/schema/abstract_step_message.md +++ b/samples/client/petstore/python/docs/components/schema/abstract_step_message.md @@ -1,26 +1,58 @@ +# AbstractStepMessage petstore_api.components.schema.abstract_step_message -# Schema AbstractStepMessage +``` +type: schemas.Schema +``` ## Description Abstract Step -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AbstractStepMessageDictInput](#abstractstepmessagedictinput), [AbstractStepMessageDict](#abstractstepmessagedict) | [AbstractStepMessageDict](#abstractstepmessagedict) | + +## AbstractStepMessageDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | Abstract Step | +**description** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**discriminator** | str | | +**sequenceNumber** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AbstractStepMessageDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**description** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**discriminator** | str | | +**sequenceNumber** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Abstract Step | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**description** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**discriminator** | str | | +**sequenceNumber** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**description** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**discriminator** | str | str | | -**sequenceNumber** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AbstractStepMessageDictInput](#abstractstepmessagedictinput), [AbstractStepMessageDict](#abstractstepmessagedict) | [AbstractStepMessageDict](#abstractstepmessagedict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**AbstractStepMessage**](#top) | [**AbstractStepMessage**](#top) | [**AbstractStepMessage**](#top) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**AbstractStepMessage**](#top) | [AbstractStepMessageDictInput](#abstractstepmessagedictinput), [AbstractStepMessageDict](#abstractstepmessagedict) | [AbstractStepMessageDict](#abstractstepmessagedict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/additional_properties_class.md b/samples/client/petstore/python/docs/components/schema/additional_properties_class.md index 62374146bb5..83a79b27063 100644 --- a/samples/client/petstore/python/docs/components/schema/additional_properties_class.md +++ b/samples/client/petstore/python/docs/components/schema/additional_properties_class.md @@ -1,110 +1,302 @@ +# AdditionalPropertiesClass petstore_api.components.schema.additional_properties_class -# Schema AdditionalPropertiesClass +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**map_property** | dict, schemas.immutabledict | [properties.MapProperty](#properties-mapproperty) | | [optional] -**map_of_map_property** | dict, schemas.immutabledict | [properties.MapOfMapProperty](#properties-mapofmapproperty) | | [optional] -**anytype_1** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**map_with_undeclared_properties_anytype_1** | dict, schemas.immutabledict | [properties.MapWithUndeclaredPropertiesAnytype1](#properties-mapwithundeclaredpropertiesanytype1) | | [optional] -**map_with_undeclared_properties_anytype_2** | dict, schemas.immutabledict | [properties.MapWithUndeclaredPropertiesAnytype2](#properties-mapwithundeclaredpropertiesanytype2) | | [optional] -**map_with_undeclared_properties_anytype_3** | dict, schemas.immutabledict | [properties.MapWithUndeclaredPropertiesAnytype3](#properties-mapwithundeclaredpropertiesanytype3) | | [optional] -**empty_map** | dict, schemas.immutabledict | [properties.EmptyMap](#properties-emptymap) | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] -**map_with_undeclared_properties_string** | dict, schemas.immutabledict | [properties.MapWithUndeclaredPropertiesString](#properties-mapwithundeclaredpropertiesstring) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] - -# properties MapProperty - -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalPropertiesClassDictInput](#additionalpropertiesclassdictinput), [AdditionalPropertiesClassDict](#additionalpropertiesclassdict) | [AdditionalPropertiesClassDict](#additionalpropertiesclassdict) | + +## AdditionalPropertiesClassDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**map_property** | [MapPropertyDictInput](#mappropertydictinput), [MapPropertyDict](#mappropertydict) | | [optional] +**map_of_map_property** | [MapOfMapPropertyDictInput](#mapofmappropertydictinput), [MapOfMapPropertyDict](#mapofmappropertydict) | | [optional] +**anytype_1** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**map_with_undeclared_properties_anytype_1** | dict, schemas.immutabledict | | [optional] +**map_with_undeclared_properties_anytype_2** | dict, schemas.immutabledict | | [optional] +**map_with_undeclared_properties_anytype_3** | [MapWithUndeclaredPropertiesAnytype3DictInput](#mapwithundeclaredpropertiesanytype3dictinput), [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict) | | [optional] +**empty_map** | [EmptyMapDictInput](#emptymapdictinput), [EmptyMapDict](#emptymapdict) | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**map_with_undeclared_properties_string** | [MapWithUndeclaredPropertiesStringDictInput](#mapwithundeclaredpropertiesstringdictinput), [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +## AdditionalPropertiesClassDict +``` +base class: schemas.immutabledict[str, schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]] -# properties MapOfMapProperty +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**map_property** | [MapPropertyDictInput](#mappropertydictinput), [MapPropertyDict](#mappropertydict), schemas.Unset | | [optional] +**map_of_map_property** | [MapOfMapPropertyDictInput](#mapofmappropertydictinput), [MapOfMapPropertyDict](#mapofmappropertydict), schemas.Unset | | [optional] +**anytype_1** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_1** | dict, schemas.immutabledict, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_2** | dict, schemas.immutabledict, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_3** | [MapWithUndeclaredPropertiesAnytype3DictInput](#mapwithundeclaredpropertiesanytype3dictinput), [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict), schemas.Unset | | [optional] +**empty_map** | [EmptyMapDictInput](#emptymapdictinput), [EmptyMapDict](#emptymapdict), schemas.Unset | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**map_with_undeclared_properties_string** | [MapWithUndeclaredPropertiesStringDictInput](#mapwithundeclaredpropertiesstringdictinput), [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**map_property** | [MapPropertyDict](#mappropertydict), schemas.Unset | | [optional] +**map_of_map_property** | [MapOfMapPropertyDict](#mapofmappropertydict), schemas.Unset | | [optional] +**anytype_1** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_1** | schemas.immutabledict, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_2** | schemas.immutabledict, schemas.Unset | | [optional] +**map_with_undeclared_properties_anytype_3** | [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict), schemas.Unset | | [optional] +**empty_map** | [EmptyMapDict](#emptymapdict), schemas.Unset | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**map_with_undeclared_properties_string** | [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalPropertiesClassDictInput](#additionalpropertiesclassdictinput), [AdditionalPropertiesClassDict](#additionalpropertiesclassdict) | [AdditionalPropertiesClassDict](#additionalpropertiesclassdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict | [AdditionalProperties2](#properties-mapofmapproperty-additionalproperties2) | any string name can be used but the value must be the correct type | [optional] +# MapProperty +``` +type: schemas.Schema +``` -# properties MapOfMapProperty AdditionalProperties2 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapPropertyDictInput](#mappropertydictinput), [MapPropertyDict](#mappropertydict) | [MapPropertyDict](#mappropertydict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## MapPropertyDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## MapPropertyDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapPropertyDictInput](#mappropertydictinput), [MapPropertyDict](#mappropertydict) | [MapPropertyDict](#mappropertydict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +# MapOfMapProperty +``` +type: schemas.Schema +``` -# properties MapWithUndeclaredPropertiesAnytype1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapOfMapPropertyDictInput](#mapofmappropertydictinput), [MapOfMapPropertyDict](#mapofmappropertydict) | [MapOfMapPropertyDict](#mapofmappropertydict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## MapOfMapPropertyDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + AdditionalPropertiesDictInput, + AdditionalPropertiesDict, + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | any string name can be used but the value must be the correct type | [optional] -# properties MapWithUndeclaredPropertiesAnytype2 +## MapOfMapPropertyDict +``` +base class: schemas.immutabledict[str, schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]] -## Type Info -Input Type | Accessed Type | Description | Notes +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapOfMapPropertyDictInput](#mapofmappropertydictinput), [MapOfMapPropertyDict](#mapofmappropertydict) | [MapOfMapPropertyDict](#mapofmappropertydict) | a constructor +get_additional_property_ | str | [AdditionalPropertiesDict](#additionalpropertiesdict), schemas.Unset | provides type safety for additional properties + +# AdditionalProperties2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | [AdditionalPropertiesDict](#additionalpropertiesdict) | + +## AdditionalPropertiesDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## AdditionalPropertiesDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# properties MapWithUndeclaredPropertiesAnytype3 +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | [AdditionalPropertiesDict](#additionalpropertiesdict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties -## Type Info -Input Type | Accessed Type | Description | Notes +# MapWithUndeclaredPropertiesAnytype1 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# MapWithUndeclaredPropertiesAnytype2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# MapWithUndeclaredPropertiesAnytype3 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapWithUndeclaredPropertiesAnytype3DictInput](#mapwithundeclaredpropertiesanytype3dictinput), [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict) | [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict) | + +## MapWithUndeclaredPropertiesAnytype3DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## MapWithUndeclaredPropertiesAnytype3Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# properties EmptyMap +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapWithUndeclaredPropertiesAnytype3DictInput](#mapwithundeclaredpropertiesanytype3dictinput), [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict) | [MapWithUndeclaredPropertiesAnytype3Dict](#mapwithundeclaredpropertiesanytype3dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties + +# EmptyMap +``` +type: schemas.Schema +``` ## Description an object with no declared properties and no undeclared properties, hence it's an empty map. -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EmptyMapDictInput](#emptymapdictinput), [EmptyMapDict](#emptymapdict) | [EmptyMapDict](#emptymapdict) | + +## EmptyMapDictInput +``` +type: typing.Mapping (empty) +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | an object with no declared properties and no undeclared properties, hence it's an empty map. | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- +## EmptyMapDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [EmptyMapDictInput](#emptymapdictinput), [EmptyMapDict](#emptymapdict) | [EmptyMapDict](#emptymapdict) | a constructor -# properties MapWithUndeclaredPropertiesString +# MapWithUndeclaredPropertiesString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapWithUndeclaredPropertiesStringDictInput](#mapwithundeclaredpropertiesstringdictinput), [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict) | [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict) | + +## MapWithUndeclaredPropertiesStringDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## MapWithUndeclaredPropertiesStringDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapWithUndeclaredPropertiesStringDictInput](#mapwithundeclaredpropertiesstringdictinput), [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict) | [MapWithUndeclaredPropertiesStringDict](#mapwithundeclaredpropertiesstringdict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/additional_properties_validator.md b/samples/client/petstore/python/docs/components/schema/additional_properties_validator.md index 8c39b467df4..e506a90c7ca 100644 --- a/samples/client/petstore/python/docs/components/schema/additional_properties_validator.md +++ b/samples/client/petstore/python/docs/components/schema/additional_properties_validator.md @@ -1,53 +1,134 @@ +# AdditionalPropertiesValidator petstore_api.components.schema.additional_properties_validator -# Schema AdditionalPropertiesValidator +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict | schemas.immutabledict | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | -[_2](#allof-_2) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | [_0DictInput](#_0dictinput), [_0Dict](#_0dict) | [_0Dict](#_0dict) +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) +[_2](#_2) | [_2DictInput](#_2dictinput), [_2Dict](#_2dict) | [_2Dict](#_2dict) + +# _0 +``` +type: schemas.Schema +``` -# allof _0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_0DictInput](#_0dictinput), [_0Dict](#_0dict) | [_0Dict](#_0dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _0DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## _0Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_0DictInput](#_0dictinput), [_0Dict](#_0dict) | [_0Dict](#_0dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +## _1Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -# allof _2 +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties + +# _2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_2DictInput](#_2dictinput), [_2Dict](#_2dict) | [_2Dict](#_2dict) | + +## _2DictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## _2Dict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_2DictInput](#_2dictinput), [_2Dict](#_2dict) | [_2Dict](#_2dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/additional_properties_with_array_of_enums.md b/samples/client/petstore/python/docs/components/schema/additional_properties_with_array_of_enums.md index e21cd7c8ca9..d217be16771 100644 --- a/samples/client/petstore/python/docs/components/schema/additional_properties_with_array_of_enums.md +++ b/samples/client/petstore/python/docs/components/schema/additional_properties_with_array_of_enums.md @@ -1,26 +1,98 @@ +# AdditionalPropertiesWithArrayOfEnums petstore_api.components.schema.additional_properties_with_array_of_enums -# Schema AdditionalPropertiesWithArrayOfEnums +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalPropertiesWithArrayOfEnumsDictInput](#additionalpropertieswitharrayofenumsdictinput), [AdditionalPropertiesWithArrayOfEnumsDict](#additionalpropertieswitharrayofenumsdict) | [AdditionalPropertiesWithArrayOfEnumsDict](#additionalpropertieswitharrayofenumsdict) | + +## AdditionalPropertiesWithArrayOfEnumsDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + AdditionalPropertiesTupleInput, + AdditionalPropertiesTuple + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | [AdditionalPropertiesTupleInput](#additionalpropertiestupleinput), [AdditionalPropertiesTuple](#additionalpropertiestuple) | any string name can be used but the value must be the correct type | [optional] + +## AdditionalPropertiesWithArrayOfEnumsDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | [AdditionalPropertiesTupleInput](#additionalpropertiestupleinput), [AdditionalPropertiesTuple](#additionalpropertiestuple) | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | list, tuple | [AdditionalProperties](#additionalproperties) | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalPropertiesWithArrayOfEnumsDictInput](#additionalpropertieswitharrayofenumsdictinput), [AdditionalPropertiesWithArrayOfEnumsDict](#additionalpropertieswitharrayofenumsdict) | [AdditionalPropertiesWithArrayOfEnumsDict](#additionalpropertieswitharrayofenumsdict) | a constructor +get_additional_property_ | str | [AdditionalPropertiesTuple](#additionalpropertiestuple), schemas.Unset | provides type safety for additional properties # AdditionalProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalPropertiesTupleInput](#additionalpropertiestupleinput), [AdditionalPropertiesTuple](#additionalpropertiestuple) | [AdditionalPropertiesTuple](#additionalpropertiestuple) | + +## AdditionalPropertiesTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + "_abc", + "-efg", + "(xyz)", + "COUNT_1M", + "COUNT_50M" + ], + ], + typing.Tuple[ + typing.Literal[ + "_abc", + "-efg", + "(xyz)", + "COUNT_1M", + "COUNT_50M" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | | + +## AdditionalPropertiesTuple +``` +base class: typing.Tuple[ + typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [AdditionalPropertiesTupleInput](#additionalpropertiestupleinput), [AdditionalPropertiesTuple](#additionalpropertiestuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**EnumClass**](enum_class.md) | [**EnumClass**](enum_class.md) | [**EnumClass**](enum_class.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/address.md b/samples/client/petstore/python/docs/components/schema/address.md index e087a6ef197..bb7eac2953b 100644 --- a/samples/client/petstore/python/docs/components/schema/address.md +++ b/samples/client/petstore/python/docs/components/schema/address.md @@ -1,14 +1,39 @@ +# Address petstore_api.components.schema.address -# Schema Address +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AddressDictInput](#addressdictinput), [AddressDict](#addressdict) | [AddressDict](#addressdict) | + +## AddressDictInput +``` +type: typing.Mapping[ + str, + int, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | int | any string name can be used but the value must be the correct type | [optional] + +## AddressDict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | int | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | int | int | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AddressDictInput](#addressdictinput), [AddressDict](#addressdict) | [AddressDict](#addressdict) | a constructor +get_additional_property_ | str | int, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/animal.md b/samples/client/petstore/python/docs/components/schema/animal.md index b51afb3616c..b1efd4107f1 100644 --- a/samples/client/petstore/python/docs/components/schema/animal.md +++ b/samples/client/petstore/python/docs/components/schema/animal.md @@ -1,16 +1,46 @@ +# Animal petstore_api.components.schema.animal -# Schema Animal +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AnimalDictInput](#animaldictinput), [AnimalDict](#animaldict) | [AnimalDict](#animaldict) | + +## AnimalDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**className** | str | | +**color** | str | | [optional] if omitted the server will use the default value of red +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AnimalDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**className** | str | | +**color** | str, schemas.Unset | | [optional] if omitted the server will use the default value of red +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**className** | str | | +**color** | str, schemas.Unset | | [optional] if omitted the server will use the default value of red -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**className** | str | str | | -**color** | str | str | | [optional] if omitted the server will use the default value of red -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AnimalDictInput](#animaldictinput), [AnimalDict](#animaldict) | [AnimalDict](#animaldict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/animal_farm.md b/samples/client/petstore/python/docs/components/schema/animal_farm.md index c03e8fe0815..6adbff13d86 100644 --- a/samples/client/petstore/python/docs/components/schema/animal_farm.md +++ b/samples/client/petstore/python/docs/components/schema/animal_farm.md @@ -1,14 +1,52 @@ +# AnimalFarm petstore_api.components.schema.animal_farm -# Schema AnimalFarm +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AnimalFarmTupleInput](#animalfarmtupleinput), [AnimalFarmTuple](#animalfarmtuple) | [AnimalFarmTuple](#animalfarmtuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Animal**](animal.md) | [**Animal**](animal.md) | [**Animal**](animal.md) | | +## AnimalFarmTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + animal.AnimalDictInput, + animal.AnimalDict, + ], + ], + typing.Tuple[ + typing.Union[ + animal.AnimalDictInput, + animal.AnimalDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | | + +## AnimalFarmTuple +``` +base class: typing.Tuple[ + animal.AnimalDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [AnimalFarmTupleInput](#animalfarmtupleinput), [AnimalFarmTuple](#animalfarmtuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [animal.AnimalDict](../../components/schema/animal.md#animaldict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/any_type_and_format.md b/samples/client/petstore/python/docs/components/schema/any_type_and_format.md index 8a204a6f782..71bc65bb757 100644 --- a/samples/client/petstore/python/docs/components/schema/any_type_and_format.md +++ b/samples/client/petstore/python/docs/components/schema/any_type_and_format.md @@ -1,23 +1,64 @@ +# AnyTypeAndFormat petstore_api.components.schema.any_type_and_format -# Schema AnyTypeAndFormat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AnyTypeAndFormatDictInput](#anytypeandformatdictinput), [AnyTypeAndFormatDict](#anytypeandformatdict) | [AnyTypeAndFormatDict](#anytypeandformatdict) | + +## AnyTypeAndFormatDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**uuid** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be a uuid +**date** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**date-time** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must conform to RFC-3339 date-time +**number** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be int or float numeric +**binary** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**int32** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be a 32 bit integer +**int64** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be a 64 bit integer +**double** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be a 64 bit float +**float** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] value must be a 32 bit float +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AnyTypeAndFormatDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**uuid** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must be a uuid +**date** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**number** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must be int or float numeric +**binary** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**int32** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must be a 32 bit integer +**int64** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must be a 64 bit integer +**double** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] value must be a 64 bit float +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**uuid** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must be a uuid +**date** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**number** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must be int or float numeric +**binary** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**int32** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must be a 32 bit integer +**int64** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must be a 64 bit integer +**double** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] value must be a 64 bit float -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**uuid** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be a uuid -**date** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD -**date-time** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must conform to RFC-3339 date-time -**number** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be int or float numeric -**binary** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] -**int32** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be a 32 bit integer -**int64** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be a 64 bit integer -**double** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be a 64 bit float -**float** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | [optional] value must be a 32 bit float -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AnyTypeAndFormatDictInput](#anytypeandformatdictinput), [AnyTypeAndFormatDict](#anytypeandformatdict) | [AnyTypeAndFormatDict](#anytypeandformatdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["date-time"], instance["float"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/any_type_not_string.md b/samples/client/petstore/python/docs/components/schema/any_type_not_string.md index 2cac1587a58..6c3f844159d 100644 --- a/samples/client/petstore/python/docs/components/schema/any_type_not_string.md +++ b/samples/client/petstore/python/docs/components/schema/any_type_not_string.md @@ -1,22 +1,28 @@ +# AnyTypeNotString petstore_api.components.schema.any_type_not_string -# Schema AnyTypeNotString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_not](#_not) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_Not](#_not) | str | str # _Not +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/api_response.md b/samples/client/petstore/python/docs/components/schema/api_response.md index 3159276b07f..2acfb32c76c 100644 --- a/samples/client/petstore/python/docs/components/schema/api_response.md +++ b/samples/client/petstore/python/docs/components/schema/api_response.md @@ -1,17 +1,49 @@ +# ApiResponse petstore_api.components.schema.api_response -# Schema ApiResponse +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ApiResponseDictInput](#apiresponsedictinput), [ApiResponseDict](#apiresponsedict) | [ApiResponseDict](#apiresponsedict) | + +## ApiResponseDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**code** | int | | [optional] value must be a 32 bit integer +**type** | str | | [optional] +**message** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ApiResponseDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**code** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**type** | str, schemas.Unset | | [optional] +**message** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**code** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**type** | str, schemas.Unset | | [optional] +**message** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | int | int | | [optional] value must be a 32 bit integer -**type** | str | str | | [optional] -**message** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ApiResponseDictInput](#apiresponsedictinput), [ApiResponseDict](#apiresponsedict) | [ApiResponseDict](#apiresponsedict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/apple.md b/samples/client/petstore/python/docs/components/schema/apple.md index fbfb242b1cf..b650b48e5ed 100644 --- a/samples/client/petstore/python/docs/components/schema/apple.md +++ b/samples/client/petstore/python/docs/components/schema/apple.md @@ -1,16 +1,46 @@ +# Apple petstore_api.components.schema.apple -# Schema Apple +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, [AppleDictInput](#appledictinput), [AppleDict](#appledict) | None, [AppleDict](#appledict) | + +## AppleDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | +**cultivar** | str | | +**origin** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## AppleDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**cultivar** | str | | +**origin** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**cultivar** | str | | +**origin** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**cultivar** | str | str | | -**origin** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | None, [AppleDictInput](#appledictinput), [AppleDict](#appledict) | None, [AppleDict](#appledict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/apple_req.md b/samples/client/petstore/python/docs/components/schema/apple_req.md index c35d919ba5f..9d9571553e9 100644 --- a/samples/client/petstore/python/docs/components/schema/apple_req.md +++ b/samples/client/petstore/python/docs/components/schema/apple_req.md @@ -1,15 +1,43 @@ +# AppleReq petstore_api.components.schema.apple_req -# Schema AppleReq +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AppleReqDictInput](#applereqdictinput), [AppleReqDict](#applereqdict) | [AppleReqDict](#applereqdict) | + +## AppleReqDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**cultivar** | str | | +**mealy** | bool | | [optional] + +## AppleReqDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**cultivar** | str | | +**mealy** | bool, schemas.Unset | | [optional] + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**cultivar** | str | | +**mealy** | bool, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**cultivar** | str | str | | -**mealy** | bool | bool | | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AppleReqDictInput](#applereqdictinput), [AppleReqDict](#applereqdict) | [AppleReqDict](#applereqdict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_holding_any_type.md b/samples/client/petstore/python/docs/components/schema/array_holding_any_type.md index 75b98ffcc0d..0fe55e78dc0 100644 --- a/samples/client/petstore/python/docs/components/schema/array_holding_any_type.md +++ b/samples/client/petstore/python/docs/components/schema/array_holding_any_type.md @@ -1,14 +1,52 @@ +# ArrayHoldingAnyType petstore_api.components.schema.array_holding_any_type -# Schema ArrayHoldingAnyType +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayHoldingAnyTypeTupleInput](#arrayholdinganytypetupleinput), [ArrayHoldingAnyTypeTuple](#arrayholdinganytypetuple) | [ArrayHoldingAnyTypeTuple](#arrayholdinganytypetuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any type can be stored here | +## ArrayHoldingAnyTypeTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any type can be stored here | + +## ArrayHoldingAnyTypeTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayHoldingAnyTypeTupleInput](#arrayholdinganytypetupleinput), [ArrayHoldingAnyTypeTuple](#arrayholdinganytypetuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_of_array_of_number_only.md b/samples/client/petstore/python/docs/components/schema/array_of_array_of_number_only.md index e34e14700a5..dadf0acffb6 100644 --- a/samples/client/petstore/python/docs/components/schema/array_of_array_of_number_only.md +++ b/samples/client/petstore/python/docs/components/schema/array_of_array_of_number_only.md @@ -1,39 +1,143 @@ +# ArrayOfArrayOfNumberOnly petstore_api.components.schema.array_of_array_of_number_only -# Schema ArrayOfArrayOfNumberOnly +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayOfArrayOfNumberOnlyDictInput](#arrayofarrayofnumberonlydictinput), [ArrayOfArrayOfNumberOnlyDict](#arrayofarrayofnumberonlydict) | [ArrayOfArrayOfNumberOnlyDict](#arrayofarrayofnumberonlydict) | + +## ArrayOfArrayOfNumberOnlyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**ArrayArrayNumber** | [ArrayArrayNumberTupleInput](#arrayarraynumbertupleinput), [ArrayArrayNumberTuple](#arrayarraynumbertuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**ArrayArrayNumber** | list, tuple | [properties.ArrayArrayNumber](#properties-arrayarraynumber) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ArrayOfArrayOfNumberOnlyDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -# properties ArrayArrayNumber +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**ArrayArrayNumber** | [ArrayArrayNumberTupleInput](#arrayarraynumbertupleinput), [ArrayArrayNumberTuple](#arrayarraynumbertuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**ArrayArrayNumber** | [ArrayArrayNumberTuple](#arrayarraynumbertuple), schemas.Unset | | [optional] -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arrayarraynumber-items) | list, tuple | tuple | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ArrayOfArrayOfNumberOnlyDictInput](#arrayofarrayofnumberonlydictinput), [ArrayOfArrayOfNumberOnlyDict](#arrayofarrayofnumberonlydict) | [ArrayOfArrayOfNumberOnlyDict](#arrayofarrayofnumberonlydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# properties ArrayArrayNumber Items +# ArrayArrayNumber +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayArrayNumberTupleInput](#arrayarraynumbertupleinput), [ArrayArrayNumberTuple](#arrayarraynumbertuple) | [ArrayArrayNumberTuple](#arrayarraynumbertuple) | + +## ArrayArrayNumberTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | | + +## ArrayArrayNumberTuple +``` +base class: typing.Tuple[ + ItemsTuple, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayArrayNumberTupleInput](#arrayarraynumbertupleinput), [ArrayArrayNumberTuple](#arrayarraynumbertuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple](#itemstuple) | This method is used under the hood when instance[0] is called + +# Items +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | [ItemsTuple](#itemstuple) | + +## ItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +float, int | | + +## ItemsTuple +``` +base class: typing.Tuple[ + typing.Union[int, float], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | float, int | float, int | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | float, int | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_of_enums.md b/samples/client/petstore/python/docs/components/schema/array_of_enums.md index 9927536fabb..7835598c777 100644 --- a/samples/client/petstore/python/docs/components/schema/array_of_enums.md +++ b/samples/client/petstore/python/docs/components/schema/array_of_enums.md @@ -1,14 +1,69 @@ +# ArrayOfEnums petstore_api.components.schema.array_of_enums -# Schema ArrayOfEnums +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayOfEnumsTupleInput](#arrayofenumstupleinput), [ArrayOfEnumsTuple](#arrayofenumstuple) | [ArrayOfEnumsTuple](#arrayofenumstuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**StringEnum**](string_enum.md) | [**StringEnum**](string_enum.md) | [**StringEnum**](string_enum.md) | | +## ArrayOfEnumsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + None, + typing.Literal[ + "placed", + "approved", + "delivered", + "single quoted", + "multiple\nlines", + "double quote \n with newline" + ], + ], + ], + typing.Tuple[ + typing.Union[ + None, + typing.Literal[ + "placed", + "approved", + "delivered", + "single quoted", + "multiple\nlines", + "double quote \n with newline" + ], + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | + +## ArrayOfEnumsTuple +``` +base class: typing.Tuple[ + typing.Union[ + None, + typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], + ], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayOfEnumsTupleInput](#arrayofenumstupleinput), [ArrayOfEnumsTuple](#arrayofenumstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_of_number_only.md b/samples/client/petstore/python/docs/components/schema/array_of_number_only.md index 96d8a5f1ef3..83816044181 100644 --- a/samples/client/petstore/python/docs/components/schema/array_of_number_only.md +++ b/samples/client/petstore/python/docs/components/schema/array_of_number_only.md @@ -1,27 +1,93 @@ +# ArrayOfNumberOnly petstore_api.components.schema.array_of_number_only -# Schema ArrayOfNumberOnly +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayOfNumberOnlyDictInput](#arrayofnumberonlydictinput), [ArrayOfNumberOnlyDict](#arrayofnumberonlydict) | [ArrayOfNumberOnlyDict](#arrayofnumberonlydict) | + +## ArrayOfNumberOnlyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**ArrayNumber** | [ArrayNumberTupleInput](#arraynumbertupleinput), [ArrayNumberTuple](#arraynumbertuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**ArrayNumber** | list, tuple | [properties.ArrayNumber](#properties-arraynumber) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ArrayOfNumberOnlyDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -# properties ArrayNumber +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**ArrayNumber** | [ArrayNumberTupleInput](#arraynumbertupleinput), [ArrayNumberTuple](#arraynumbertuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**ArrayNumber** | [ArrayNumberTuple](#arraynumbertuple), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ArrayOfNumberOnlyDictInput](#arrayofnumberonlydictinput), [ArrayOfNumberOnlyDict](#arrayofnumberonlydict) | [ArrayOfNumberOnlyDict](#arrayofnumberonlydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# ArrayNumber +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayNumberTupleInput](#arraynumbertupleinput), [ArrayNumberTuple](#arraynumbertuple) | [ArrayNumberTuple](#arraynumbertuple) | + +## ArrayNumberTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +float, int | | + +## ArrayNumberTuple +``` +base class: typing.Tuple[ + typing.Union[int, float], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayNumberTupleInput](#arraynumbertupleinput), [ArrayNumberTuple](#arraynumbertuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | float, int | float, int | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | float, int | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_test.md b/samples/client/petstore/python/docs/components/schema/array_test.md index 65704a0be9c..9863477a0df 100644 --- a/samples/client/petstore/python/docs/components/schema/array_test.md +++ b/samples/client/petstore/python/docs/components/schema/array_test.md @@ -1,77 +1,287 @@ +# ArrayTest petstore_api.components.schema.array_test -# Schema ArrayTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayTestDictInput](#arraytestdictinput), [ArrayTestDict](#arraytestdict) | [ArrayTestDict](#arraytestdict) | + +## ArrayTestDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**array_of_string** | [ArrayOfStringTupleInput](#arrayofstringtupleinput), [ArrayOfStringTuple](#arrayofstringtuple) | | [optional] +**array_array_of_integer** | [ArrayArrayOfIntegerTupleInput](#arrayarrayofintegertupleinput), [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple) | | [optional] +**array_array_of_model** | [ArrayArrayOfModelTupleInput](#arrayarrayofmodeltupleinput), [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**array_of_string** | list, tuple | [properties.ArrayOfString](#properties-arrayofstring) | | [optional] -**array_array_of_integer** | list, tuple | [properties.ArrayArrayOfInteger](#properties-arrayarrayofinteger) | | [optional] -**array_array_of_model** | list, tuple | [properties.ArrayArrayOfModel](#properties-arrayarrayofmodel) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ArrayTestDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -# properties ArrayOfString +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**array_of_string** | [ArrayOfStringTupleInput](#arrayofstringtupleinput), [ArrayOfStringTuple](#arrayofstringtuple), schemas.Unset | | [optional] +**array_array_of_integer** | [ArrayArrayOfIntegerTupleInput](#arrayarrayofintegertupleinput), [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple), schemas.Unset | | [optional] +**array_array_of_model** | [ArrayArrayOfModelTupleInput](#arrayarrayofmodeltupleinput), [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**array_of_string** | [ArrayOfStringTuple](#arrayofstringtuple), schemas.Unset | | [optional] +**array_array_of_integer** | [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple), schemas.Unset | | [optional] +**array_array_of_model** | [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple), schemas.Unset | | [optional] -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ArrayTestDictInput](#arraytestdictinput), [ArrayTestDict](#arraytestdict) | [ArrayTestDict](#arraytestdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -# properties ArrayArrayOfInteger +# ArrayOfString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayOfStringTupleInput](#arrayofstringtupleinput), [ArrayOfStringTuple](#arrayofstringtuple) | [ArrayOfStringTuple](#arrayofstringtuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arrayarrayofinteger-items2) | list, tuple | tuple | | +## ArrayOfStringTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | -# properties ArrayArrayOfInteger Items2 +## ArrayOfStringTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayOfStringTupleInput](#arrayofstringtupleinput), [ArrayOfStringTuple](#arrayofstringtuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | int | int | | value must be a 64 bit integer +# ArrayArrayOfInteger +``` +type: schemas.Schema +``` -# properties ArrayArrayOfModel +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayArrayOfIntegerTupleInput](#arrayarrayofintegertupleinput), [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple) | [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple) | -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## ArrayArrayOfIntegerTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput, + ItemsTuple + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arrayarrayofmodel-items4) | list, tuple | tuple | | +## ArrayArrayOfIntegerTuple +``` +base class: typing.Tuple[ + ItemsTuple, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayArrayOfIntegerTupleInput](#arrayarrayofintegertupleinput), [ArrayArrayOfIntegerTuple](#arrayarrayofintegertuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -# properties ArrayArrayOfModel Items4 +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple](#itemstuple) | This method is used under the hood when instance[0] is called -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +# Items2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | [ItemsTuple](#itemstuple) | + +## ItemsTupleInput +``` +type: typing.Union[ + typing.List[ + int, + ], + typing.Tuple[ + int, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +int | | value must be a 64 bit integer + +## ItemsTuple +``` +base class: typing.Tuple[ + int, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | int | value must be a 64 bit integer This method is used under the hood when instance[0] is called + +# ArrayArrayOfModel +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayArrayOfModelTupleInput](#arrayarrayofmodeltupleinput), [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple) | [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple) | + +## ArrayArrayOfModelTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + ItemsTupleInput2, + ItemsTuple2 + ], + ], + typing.Tuple[ + typing.Union[ + ItemsTupleInput2, + ItemsTuple2 + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) | | + +## ArrayArrayOfModelTuple +``` +base class: typing.Tuple[ + ItemsTuple2, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayArrayOfModelTupleInput](#arrayarrayofmodeltupleinput), [ArrayArrayOfModelTuple](#arrayarrayofmodeltuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [ItemsTuple2](#itemstuple2) | This method is used under the hood when instance[0] is called + +# Items4 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) | [ItemsTuple2](#itemstuple2) | + +## ItemsTupleInput2 +``` +type: typing.Union[ + typing.List[ + typing.Union[ + read_only_first.ReadOnlyFirstDictInput, + read_only_first.ReadOnlyFirstDict, + ], + ], + typing.Tuple[ + typing.Union[ + read_only_first.ReadOnlyFirstDictInput, + read_only_first.ReadOnlyFirstDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[read_only_first.ReadOnlyFirstDictInput](../../components/schema/read_only_first.md#readonlyfirstdictinput), [read_only_first.ReadOnlyFirstDict](../../components/schema/read_only_first.md#readonlyfirstdict) | | + +## ItemsTuple2 +``` +base class: typing.Tuple[ + read_only_first.ReadOnlyFirstDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput2](#itemstupleinput2), [ItemsTuple2](#itemstuple2) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ReadOnlyFirst**](read_only_first.md) | [**ReadOnlyFirst**](read_only_first.md) | [**ReadOnlyFirst**](read_only_first.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [read_only_first.ReadOnlyFirstDict](../../components/schema/read_only_first.md#readonlyfirstdict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/array_with_validations_in_items.md b/samples/client/petstore/python/docs/components/schema/array_with_validations_in_items.md index e2edacceaa3..5bd844991ff 100644 --- a/samples/client/petstore/python/docs/components/schema/array_with_validations_in_items.md +++ b/samples/client/petstore/python/docs/components/schema/array_with_validations_in_items.md @@ -1,14 +1,46 @@ +# ArrayWithValidationsInItems petstore_api.components.schema.array_with_validations_in_items -# Schema ArrayWithValidationsInItems +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayWithValidationsInItemsTupleInput](#arraywithvalidationsinitemstupleinput), [ArrayWithValidationsInItemsTuple](#arraywithvalidationsinitemstuple) | [ArrayWithValidationsInItemsTuple](#arraywithvalidationsinitemstuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | int | int | | value must be a 64 bit integer +## ArrayWithValidationsInItemsTupleInput +``` +type: typing.Union[ + typing.List[ + int, + ], + typing.Tuple[ + int, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +int | | value must be a 64 bit integer + +## ArrayWithValidationsInItemsTuple +``` +base class: typing.Tuple[ + int, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayWithValidationsInItemsTupleInput](#arraywithvalidationsinitemstupleinput), [ArrayWithValidationsInItemsTuple](#arraywithvalidationsinitemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | int | value must be a 64 bit integer This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/banana.md b/samples/client/petstore/python/docs/components/schema/banana.md index 8af40563f48..b9521dea095 100644 --- a/samples/client/petstore/python/docs/components/schema/banana.md +++ b/samples/client/petstore/python/docs/components/schema/banana.md @@ -1,15 +1,43 @@ +# Banana petstore_api.components.schema.banana -# Schema Banana +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[BananaDictInput](#bananadictinput), [BananaDict](#bananadict) | [BananaDict](#bananadict) | + +## BananaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**lengthCm** | float, int | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## BananaDict +``` +base class: schemas.immutabledict[str, typing.Union[int, float]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**lengthCm** | float, int | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**lengthCm** | float, int | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**lengthCm** | float, int | float, int | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [BananaDictInput](#bananadictinput), [BananaDict](#bananadict) | [BananaDict](#bananadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/banana_req.md b/samples/client/petstore/python/docs/components/schema/banana_req.md index bdf7b2ecf99..af2885b3985 100644 --- a/samples/client/petstore/python/docs/components/schema/banana_req.md +++ b/samples/client/petstore/python/docs/components/schema/banana_req.md @@ -1,15 +1,43 @@ +# BananaReq petstore_api.components.schema.banana_req -# Schema BananaReq +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[BananaReqDictInput](#bananareqdictinput), [BananaReqDict](#bananareqdict) | [BananaReqDict](#bananareqdict) | + +## BananaReqDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**lengthCm** | float, int | | +**sweet** | bool | | [optional] + +## BananaReqDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**lengthCm** | float, int | | +**sweet** | bool, schemas.Unset | | [optional] + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**lengthCm** | float, int | | +**sweet** | bool, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**lengthCm** | float, int | float, int | | -**sweet** | bool | bool | | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [BananaReqDictInput](#bananareqdictinput), [BananaReqDict](#bananareqdict) | [BananaReqDict](#bananareqdict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/bar.md b/samples/client/petstore/python/docs/components/schema/bar.md index bf6b8393424..eec9891b091 100644 --- a/samples/client/petstore/python/docs/components/schema/bar.md +++ b/samples/client/petstore/python/docs/components/schema/bar.md @@ -1,9 +1,12 @@ +# Bar petstore_api.components.schema.bar -# Schema Bar +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | if omitted the server will use the default value of bar +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | if omitted the server will use the default value of bar [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/basque_pig.md b/samples/client/petstore/python/docs/components/schema/basque_pig.md index 5e1f0692af2..888aeeacbae 100644 --- a/samples/client/petstore/python/docs/components/schema/basque_pig.md +++ b/samples/client/petstore/python/docs/components/schema/basque_pig.md @@ -1,15 +1,43 @@ +# BasquePig petstore_api.components.schema.basque_pig -# Schema BasquePig +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[BasquePigDictInput](#basquepigdictinput), [BasquePigDict](#basquepigdict) | [BasquePigDict](#basquepigdict) | + +## BasquePigDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## BasquePigDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**className** | str | str | | must be one of ["BasquePig"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [BasquePigDictInput](#basquepigdictinput), [BasquePigDict](#basquepigdict) | [BasquePigDict](#basquepigdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/boolean.md b/samples/client/petstore/python/docs/components/schema/boolean.md index a7c47f8b70c..32ce64556a5 100644 --- a/samples/client/petstore/python/docs/components/schema/boolean.md +++ b/samples/client/petstore/python/docs/components/schema/boolean.md @@ -1,9 +1,12 @@ +# Boolean petstore_api.components.schema.boolean -# Schema Boolean +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bool | bool | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/boolean_enum.md b/samples/client/petstore/python/docs/components/schema/boolean_enum.md index 7a64e302092..9f3c5a6e43c 100644 --- a/samples/client/petstore/python/docs/components/schema/boolean_enum.md +++ b/samples/client/petstore/python/docs/components/schema/boolean_enum.md @@ -1,9 +1,12 @@ +# BooleanEnum petstore_api.components.schema.boolean_enum -# Schema BooleanEnum +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | must be one of [True] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[True] | typing.Literal[True] | must be one of [True] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/capitalization.md b/samples/client/petstore/python/docs/components/schema/capitalization.md index c8a8ec8097e..8157a93f22c 100644 --- a/samples/client/petstore/python/docs/components/schema/capitalization.md +++ b/samples/client/petstore/python/docs/components/schema/capitalization.md @@ -1,20 +1,58 @@ +# Capitalization petstore_api.components.schema.capitalization -# Schema Capitalization +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[CapitalizationDictInput](#capitalizationdictinput), [CapitalizationDict](#capitalizationdict) | [CapitalizationDict](#capitalizationdict) | + +## CapitalizationDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**smallCamel** | str | | [optional] +**CapitalCamel** | str | | [optional] +**small_Snake** | str | | [optional] +**Capital_Snake** | str | | [optional] +**SCA_ETH_Flow_Points** | str | | [optional] +**ATT_NAME** | str | Name of the pet | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## CapitalizationDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**smallCamel** | str, schemas.Unset | | [optional] +**CapitalCamel** | str, schemas.Unset | | [optional] +**small_Snake** | str, schemas.Unset | | [optional] +**Capital_Snake** | str, schemas.Unset | | [optional] +**SCA_ETH_Flow_Points** | str, schemas.Unset | | [optional] +**ATT_NAME** | str, schemas.Unset | Name of the pet | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**smallCamel** | str, schemas.Unset | | [optional] +**CapitalCamel** | str, schemas.Unset | | [optional] +**small_Snake** | str, schemas.Unset | | [optional] +**Capital_Snake** | str, schemas.Unset | | [optional] +**SCA_ETH_Flow_Points** | str, schemas.Unset | | [optional] +**ATT_NAME** | str, schemas.Unset | Name of the pet | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**smallCamel** | str | str | | [optional] -**CapitalCamel** | str | str | | [optional] -**small_Snake** | str | str | | [optional] -**Capital_Snake** | str | str | | [optional] -**SCA_ETH_Flow_Points** | str | str | | [optional] -**ATT_NAME** | str | str | Name of the pet | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [CapitalizationDictInput](#capitalizationdictinput), [CapitalizationDict](#capitalizationdict) | [CapitalizationDict](#capitalizationdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/cat.md b/samples/client/petstore/python/docs/components/schema/cat.md index d61b843ad13..b4c95070ce6 100644 --- a/samples/client/petstore/python/docs/components/schema/cat.md +++ b/samples/client/petstore/python/docs/components/schema/cat.md @@ -1,29 +1,60 @@ +# Cat petstore_api.components.schema.cat -# Schema Cat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Animal**](animal.md) | [**Animal**](animal.md) | [**Animal**](animal.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**animal.Animal**](../../components/schema/animal.md) | [animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | [animal.AnimalDict](../../components/schema/animal.md#animaldict) +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**declawed** | bool | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, bool] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**declawed** | bool, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**declawed** | bool, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**declawed** | bool | bool | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/category.md b/samples/client/petstore/python/docs/components/schema/category.md index bb1052b28ea..b40b0be628a 100644 --- a/samples/client/petstore/python/docs/components/schema/category.md +++ b/samples/client/petstore/python/docs/components/schema/category.md @@ -1,16 +1,46 @@ +# Category petstore_api.components.schema.category -# Schema Category +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[CategoryDictInput](#categorydictinput), [CategoryDict](#categorydict) | [CategoryDict](#categorydict) | + +## CategoryDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**name** | str | | if omitted the server will use the default value of default-name +**id** | int | | [optional] value must be a 64 bit integer +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## CategoryDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str | | if omitted the server will use the default value of default-name +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str | | if omitted the server will use the default value of default-name +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str | str | | if omitted the server will use the default value of default-name -**id** | int | int | | [optional] value must be a 64 bit integer -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [CategoryDictInput](#categorydictinput), [CategoryDict](#categorydict) | [CategoryDict](#categorydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/child_cat.md b/samples/client/petstore/python/docs/components/schema/child_cat.md index 3702bfa89fb..8139250bffc 100644 --- a/samples/client/petstore/python/docs/components/schema/child_cat.md +++ b/samples/client/petstore/python/docs/components/schema/child_cat.md @@ -1,29 +1,60 @@ +# ChildCat petstore_api.components.schema.child_cat -# Schema ChildCat +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ParentPet**](parent_pet.md) | [**ParentPet**](parent_pet.md) | [**ParentPet**](parent_pet.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**parent_pet.ParentPet**](../../components/schema/parent_pet.md) | dict, schemas.immutabledict | schemas.immutabledict +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**name** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/class_model.md b/samples/client/petstore/python/docs/components/schema/class_model.md index 2a197ddb747..e21ad0b4d79 100644 --- a/samples/client/petstore/python/docs/components/schema/class_model.md +++ b/samples/client/petstore/python/docs/components/schema/class_model.md @@ -1,18 +1,46 @@ +# ClassModel petstore_api.components.schema.class_model -# Schema ClassModel +``` +type: schemas.Schema +``` ## Description Model for testing model with \"_class\" property -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ClassModelDictInput](#classmodeldictinput), [ClassModelDict](#classmodeldict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ClassModelDict](#classmodeldict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## ClassModelDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | Model for testing model with \"_class\" property | +**_class** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ClassModelDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**_class** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Model for testing model with \"_class\" property | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**_class** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**_class** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ClassModelDictInput](#classmodeldictinput), [ClassModelDict](#classmodeldict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ClassModelDict](#classmodeldict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/client.md b/samples/client/petstore/python/docs/components/schema/client.md index f6c1a38cad7..a3eee997edb 100644 --- a/samples/client/petstore/python/docs/components/schema/client.md +++ b/samples/client/petstore/python/docs/components/schema/client.md @@ -1,15 +1,43 @@ +# Client petstore_api.components.schema.client -# Schema Client +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ClientDictInput](#clientdictinput), [ClientDict](#clientdict) | [ClientDict](#clientdict) | + +## ClientDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**client** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ClientDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**client** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**client** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**client** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ClientDictInput](#clientdictinput), [ClientDict](#clientdict) | [ClientDict](#clientdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/complex_quadrilateral.md b/samples/client/petstore/python/docs/components/schema/complex_quadrilateral.md index 78181d86f0b..3e353ac60e3 100644 --- a/samples/client/petstore/python/docs/components/schema/complex_quadrilateral.md +++ b/samples/client/petstore/python/docs/components/schema/complex_quadrilateral.md @@ -1,29 +1,60 @@ +# ComplexQuadrilateral petstore_api.components.schema.complex_quadrilateral -# Schema ComplexQuadrilateral +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**QuadrilateralInterface**](quadrilateral_interface.md) | [**QuadrilateralInterface**](quadrilateral_interface.md) | [**QuadrilateralInterface**](quadrilateral_interface.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**quadrilateral_interface.QuadrilateralInterface**](../../components/schema/quadrilateral_interface.md) | [quadrilateral_interface.QuadrilateralInterfaceDictInput](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedictinput), [quadrilateral_interface.QuadrilateralInterfaceDict](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [quadrilateral_interface.QuadrilateralInterfaceDict](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**quadrilateralType** | typing.Literal["ComplexQuadrilateral"] | | [optional] must be one of ["ComplexQuadrilateral"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**quadrilateralType** | typing.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**quadrilateralType** | typing.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**quadrilateralType** | str | str | | [optional] must be one of ["ComplexQuadrilateral"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_any_of_different_types_no_validations.md b/samples/client/petstore/python/docs/components/schema/composed_any_of_different_types_no_validations.md index 23d6bc075e7..e60eb71ee82 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_any_of_different_types_no_validations.md +++ b/samples/client/petstore/python/docs/components/schema/composed_any_of_different_types_no_validations.md @@ -1,147 +1,233 @@ +# ComposedAnyOfDifferentTypesNoValidations petstore_api.components.schema.composed_any_of_different_types_no_validations -# Schema ComposedAnyOfDifferentTypesNoValidations +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#anyof-_0) | dict, schemas.immutabledict | schemas.immutabledict | | -[_1](#anyof-_1) | str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD -[_2](#anyof-_2) | str, datetime.datetime | str | | value must conform to RFC-3339 date-time -[_3](#anyof-_3) | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | | -[_4](#anyof-_4) | str | str | | -[_5](#anyof-_5) | str | str | | -[_6](#anyof-_6) | dict, schemas.immutabledict | schemas.immutabledict | | -[_7](#anyof-_7) | bool | bool | | -[_8](#anyof-_8) | None | None | | -[_9](#anyof-_9) | list, tuple | tuple | | -[_10](#anyof-_10) | float, int | float, int | | -[_11](#anyof-_11) | float, int | float, int | | value must be a 32 bit float -[_12](#anyof-_12) | float, int | float, int | | value must be a 64 bit float -[_13](#anyof-_13) | int | int | | -[_14](#anyof-_14) | int | int | | value must be a 32 bit integer -[_15](#anyof-_15) | int | int | | value must be a 64 bit integer - -# anyof _0 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -# anyof _1 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD - -# anyof _2 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.datetime | str | | value must conform to RFC-3339 date-time - -# anyof _3 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | | - -# anyof _4 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -# anyof _5 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -# anyof _6 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -# anyof _7 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | - -# anyof _8 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | - -# anyof _9 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -# anyof _10 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | - -# anyof _11 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | value must be a 32 bit float - -# anyof _12 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | value must be a 64 bit float - -# anyof _13 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | - -# anyof _14 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 32 bit integer - -# anyof _15 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict | schemas.immutabledict +[_1](#_1) | str, datetime.date | str +[_2](#_2) | str, datetime.datetime | str +[_3](#_3) | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO +[_4](#_4) | str | str +[_5](#_5) | str | str +[_6](#_6) | dict, schemas.immutabledict | schemas.immutabledict +[_7](#_7) | bool | bool +[_8](#_8) | None | None +[_9](#_9) | [_9TupleInput](#_9tupleinput), [_9Tuple](#_9tuple) | [_9Tuple](#_9tuple) +[_10](#_10) | float, int | float, int +[_11](#_11) | float, int | float, int +[_12](#_12) | float, int | float, int +[_13](#_13) | int | int +[_14](#_14) | int | int +[_15](#_15) | int | int + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# _1 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.date | str | value must conform to RFC-3339 full-date YYYY-MM-DD + +# _2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | value must conform to RFC-3339 date-time + +# _3 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | + +# _4 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | + +# _5 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | + +# _6 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# _7 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bool | bool | + +# _8 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | + +# _9 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_9TupleInput](#_9tupleinput), [_9Tuple](#_9tuple) | [_9Tuple](#_9tuple) | + +## _9TupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## _9Tuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [_9TupleInput](#_9tupleinput), [_9Tuple](#_9tuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called + +# _10 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | + +# _11 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | value must be a 32 bit float + +# _12 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | value must be a 64 bit float + +# _13 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | + +# _14 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 32 bit integer + +# _15 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_array.md b/samples/client/petstore/python/docs/components/schema/composed_array.md index 38e773738e3..2c872864bbe 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_array.md +++ b/samples/client/petstore/python/docs/components/schema/composed_array.md @@ -1,14 +1,52 @@ +# ComposedArray petstore_api.components.schema.composed_array -# Schema ComposedArray +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ComposedArrayTupleInput](#composedarraytupleinput), [ComposedArrayTuple](#composedarraytuple) | [ComposedArrayTuple](#composedarraytuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## ComposedArrayTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## ComposedArrayTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ComposedArrayTupleInput](#composedarraytupleinput), [ComposedArrayTuple](#composedarraytuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_bool.md b/samples/client/petstore/python/docs/components/schema/composed_bool.md index df491ab77fc..f8d8bd0099e 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_bool.md +++ b/samples/client/petstore/python/docs/components/schema/composed_bool.md @@ -1,22 +1,28 @@ +# ComposedBool petstore_api.components.schema.composed_bool -# Schema ComposedBool +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool | bool | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bool | bool | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_none.md b/samples/client/petstore/python/docs/components/schema/composed_none.md index 98bf6ea9490..55ad6cc9cd0 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_none.md +++ b/samples/client/petstore/python/docs/components/schema/composed_none.md @@ -1,22 +1,28 @@ +# ComposedNone petstore_api.components.schema.composed_none -# Schema ComposedNone +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_number.md b/samples/client/petstore/python/docs/components/schema/composed_number.md index 92de98821e0..b93e3bdc15d 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_number.md +++ b/samples/client/petstore/python/docs/components/schema/composed_number.md @@ -1,22 +1,28 @@ +# ComposedNumber petstore_api.components.schema.composed_number -# Schema ComposedNumber +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_object.md b/samples/client/petstore/python/docs/components/schema/composed_object.md index aaf6a3d148c..aa5ed2a4c01 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_object.md +++ b/samples/client/petstore/python/docs/components/schema/composed_object.md @@ -1,22 +1,28 @@ +# ComposedObject petstore_api.components.schema.composed_object -# Schema ComposedObject +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_one_of_different_types.md b/samples/client/petstore/python/docs/components/schema/composed_one_of_different_types.md index fdffba90765..4ac0f5ef2f9 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_one_of_different_types.md +++ b/samples/client/petstore/python/docs/components/schema/composed_one_of_different_types.md @@ -1,64 +1,117 @@ +# ComposedOneOfDifferentTypes petstore_api.components.schema.composed_one_of_different_types -# Schema ComposedOneOfDifferentTypes +``` +type: schemas.Schema +``` ## Description this is a model that allows payloads of type object or number -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | this is a model that allows payloads of type object or number | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**NumberWithValidations**](number_with_validations.md) | [**NumberWithValidations**](number_with_validations.md) | [**NumberWithValidations**](number_with_validations.md) | | -[**Animal**](animal.md) | [**Animal**](animal.md) | [**Animal**](animal.md) | | -[_2](#oneof-_2) | None | None | | -[_3](#oneof-_3) | str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD -[_4](#oneof-_4) | dict, schemas.immutabledict | schemas.immutabledict | | -[_5](#oneof-_5) | list, tuple | tuple | | -[_6](#oneof-_6) | str, datetime.datetime | str | | value must conform to RFC-3339 date-time - -# oneof _2 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | - -# oneof _3 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD - -# oneof _4 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -# oneof _5 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -# oneof _6 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.datetime | str | | value must conform to RFC-3339 date-time +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**number_with_validations.NumberWithValidations**](../../components/schema/number_with_validations.md) | float, int | float, int +[**animal.Animal**](../../components/schema/animal.md) | [animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | [animal.AnimalDict](../../components/schema/animal.md#animaldict) +[_2](#_2) | None | None +[_3](#_3) | str, datetime.date | str +[_4](#_4) | dict, schemas.immutabledict | schemas.immutabledict +[_5](#_5) | [_5TupleInput](#_5tupleinput), [_5Tuple](#_5tuple) | [_5Tuple](#_5tuple) +[_6](#_6) | str, datetime.datetime | str + +# _2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | + +# _3 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.date | str | value must conform to RFC-3339 full-date YYYY-MM-DD + +# _4 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# _5 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_5TupleInput](#_5tupleinput), [_5Tuple](#_5tuple) | [_5Tuple](#_5tuple) | + +## _5TupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## _5Tuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [_5TupleInput](#_5tupleinput), [_5Tuple](#_5tuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called + +# _6 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | value must conform to RFC-3339 date-time [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/composed_string.md b/samples/client/petstore/python/docs/components/schema/composed_string.md index 21338f8ca98..e7569a46d78 100644 --- a/samples/client/petstore/python/docs/components/schema/composed_string.md +++ b/samples/client/petstore/python/docs/components/schema/composed_string.md @@ -1,22 +1,28 @@ +# ComposedString petstore_api.components.schema.composed_string -# Schema ComposedString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#allof-_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/currency.md b/samples/client/petstore/python/docs/components/schema/currency.md index a988a49ba4c..c4296b73ab3 100644 --- a/samples/client/petstore/python/docs/components/schema/currency.md +++ b/samples/client/petstore/python/docs/components/schema/currency.md @@ -1,9 +1,12 @@ +# Currency petstore_api.components.schema.currency -# Schema Currency +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["eur", "usd"] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["eur", "usd"] | typing.Literal["eur", "usd"] | must be one of ["eur", "usd"] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/danish_pig.md b/samples/client/petstore/python/docs/components/schema/danish_pig.md index a82c40c0e38..2a9ec523fd1 100644 --- a/samples/client/petstore/python/docs/components/schema/danish_pig.md +++ b/samples/client/petstore/python/docs/components/schema/danish_pig.md @@ -1,15 +1,43 @@ +# DanishPig petstore_api.components.schema.danish_pig -# Schema DanishPig +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[DanishPigDictInput](#danishpigdictinput), [DanishPigDict](#danishpigdict) | [DanishPigDict](#danishpigdict) | + +## DanishPigDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## DanishPigDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**className** | str | str | | must be one of ["DanishPig"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [DanishPigDictInput](#danishpigdictinput), [DanishPigDict](#danishpigdict) | [DanishPigDict](#danishpigdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/date_time_test.md b/samples/client/petstore/python/docs/components/schema/date_time_test.md index 8d2d0679ecb..5c84dad86d2 100644 --- a/samples/client/petstore/python/docs/components/schema/date_time_test.md +++ b/samples/client/petstore/python/docs/components/schema/date_time_test.md @@ -1,9 +1,12 @@ +# DateTimeTest petstore_api.components.schema.date_time_test -# Schema DateTimeTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.datetime | str | | if omitted the server will use the default value of 2010-01-01T10:10:10.000111+01:00 value must conform to RFC-3339 date-time +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | if omitted the server will use the default value of 2010-01-01T10:10:10.000111+01:00 value must conform to RFC-3339 date-time [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/date_time_with_validations.md b/samples/client/petstore/python/docs/components/schema/date_time_with_validations.md index d25f494eb32..ba4f801aeb4 100644 --- a/samples/client/petstore/python/docs/components/schema/date_time_with_validations.md +++ b/samples/client/petstore/python/docs/components/schema/date_time_with_validations.md @@ -1,9 +1,12 @@ +# DateTimeWithValidations petstore_api.components.schema.date_time_with_validations -# Schema DateTimeWithValidations +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.datetime | str | | value must conform to RFC-3339 date-time +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | value must conform to RFC-3339 date-time [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/date_with_validations.md b/samples/client/petstore/python/docs/components/schema/date_with_validations.md index 190254a8217..e79df95a8d6 100644 --- a/samples/client/petstore/python/docs/components/schema/date_with_validations.md +++ b/samples/client/petstore/python/docs/components/schema/date_with_validations.md @@ -1,9 +1,12 @@ +# DateWithValidations petstore_api.components.schema.date_with_validations -# Schema DateWithValidations +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.date | str | value must conform to RFC-3339 full-date YYYY-MM-DD [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/decimal_payload.md b/samples/client/petstore/python/docs/components/schema/decimal_payload.md index 4d1fcac4949..76a35c95f6a 100644 --- a/samples/client/petstore/python/docs/components/schema/decimal_payload.md +++ b/samples/client/petstore/python/docs/components/schema/decimal_payload.md @@ -1,9 +1,12 @@ +# DecimalPayload petstore_api.components.schema.decimal_payload -# Schema DecimalPayload +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | value must be int or float numeric +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | value must be int or float numeric [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/dog.md b/samples/client/petstore/python/docs/components/schema/dog.md index d7cdb78a899..6c728969f76 100644 --- a/samples/client/petstore/python/docs/components/schema/dog.md +++ b/samples/client/petstore/python/docs/components/schema/dog.md @@ -1,29 +1,60 @@ +# Dog petstore_api.components.schema.dog -# Schema Dog +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Animal**](animal.md) | [**Animal**](animal.md) | [**Animal**](animal.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**animal.Animal**](../../components/schema/animal.md) | [animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | [animal.AnimalDict](../../components/schema/animal.md#animaldict) +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**breed** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**breed** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**breed** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**breed** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/drawing.md b/samples/client/petstore/python/docs/components/schema/drawing.md index ec6f4ed147f..dce5d4cbc41 100644 --- a/samples/client/petstore/python/docs/components/schema/drawing.md +++ b/samples/client/petstore/python/docs/components/schema/drawing.md @@ -1,30 +1,126 @@ +# Drawing petstore_api.components.schema.drawing -# Schema Drawing +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[DrawingDictInput](#drawingdictinput), [DrawingDict](#drawingdict) | [DrawingDict](#drawingdict) | + +## DrawingDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + typing.Union[ + ShapesTupleInput, + ShapesTuple + ], + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**mainShape** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**shapeOrNull** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**nullableShape** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**shapes** | [ShapesTupleInput](#shapestupleinput), [ShapesTuple](#shapestuple) | | [optional] +**any_string_name** | [fruit.FruitDictInput](../../components/schema/fruit.md#fruitdictinput), [fruit.FruitDict](../../components/schema/fruit.md#fruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**mainShape** | [**Shape**](shape.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**Shape**](shape.md) | | [optional] -**shapeOrNull** | [**ShapeOrNull**](shape_or_null.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**ShapeOrNull**](shape_or_null.md) | | [optional] -**nullableShape** | [**NullableShape**](nullable_shape.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**NullableShape**](nullable_shape.md) | | [optional] -**shapes** | list, tuple | [properties.Shapes](#properties-shapes) | | [optional] -**any_string_name** | [**Fruit**](fruit.md), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [**Fruit**](fruit.md) | any string name can be used but the value must be the correct type | [optional] +## DrawingDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -# properties Shapes +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**mainShape** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**shapeOrNull** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**nullableShape** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**shapes** | [ShapesTupleInput](#shapestupleinput), [ShapesTuple](#shapestuple), schemas.Unset | | [optional] +**kwargs** | [fruit.FruitDictInput](../../components/schema/fruit.md#fruitdictinput), [fruit.FruitDict](../../components/schema/fruit.md#fruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**mainShape** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**shapeOrNull** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**nullableShape** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**shapes** | [ShapesTuple](#shapestuple), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [DrawingDictInput](#drawingdictinput), [DrawingDict](#drawingdict) | [DrawingDict](#drawingdict) | a constructor +get_additional_property_ | str | [fruit.FruitDict](../../components/schema/fruit.md#fruitdict), str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties + +# Shapes +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ShapesTupleInput](#shapestupleinput), [ShapesTuple](#shapestuple) | [ShapesTuple](#shapestuple) | + +## ShapesTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## ShapesTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ShapesTupleInput](#shapestupleinput), [ShapesTuple](#shapestuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Shape**](shape.md) | [**Shape**](shape.md) | [**Shape**](shape.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/enum_arrays.md b/samples/client/petstore/python/docs/components/schema/enum_arrays.md index a2b7cc1770d..0918c7b65d9 100644 --- a/samples/client/petstore/python/docs/components/schema/enum_arrays.md +++ b/samples/client/petstore/python/docs/components/schema/enum_arrays.md @@ -1,28 +1,96 @@ +# EnumArrays petstore_api.components.schema.enum_arrays -# Schema EnumArrays +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EnumArraysDictInput](#enumarraysdictinput), [EnumArraysDict](#enumarraysdict) | [EnumArraysDict](#enumarraysdict) | + +## EnumArraysDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**just_symbol** | typing.Literal[">=", "$"] | | [optional] must be one of [">=", "$"] +**array_enum** | [ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**just_symbol** | str | str | | [optional] must be one of [">=", "$"] -**array_enum** | list, tuple | [properties.ArrayEnum](#properties-arrayenum) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## EnumArraysDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -# properties ArrayEnum +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**just_symbol** | typing.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"] +**array_enum** | [ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**just_symbol** | typing.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"] +**array_enum** | [ArrayEnumTuple](#arrayenumtuple), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [EnumArraysDictInput](#enumarraysdictinput), [EnumArraysDict](#enumarraysdict) | [EnumArraysDict](#enumarraysdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# ArrayEnum +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple) | [ArrayEnumTuple](#arrayenumtuple) | + +## ArrayEnumTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + "fish", + "crab" + ], + ], + typing.Tuple[ + typing.Literal[ + "fish", + "crab" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal["fish", "crab"] | | must be one of ["fish", "crab"] + +## ArrayEnumTuple +``` +base class: typing.Tuple[ + typing.Literal["fish", "crab"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | must be one of ["fish", "crab"] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal["fish", "crab"] | must be one of ["fish", "crab"] This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/enum_class.md b/samples/client/petstore/python/docs/components/schema/enum_class.md index c64ce4f6bad..a50535ce3bd 100644 --- a/samples/client/petstore/python/docs/components/schema/enum_class.md +++ b/samples/client/petstore/python/docs/components/schema/enum_class.md @@ -1,9 +1,12 @@ +# EnumClass petstore_api.components.schema.enum_class -# Schema EnumClass +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] if omitted the server will use the default value of -efg +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | must be one of ["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] if omitted the server will use the default value of -efg [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/enum_test.md b/samples/client/petstore/python/docs/components/schema/enum_test.md index 47eab2b6d1e..444bde85aa6 100644 --- a/samples/client/petstore/python/docs/components/schema/enum_test.md +++ b/samples/client/petstore/python/docs/components/schema/enum_test.md @@ -1,23 +1,66 @@ +# EnumTest petstore_api.components.schema.enum_test -# Schema EnumTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EnumTestDictInput](#enumtestdictinput), [EnumTestDict](#enumtestdict) | [EnumTestDict](#enumtestdict) | + +## EnumTestDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**enum_string_required** | typing.Literal["UPPER", "lower", ""] | | must be one of ["UPPER", "lower", ""] +**enum_string** | typing.Literal["UPPER", "lower", ""] | | [optional] must be one of ["UPPER", "lower", ""] +**enum_integer** | typing.Literal[1, -1] | | [optional] must be one of [1, -1] value must be a 32 bit integer +**enum_number** | float, int | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float +**stringEnum** | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | [optional] +**IntegerEnum** | typing.Literal[0, 1, 2] | | [optional] +**StringEnumWithDefaultValue** | typing.Literal["placed", "approved", "delivered"] | | [optional] +**IntegerEnumWithDefaultValue** | typing.Literal[0, 1, 2] | | [optional] +**IntegerEnumOneValue** | typing.Literal[0] | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## EnumTestDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**enum_string_required** | typing.Literal["UPPER", "lower", ""] | | must be one of ["UPPER", "lower", ""] +**enum_string** | typing.Literal["UPPER", "lower", ""], schemas.Unset | | [optional] must be one of ["UPPER", "lower", ""] +**enum_integer** | typing.Literal[1, -1], schemas.Unset | | [optional] must be one of [1, -1] value must be a 32 bit integer +**enum_number** | float, int, schemas.Unset | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float +**stringEnum** | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], schemas.Unset | | [optional] +**IntegerEnum** | typing.Literal[0, 1, 2], schemas.Unset | | [optional] +**StringEnumWithDefaultValue** | typing.Literal["placed", "approved", "delivered"], schemas.Unset | | [optional] +**IntegerEnumWithDefaultValue** | typing.Literal[0, 1, 2], schemas.Unset | | [optional] +**IntegerEnumOneValue** | typing.Literal[0], schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**enum_string_required** | typing.Literal["UPPER", "lower", ""] | | must be one of ["UPPER", "lower", ""] +**enum_string** | typing.Literal["UPPER", "lower", ""], schemas.Unset | | [optional] must be one of ["UPPER", "lower", ""] +**enum_integer** | typing.Literal[1, -1], schemas.Unset | | [optional] must be one of [1, -1] value must be a 32 bit integer +**enum_number** | float, int, schemas.Unset | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float +**stringEnum** | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], schemas.Unset | | [optional] +**IntegerEnum** | typing.Literal[0, 1, 2], schemas.Unset | | [optional] +**StringEnumWithDefaultValue** | typing.Literal["placed", "approved", "delivered"], schemas.Unset | | [optional] +**IntegerEnumWithDefaultValue** | typing.Literal[0, 1, 2], schemas.Unset | | [optional] +**IntegerEnumOneValue** | typing.Literal[0], schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**enum_string_required** | str | str | | must be one of ["UPPER", "lower", ""] -**enum_string** | str | str | | [optional] must be one of ["UPPER", "lower", ""] -**enum_integer** | int | int | | [optional] must be one of [1, -1] value must be a 32 bit integer -**enum_number** | float, int | float, int | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float -**stringEnum** | [**StringEnum**](string_enum.md), None, str | [**StringEnum**](string_enum.md) | | [optional] -**IntegerEnum** | [**IntegerEnum**](integer_enum.md), int | [**IntegerEnum**](integer_enum.md) | | [optional] -**StringEnumWithDefaultValue** | [**StringEnumWithDefaultValue**](string_enum_with_default_value.md), str | [**StringEnumWithDefaultValue**](string_enum_with_default_value.md) | | [optional] -**IntegerEnumWithDefaultValue** | [**IntegerEnumWithDefaultValue**](integer_enum_with_default_value.md), int | [**IntegerEnumWithDefaultValue**](integer_enum_with_default_value.md) | | [optional] -**IntegerEnumOneValue** | [**IntegerEnumOneValue**](integer_enum_one_value.md), int | [**IntegerEnumOneValue**](integer_enum_one_value.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [EnumTestDictInput](#enumtestdictinput), [EnumTestDict](#enumtestdict) | [EnumTestDict](#enumtestdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/equilateral_triangle.md b/samples/client/petstore/python/docs/components/schema/equilateral_triangle.md index da62ea7767e..d3b8bc14a39 100644 --- a/samples/client/petstore/python/docs/components/schema/equilateral_triangle.md +++ b/samples/client/petstore/python/docs/components/schema/equilateral_triangle.md @@ -1,29 +1,60 @@ +# EquilateralTriangle petstore_api.components.schema.equilateral_triangle -# Schema EquilateralTriangle +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**triangle_interface.TriangleInterface**](../../components/schema/triangle_interface.md) | [triangle_interface.TriangleInterfaceDictInput](../../components/schema/triangle_interface.md#triangleinterfacedictinput), [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**triangleType** | typing.Literal["EquilateralTriangle"] | | [optional] must be one of ["EquilateralTriangle"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["EquilateralTriangle"], schemas.Unset | | [optional] must be one of ["EquilateralTriangle"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["EquilateralTriangle"], schemas.Unset | | [optional] must be one of ["EquilateralTriangle"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**triangleType** | str | str | | [optional] must be one of ["EquilateralTriangle"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/file.md b/samples/client/petstore/python/docs/components/schema/file.md index ab7778536e8..fddd0e9092f 100644 --- a/samples/client/petstore/python/docs/components/schema/file.md +++ b/samples/client/petstore/python/docs/components/schema/file.md @@ -1,18 +1,46 @@ +# File petstore_api.components.schema.file -# Schema File +``` +type: schemas.Schema +``` ## Description Must be named `File` for test. -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FileDictInput](#filedictinput), [FileDict](#filedict) | [FileDict](#filedict) | + +## FileDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | Must be named `File` for test. | +**sourceURI** | str | Test capitalization | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## FileDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**sourceURI** | str, schemas.Unset | Test capitalization | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Must be named `File` for test. | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**sourceURI** | str, schemas.Unset | Test capitalization | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**sourceURI** | str | str | Test capitalization | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FileDictInput](#filedictinput), [FileDict](#filedict) | [FileDict](#filedict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/file_schema_test_class.md b/samples/client/petstore/python/docs/components/schema/file_schema_test_class.md index 5153860e374..2ad0083b338 100644 --- a/samples/client/petstore/python/docs/components/schema/file_schema_test_class.md +++ b/samples/client/petstore/python/docs/components/schema/file_schema_test_class.md @@ -1,28 +1,96 @@ +# FileSchemaTestClass petstore_api.components.schema.file_schema_test_class -# Schema FileSchemaTestClass +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FileSchemaTestClassDictInput](#fileschematestclassdictinput), [FileSchemaTestClassDict](#fileschematestclassdict) | [FileSchemaTestClassDict](#fileschematestclassdict) | + +## FileSchemaTestClassDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**file** | [file.FileDictInput](../../components/schema/file.md#filedictinput), [file.FileDict](../../components/schema/file.md#filedict) | | [optional] +**files** | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**file** | [**File**](file.md), dict, schemas.immutabledict | [**File**](file.md) | | [optional] -**files** | list, tuple | [properties.Files](#properties-files) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## FileSchemaTestClassDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -# properties Files +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**file** | [file.FileDictInput](../../components/schema/file.md#filedictinput), [file.FileDict](../../components/schema/file.md#filedict), schemas.Unset | | [optional] +**files** | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**file** | [file.FileDict](../../components/schema/file.md#filedict), schemas.Unset | | [optional] +**files** | [FilesTuple](#filestuple), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FileSchemaTestClassDictInput](#fileschematestclassdictinput), [FileSchemaTestClassDict](#fileschematestclassdict) | [FileSchemaTestClassDict](#fileschematestclassdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# Files +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) | [FilesTuple](#filestuple) | + +## FilesTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + file.FileDictInput, + file.FileDict, + ], + ], + typing.Tuple[ + typing.Union[ + file.FileDictInput, + file.FileDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[file.FileDictInput](../../components/schema/file.md#filedictinput), [file.FileDict](../../components/schema/file.md#filedict) | | + +## FilesTuple +``` +base class: typing.Tuple[ + file.FileDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**File**](file.md) | [**File**](file.md) | [**File**](file.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [file.FileDict](../../components/schema/file.md#filedict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/foo.md b/samples/client/petstore/python/docs/components/schema/foo.md index 1f8168fa98c..99af6f006f8 100644 --- a/samples/client/petstore/python/docs/components/schema/foo.md +++ b/samples/client/petstore/python/docs/components/schema/foo.md @@ -1,15 +1,42 @@ +# Foo petstore_api.components.schema.foo -# Schema Foo +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FooDictInput](#foodictinput), [FooDict](#foodict) | [FooDict](#foodict) | + +## FooDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**bar** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## FooDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | [**Bar**](bar.md), str | [**Bar**](bar.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FooDictInput](#foodictinput), [FooDict](#foodict) | [FooDict](#foodict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/format_test.md b/samples/client/petstore/python/docs/components/schema/format_test.md index 527109a58d6..5aefc8f22da 100644 --- a/samples/client/petstore/python/docs/components/schema/format_test.md +++ b/samples/client/petstore/python/docs/components/schema/format_test.md @@ -1,47 +1,152 @@ +# FormatTest petstore_api.components.schema.format_test -# Schema FormatTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**byte** | str | str | | -**date** | str, datetime.date | str | | value must conform to RFC-3339 full-date YYYY-MM-DD -**number** | float, int | float, int | | -**password** | str | str | | -**integer** | int | int | | [optional] -**int32** | int | int | | [optional] value must be a 32 bit integer -**int32withValidations** | int | int | | [optional] value must be a 32 bit integer -**int64** | int | int | | [optional] value must be a 64 bit integer -**float** | float, int | float, int | this is a reserved python keyword | [optional] value must be a 32 bit float -**float32** | float, int | float, int | | [optional] value must be a 32 bit float -**double** | float, int | float, int | | [optional] value must be a 64 bit float -**float64** | float, int | float, int | | [optional] value must be a 64 bit float -**arrayWithUniqueItems** | list, tuple | [properties.ArrayWithUniqueItems](#properties-arraywithuniqueitems) | | [optional] -**string** | str | str | | [optional] -**binary** | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | | [optional] -**dateTime** | str, datetime.datetime | str | | [optional] value must conform to RFC-3339 date-time -**uuid** | str, uuid.UUID | str | | [optional] value must be a uuid -**uuidNoExample** | str, uuid.UUID | str | | [optional] value must be a uuid -**pattern_with_digits** | str | str | A string that is a 10 digit number. Can have leading zeros. | [optional] -**pattern_with_digits_and_delimiter** | str | str | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**noneProp** | None | None | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] - -# properties ArrayWithUniqueItems - -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FormatTestDictInput](#formattestdictinput), [FormatTestDict](#formattestdict) | [FormatTestDict](#formattestdict) | + +## FormatTestDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -list, tuple | tuple | | +**byte** | str | | +**date** | str, datetime.date | | value must conform to RFC-3339 full-date YYYY-MM-DD +**number** | float, int | | +**password** | str | | +**integer** | int | | [optional] +**int32** | int | | [optional] value must be a 32 bit integer +**int32withValidations** | int | | [optional] value must be a 32 bit integer +**int64** | int | | [optional] value must be a 64 bit integer +**float** | float, int | this is a reserved python keyword | [optional] value must be a 32 bit float +**float32** | float, int | | [optional] value must be a 32 bit float +**double** | float, int | | [optional] value must be a 64 bit float +**float64** | float, int | | [optional] value must be a 64 bit float +**arrayWithUniqueItems** | [ArrayWithUniqueItemsTupleInput](#arraywithuniqueitemstupleinput), [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple) | | [optional] +**string** | str | | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader | | [optional] +**dateTime** | str, datetime.datetime | | [optional] value must conform to RFC-3339 date-time +**uuid** | str, uuid.UUID | | [optional] value must be a uuid +**uuidNoExample** | str, uuid.UUID | | [optional] value must be a uuid +**pattern_with_digits** | str | A string that is a 10 digit number. Can have leading zeros. | [optional] +**pattern_with_digits_and_delimiter** | str | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] +**noneProp** | None | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## FormatTestDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**byte** | str | | +**date** | str, datetime.date | | value must conform to RFC-3339 full-date YYYY-MM-DD +**number** | float, int | | +**password** | str | | +**integer** | int, schemas.Unset | | [optional] +**int32** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**int32withValidations** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**float32** | float, int, schemas.Unset | | [optional] value must be a 32 bit float +**double** | float, int, schemas.Unset | | [optional] value must be a 64 bit float +**float64** | float, int, schemas.Unset | | [optional] value must be a 64 bit float +**arrayWithUniqueItems** | [ArrayWithUniqueItemsTupleInput](#arraywithuniqueitemstupleinput), [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple), schemas.Unset | | [optional] +**string** | str, schemas.Unset | | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**dateTime** | str, datetime.datetime, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**uuid** | str, uuid.UUID, schemas.Unset | | [optional] value must be a uuid +**uuidNoExample** | str, uuid.UUID, schemas.Unset | | [optional] value must be a uuid +**pattern_with_digits** | str, schemas.Unset | A string that is a 10 digit number. Can have leading zeros. | [optional] +**pattern_with_digits_and_delimiter** | str, schemas.Unset | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] +**noneProp** | None, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**byte** | str | | +**date** | str | | value must conform to RFC-3339 full-date YYYY-MM-DD +**number** | float, int | | +**password** | str | | +**integer** | int, schemas.Unset | | [optional] +**int32** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**int32withValidations** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**float32** | float, int, schemas.Unset | | [optional] value must be a 32 bit float +**double** | float, int, schemas.Unset | | [optional] value must be a 64 bit float +**float64** | float, int, schemas.Unset | | [optional] value must be a 64 bit float +**arrayWithUniqueItems** | [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple), schemas.Unset | | [optional] +**string** | str, schemas.Unset | | [optional] +**binary** | bytes, io.FileIO, schemas.Unset | | [optional] +**dateTime** | str, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**uuid** | str, schemas.Unset | | [optional] value must be a uuid +**uuidNoExample** | str, schemas.Unset | | [optional] value must be a uuid +**pattern_with_digits** | str, schemas.Unset | A string that is a 10 digit number. Can have leading zeros. | [optional] +**pattern_with_digits_and_delimiter** | str, schemas.Unset | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] +**noneProp** | None, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FormatTestDictInput](#formattestdictinput), [FormatTestDict](#formattestdict) | [FormatTestDict](#formattestdict) | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["float"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# ArrayWithUniqueItems +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayWithUniqueItemsTupleInput](#arraywithuniqueitemstupleinput), [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple) | [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple) | + +## ArrayWithUniqueItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +float, int | | + +## ArrayWithUniqueItemsTuple +``` +base class: typing.Tuple[ + typing.Union[int, float], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayWithUniqueItemsTupleInput](#arraywithuniqueitemstupleinput), [ArrayWithUniqueItemsTuple](#arraywithuniqueitemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | float, int | float, int | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | float, int | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/from_schema.md b/samples/client/petstore/python/docs/components/schema/from_schema.md index b0d3a21b43c..0381f35f387 100644 --- a/samples/client/petstore/python/docs/components/schema/from_schema.md +++ b/samples/client/petstore/python/docs/components/schema/from_schema.md @@ -1,16 +1,46 @@ +# FromSchema petstore_api.components.schema.from_schema -# Schema FromSchema +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FromSchemaDictInput](#fromschemadictinput), [FromSchemaDict](#fromschemadict) | [FromSchemaDict](#fromschemadict) | + +## FromSchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**data** | str | | [optional] +**id** | int | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## FromSchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**data** | str, schemas.Unset | | [optional] +**id** | int, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**data** | str, schemas.Unset | | [optional] +**id** | int, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**data** | str | str | | [optional] -**id** | int | int | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FromSchemaDictInput](#fromschemadictinput), [FromSchemaDict](#fromschemadict) | [FromSchemaDict](#fromschemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/fruit.md b/samples/client/petstore/python/docs/components/schema/fruit.md index a752e7f773b..a662258c593 100644 --- a/samples/client/petstore/python/docs/components/schema/fruit.md +++ b/samples/client/petstore/python/docs/components/schema/fruit.md @@ -1,22 +1,50 @@ +# Fruit petstore_api.components.schema.fruit -# Schema Fruit +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FruitDictInput](#fruitdictinput), [FruitDict](#fruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [FruitDict](#fruitdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## FruitDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**color** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## FruitDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**color** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**color** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**color** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [FruitDictInput](#fruitdictinput), [FruitDict](#fruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [FruitDict](#fruitdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Apple**](apple.md) | [**Apple**](apple.md) | [**Apple**](apple.md) | | -[**Banana**](banana.md) | [**Banana**](banana.md) | [**Banana**](banana.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**apple.Apple**](../../components/schema/apple.md) | None, [apple.AppleDictInput](../../components/schema/apple.md#appledictinput), [apple.AppleDict](../../components/schema/apple.md#appledict) | None, [apple.AppleDict](../../components/schema/apple.md#appledict) +[**banana.Banana**](../../components/schema/banana.md) | [banana.BananaDictInput](../../components/schema/banana.md#bananadictinput), [banana.BananaDict](../../components/schema/banana.md#bananadict) | [banana.BananaDict](../../components/schema/banana.md#bananadict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/fruit_req.md b/samples/client/petstore/python/docs/components/schema/fruit_req.md index 0a5701449ea..37e4344efe2 100644 --- a/samples/client/petstore/python/docs/components/schema/fruit_req.md +++ b/samples/client/petstore/python/docs/components/schema/fruit_req.md @@ -1,24 +1,30 @@ +# FruitReq petstore_api.components.schema.fruit_req -# Schema FruitReq +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | None | None | | -[**AppleReq**](apple_req.md) | [**AppleReq**](apple_req.md) | [**AppleReq**](apple_req.md) | | -[**BananaReq**](banana_req.md) | [**BananaReq**](banana_req.md) | [**BananaReq**](banana_req.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | None | None +[**apple_req.AppleReq**](../../components/schema/apple_req.md) | [apple_req.AppleReqDictInput](../../components/schema/apple_req.md#applereqdictinput), [apple_req.AppleReqDict](../../components/schema/apple_req.md#applereqdict) | [apple_req.AppleReqDict](../../components/schema/apple_req.md#applereqdict) +[**banana_req.BananaReq**](../../components/schema/banana_req.md) | [banana_req.BananaReqDictInput](../../components/schema/banana_req.md#bananareqdictinput), [banana_req.BananaReqDict](../../components/schema/banana_req.md#bananareqdict) | [banana_req.BananaReqDict](../../components/schema/banana_req.md#bananareqdict) -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/gm_fruit.md b/samples/client/petstore/python/docs/components/schema/gm_fruit.md index 4079aad4bad..a403e35a2ba 100644 --- a/samples/client/petstore/python/docs/components/schema/gm_fruit.md +++ b/samples/client/petstore/python/docs/components/schema/gm_fruit.md @@ -1,22 +1,50 @@ +# GmFruit petstore_api.components.schema.gm_fruit -# Schema GmFruit +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[GmFruitDictInput](#gmfruitdictinput), [GmFruitDict](#gmfruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [GmFruitDict](#gmfruitdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## GmFruitDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**color** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## GmFruitDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**color** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**color** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**color** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [GmFruitDictInput](#gmfruitdictinput), [GmFruitDict](#gmfruitdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [GmFruitDict](#gmfruitdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Apple**](apple.md) | [**Apple**](apple.md) | [**Apple**](apple.md) | | -[**Banana**](banana.md) | [**Banana**](banana.md) | [**Banana**](banana.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**apple.Apple**](../../components/schema/apple.md) | None, [apple.AppleDictInput](../../components/schema/apple.md#appledictinput), [apple.AppleDict](../../components/schema/apple.md#appledict) | None, [apple.AppleDict](../../components/schema/apple.md#appledict) +[**banana.Banana**](../../components/schema/banana.md) | [banana.BananaDictInput](../../components/schema/banana.md#bananadictinput), [banana.BananaDict](../../components/schema/banana.md#bananadict) | [banana.BananaDict](../../components/schema/banana.md#bananadict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/grandparent_animal.md b/samples/client/petstore/python/docs/components/schema/grandparent_animal.md index b7dba121f9c..724b39dcf67 100644 --- a/samples/client/petstore/python/docs/components/schema/grandparent_animal.md +++ b/samples/client/petstore/python/docs/components/schema/grandparent_animal.md @@ -1,15 +1,43 @@ +# GrandparentAnimal petstore_api.components.schema.grandparent_animal -# Schema GrandparentAnimal +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[GrandparentAnimalDictInput](#grandparentanimaldictinput), [GrandparentAnimalDict](#grandparentanimaldict) | [GrandparentAnimalDict](#grandparentanimaldict) | + +## GrandparentAnimalDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**pet_type** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## GrandparentAnimalDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**pet_type** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**pet_type** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**pet_type** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [GrandparentAnimalDictInput](#grandparentanimaldictinput), [GrandparentAnimalDict](#grandparentanimaldict) | [GrandparentAnimalDict](#grandparentanimaldict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/has_only_read_only.md b/samples/client/petstore/python/docs/components/schema/has_only_read_only.md index 3ac42c957a9..da7f4e4d3d6 100644 --- a/samples/client/petstore/python/docs/components/schema/has_only_read_only.md +++ b/samples/client/petstore/python/docs/components/schema/has_only_read_only.md @@ -1,16 +1,46 @@ +# HasOnlyReadOnly petstore_api.components.schema.has_only_read_only -# Schema HasOnlyReadOnly +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HasOnlyReadOnlyDictInput](#hasonlyreadonlydictinput), [HasOnlyReadOnlyDict](#hasonlyreadonlydict) | [HasOnlyReadOnlyDict](#hasonlyreadonlydict) | + +## HasOnlyReadOnlyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**bar** | str | | [optional] +**foo** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## HasOnlyReadOnlyDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] +**foo** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] +**foo** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | str | str | | [optional] -**foo** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HasOnlyReadOnlyDictInput](#hasonlyreadonlydictinput), [HasOnlyReadOnlyDict](#hasonlyreadonlydict) | [HasOnlyReadOnlyDict](#hasonlyreadonlydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/health_check_result.md b/samples/client/petstore/python/docs/components/schema/health_check_result.md index 8d268ca6fef..b38b7c9845c 100644 --- a/samples/client/petstore/python/docs/components/schema/health_check_result.md +++ b/samples/client/petstore/python/docs/components/schema/health_check_result.md @@ -1,18 +1,49 @@ +# HealthCheckResult petstore_api.components.schema.health_check_result -# Schema HealthCheckResult +``` +type: schemas.Schema +``` ## Description Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HealthCheckResultDictInput](#healthcheckresultdictinput), [HealthCheckResultDict](#healthcheckresultdict) | [HealthCheckResultDict](#healthcheckresultdict) | + +## HealthCheckResultDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. | +**NullableMessage** | None, str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## HealthCheckResultDict +``` +base class: schemas.immutabledict[str, typing.Union[ + None, + str, +]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**NullableMessage** | None, str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**NullableMessage** | None, str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**NullableMessage** | None, str | None, str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HealthCheckResultDictInput](#healthcheckresultdictinput), [HealthCheckResultDict](#healthcheckresultdict) | [HealthCheckResultDict](#healthcheckresultdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_enum.md b/samples/client/petstore/python/docs/components/schema/integer_enum.md index 3a0985873a5..2709f384821 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_enum.md +++ b/samples/client/petstore/python/docs/components/schema/integer_enum.md @@ -1,9 +1,12 @@ +# IntegerEnum petstore_api.components.schema.integer_enum -# Schema IntegerEnum +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | must be one of [0, 1, 2] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[0, 1, 2] | typing.Literal[0, 1, 2] | must be one of [0, 1, 2] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_enum_big.md b/samples/client/petstore/python/docs/components/schema/integer_enum_big.md index 3bdb9a14dd1..e366417b908 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_enum_big.md +++ b/samples/client/petstore/python/docs/components/schema/integer_enum_big.md @@ -1,9 +1,12 @@ +# IntegerEnumBig petstore_api.components.schema.integer_enum_big -# Schema IntegerEnumBig +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | must be one of [10, 11, 12] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[10, 11, 12] | typing.Literal[10, 11, 12] | must be one of [10, 11, 12] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_enum_one_value.md b/samples/client/petstore/python/docs/components/schema/integer_enum_one_value.md index 3366bfadc97..207ae3b942a 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_enum_one_value.md +++ b/samples/client/petstore/python/docs/components/schema/integer_enum_one_value.md @@ -1,9 +1,12 @@ +# IntegerEnumOneValue petstore_api.components.schema.integer_enum_one_value -# Schema IntegerEnumOneValue +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | must be one of [0] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[0] | typing.Literal[0] | must be one of [0] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_enum_with_default_value.md b/samples/client/petstore/python/docs/components/schema/integer_enum_with_default_value.md index c044f3c4065..0426b8ecc40 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_enum_with_default_value.md +++ b/samples/client/petstore/python/docs/components/schema/integer_enum_with_default_value.md @@ -1,9 +1,12 @@ +# IntegerEnumWithDefaultValue petstore_api.components.schema.integer_enum_with_default_value -# Schema IntegerEnumWithDefaultValue +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | must be one of [0, 1, 2] if omitted the server will use the default value of 0 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[0, 1, 2] | typing.Literal[0, 1, 2] | must be one of [0, 1, 2] if omitted the server will use the default value of 0 [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_max10.md b/samples/client/petstore/python/docs/components/schema/integer_max10.md index 7809ec490ee..5fe0d0984ed 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_max10.md +++ b/samples/client/petstore/python/docs/components/schema/integer_max10.md @@ -1,9 +1,12 @@ +# IntegerMax10 petstore_api.components.schema.integer_max10 -# Schema IntegerMax10 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/integer_min15.md b/samples/client/petstore/python/docs/components/schema/integer_min15.md index 065ac3a8d90..cebf163e07c 100644 --- a/samples/client/petstore/python/docs/components/schema/integer_min15.md +++ b/samples/client/petstore/python/docs/components/schema/integer_min15.md @@ -1,9 +1,12 @@ +# IntegerMin15 petstore_api.components.schema.integer_min15 -# Schema IntegerMin15 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/isosceles_triangle.md b/samples/client/petstore/python/docs/components/schema/isosceles_triangle.md index c16f8a342c8..fafac69f947 100644 --- a/samples/client/petstore/python/docs/components/schema/isosceles_triangle.md +++ b/samples/client/petstore/python/docs/components/schema/isosceles_triangle.md @@ -1,29 +1,60 @@ +# IsoscelesTriangle petstore_api.components.schema.isosceles_triangle -# Schema IsoscelesTriangle +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**triangle_interface.TriangleInterface**](../../components/schema/triangle_interface.md) | [triangle_interface.TriangleInterfaceDictInput](../../components/schema/triangle_interface.md#triangleinterfacedictinput), [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**triangleType** | typing.Literal["IsoscelesTriangle"] | | [optional] must be one of ["IsoscelesTriangle"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["IsoscelesTriangle"], schemas.Unset | | [optional] must be one of ["IsoscelesTriangle"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["IsoscelesTriangle"], schemas.Unset | | [optional] must be one of ["IsoscelesTriangle"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**triangleType** | str | str | | [optional] must be one of ["IsoscelesTriangle"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/items.md b/samples/client/petstore/python/docs/components/schema/items.md index 5754ccffc64..9527e318e1f 100644 --- a/samples/client/petstore/python/docs/components/schema/items.md +++ b/samples/client/petstore/python/docs/components/schema/items.md @@ -1,24 +1,65 @@ +# Items petstore_api.components.schema.items -# Schema Items +``` +type: schemas.Schema +``` ## Description component's name collides with the inner schema name -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | component's name collides with the inner schema name | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) | [ItemsTuple](#itemstuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items2) | dict, schemas.immutabledict | schemas.immutabledict | | +## ItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + typing.Tuple[ + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict | | + +## ItemsTuple +``` +base class: typing.Tuple[ + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsTupleInput](#itemstupleinput), [ItemsTuple](#itemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict | This method is used under the hood when instance[0] is called # Items2 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/json_patch_request.md b/samples/client/petstore/python/docs/components/schema/json_patch_request.md index 2ceba7dfc39..28e37d801d2 100644 --- a/samples/client/petstore/python/docs/components/schema/json_patch_request.md +++ b/samples/client/petstore/python/docs/components/schema/json_patch_request.md @@ -1,29 +1,70 @@ +# JSONPatchRequest petstore_api.components.schema.json_patch_request -# Schema JSONPatchRequest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[JSONPatchRequestTupleInput](#jsonpatchrequesttupleinput), [JSONPatchRequestTuple](#jsonpatchrequesttuple) | [JSONPatchRequestTuple](#jsonpatchrequesttuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## JSONPatchRequestTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## JSONPatchRequestTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [JSONPatchRequestTupleInput](#jsonpatchrequesttupleinput), [JSONPatchRequestTuple](#jsonpatchrequesttuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called # Items +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**JSONPatchRequestAddReplaceTest**](json_patch_request_add_replace_test.md) | [**JSONPatchRequestAddReplaceTest**](json_patch_request_add_replace_test.md) | [**JSONPatchRequestAddReplaceTest**](json_patch_request_add_replace_test.md) | | -[**JSONPatchRequestRemove**](json_patch_request_remove.md) | [**JSONPatchRequestRemove**](json_patch_request_remove.md) | [**JSONPatchRequestRemove**](json_patch_request_remove.md) | | -[**JSONPatchRequestMoveCopy**](json_patch_request_move_copy.md) | [**JSONPatchRequestMoveCopy**](json_patch_request_move_copy.md) | [**JSONPatchRequestMoveCopy**](json_patch_request_move_copy.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTest**](../../components/schema/json_patch_request_add_replace_test.md) | [json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTestDictInput](../../components/schema/json_patch_request_add_replace_test.md#jsonpatchrequestaddreplacetestdictinput), [json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTestDict](../../components/schema/json_patch_request_add_replace_test.md#jsonpatchrequestaddreplacetestdict) | [json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTestDict](../../components/schema/json_patch_request_add_replace_test.md#jsonpatchrequestaddreplacetestdict) +[**json_patch_request_remove.JSONPatchRequestRemove**](../../components/schema/json_patch_request_remove.md) | [json_patch_request_remove.JSONPatchRequestRemoveDictInput](../../components/schema/json_patch_request_remove.md#jsonpatchrequestremovedictinput), [json_patch_request_remove.JSONPatchRequestRemoveDict](../../components/schema/json_patch_request_remove.md#jsonpatchrequestremovedict) | [json_patch_request_remove.JSONPatchRequestRemoveDict](../../components/schema/json_patch_request_remove.md#jsonpatchrequestremovedict) +[**json_patch_request_move_copy.JSONPatchRequestMoveCopy**](../../components/schema/json_patch_request_move_copy.md) | [json_patch_request_move_copy.JSONPatchRequestMoveCopyDictInput](../../components/schema/json_patch_request_move_copy.md#jsonpatchrequestmovecopydictinput), [json_patch_request_move_copy.JSONPatchRequestMoveCopyDict](../../components/schema/json_patch_request_move_copy.md#jsonpatchrequestmovecopydict) | [json_patch_request_move_copy.JSONPatchRequestMoveCopyDict](../../components/schema/json_patch_request_move_copy.md#jsonpatchrequestmovecopydict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/json_patch_request_add_replace_test.md b/samples/client/petstore/python/docs/components/schema/json_patch_request_add_replace_test.md index 19232a7af15..6853d9ca8c3 100644 --- a/samples/client/petstore/python/docs/components/schema/json_patch_request_add_replace_test.md +++ b/samples/client/petstore/python/docs/components/schema/json_patch_request_add_replace_test.md @@ -1,16 +1,46 @@ +# JSONPatchRequestAddReplaceTest petstore_api.components.schema.json_patch_request_add_replace_test -# Schema JSONPatchRequestAddReplaceTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[JSONPatchRequestAddReplaceTestDictInput](#jsonpatchrequestaddreplacetestdictinput), [JSONPatchRequestAddReplaceTestDict](#jsonpatchrequestaddreplacetestdict) | [JSONPatchRequestAddReplaceTestDict](#jsonpatchrequestaddreplacetestdict) | + +## JSONPatchRequestAddReplaceTestDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**op** | typing.Literal["add", "replace", "test"] | The operation to perform. | must be one of ["add", "replace", "test"] +**path** | str | A JSON Pointer path. | +**value** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | The value to add, replace or test. | + +## JSONPatchRequestAddReplaceTestDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**op** | typing.Literal["add", "replace", "test"] | The operation to perform. | must be one of ["add", "replace", "test"] +**path** | str | A JSON Pointer path. | +**value** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | The value to add, replace or test. | + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**op** | typing.Literal["add", "replace", "test"] | The operation to perform. | must be one of ["add", "replace", "test"] +**path** | str | A JSON Pointer path. | +**value** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | The value to add, replace or test. | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**op** | str | str | The operation to perform. | must be one of ["add", "replace", "test"] -**path** | str | str | A JSON Pointer path. | -**value** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | The value to add, replace or test. | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [JSONPatchRequestAddReplaceTestDictInput](#jsonpatchrequestaddreplacetestdictinput), [JSONPatchRequestAddReplaceTestDict](#jsonpatchrequestaddreplacetestdict) | [JSONPatchRequestAddReplaceTestDict](#jsonpatchrequestaddreplacetestdict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/json_patch_request_move_copy.md b/samples/client/petstore/python/docs/components/schema/json_patch_request_move_copy.md index 098e3154474..fcf768c474a 100644 --- a/samples/client/petstore/python/docs/components/schema/json_patch_request_move_copy.md +++ b/samples/client/petstore/python/docs/components/schema/json_patch_request_move_copy.md @@ -1,16 +1,45 @@ +# JSONPatchRequestMoveCopy petstore_api.components.schema.json_patch_request_move_copy -# Schema JSONPatchRequestMoveCopy +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[JSONPatchRequestMoveCopyDictInput](#jsonpatchrequestmovecopydictinput), [JSONPatchRequestMoveCopyDict](#jsonpatchrequestmovecopydict) | [JSONPatchRequestMoveCopyDict](#jsonpatchrequestmovecopydict) | + +## JSONPatchRequestMoveCopyDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**from** | str | A JSON Pointer path. | +**op** | typing.Literal["move", "copy"] | The operation to perform. | must be one of ["move", "copy"] +**path** | str | A JSON Pointer path. | + +## JSONPatchRequestMoveCopyDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**op** | typing.Literal["move", "copy"] | The operation to perform. | must be one of ["move", "copy"] +**path** | str | A JSON Pointer path. | + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**op** | typing.Literal["move", "copy"] | The operation to perform. | must be one of ["move", "copy"] +**path** | str | A JSON Pointer path. | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**from** | str | str | A JSON Pointer path. | -**op** | str | str | The operation to perform. | must be one of ["move", "copy"] -**path** | str | str | A JSON Pointer path. | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [JSONPatchRequestMoveCopyDictInput](#jsonpatchrequestmovecopydictinput), [JSONPatchRequestMoveCopyDict](#jsonpatchrequestmovecopydict) | [JSONPatchRequestMoveCopyDict](#jsonpatchrequestmovecopydict) | a constructor +__getitem__ | str | str | This model has invalid python names so this method is used under the hood when you access instance["from"], [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/json_patch_request_remove.md b/samples/client/petstore/python/docs/components/schema/json_patch_request_remove.md index 7d2c5a419cd..e0c29c95521 100644 --- a/samples/client/petstore/python/docs/components/schema/json_patch_request_remove.md +++ b/samples/client/petstore/python/docs/components/schema/json_patch_request_remove.md @@ -1,15 +1,43 @@ +# JSONPatchRequestRemove petstore_api.components.schema.json_patch_request_remove -# Schema JSONPatchRequestRemove +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[JSONPatchRequestRemoveDictInput](#jsonpatchrequestremovedictinput), [JSONPatchRequestRemoveDict](#jsonpatchrequestremovedict) | [JSONPatchRequestRemoveDict](#jsonpatchrequestremovedict) | + +## JSONPatchRequestRemoveDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**op** | typing.Literal["remove"] | The operation to perform. | must be one of ["remove"] +**path** | str | A JSON Pointer path. | + +## JSONPatchRequestRemoveDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**op** | typing.Literal["remove"] | The operation to perform. | must be one of ["remove"] +**path** | str | A JSON Pointer path. | + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**op** | typing.Literal["remove"] | The operation to perform. | must be one of ["remove"] +**path** | str | A JSON Pointer path. | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**op** | str | str | The operation to perform. | must be one of ["remove"] -**path** | str | str | A JSON Pointer path. | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [JSONPatchRequestRemoveDictInput](#jsonpatchrequestremovedictinput), [JSONPatchRequestRemoveDict](#jsonpatchrequestremovedict) | [JSONPatchRequestRemoveDict](#jsonpatchrequestremovedict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/mammal.md b/samples/client/petstore/python/docs/components/schema/mammal.md index 0899c692483..978df2c09e7 100644 --- a/samples/client/petstore/python/docs/components/schema/mammal.md +++ b/samples/client/petstore/python/docs/components/schema/mammal.md @@ -1,17 +1,20 @@ +# Mammal petstore_api.components.schema.mammal -# Schema Mammal +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Whale**](whale.md) | [**Whale**](whale.md) | [**Whale**](whale.md) | | -[**Zebra**](zebra.md) | [**Zebra**](zebra.md) | [**Zebra**](zebra.md) | | -[**Pig**](pig.md) | [**Pig**](pig.md) | [**Pig**](pig.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**whale.Whale**](../../components/schema/whale.md) | [whale.WhaleDictInput](../../components/schema/whale.md#whaledictinput), [whale.WhaleDict](../../components/schema/whale.md#whaledict) | [whale.WhaleDict](../../components/schema/whale.md#whaledict) +[**zebra.Zebra**](../../components/schema/zebra.md) | [zebra.ZebraDictInput](../../components/schema/zebra.md#zebradictinput), [zebra.ZebraDict](../../components/schema/zebra.md#zebradict) | [zebra.ZebraDict](../../components/schema/zebra.md#zebradict) +[**pig.Pig**](../../components/schema/pig.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/map_test.md b/samples/client/petstore/python/docs/components/schema/map_test.md index 86d2175cd5e..b5af1391ef8 100644 --- a/samples/client/petstore/python/docs/components/schema/map_test.md +++ b/samples/client/petstore/python/docs/components/schema/map_test.md @@ -1,66 +1,205 @@ +# MapTest petstore_api.components.schema.map_test -# Schema MapTest +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapTestDictInput](#maptestdictinput), [MapTestDict](#maptestdict) | [MapTestDict](#maptestdict) | + +## MapTestDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**map_map_of_string** | [MapMapOfStringDictInput](#mapmapofstringdictinput), [MapMapOfStringDict](#mapmapofstringdict) | | [optional] +**map_of_enum_string** | [MapOfEnumStringDictInput](#mapofenumstringdictinput), [MapOfEnumStringDict](#mapofenumstringdict) | | [optional] +**direct_map** | [DirectMapDictInput](#directmapdictinput), [DirectMapDict](#directmapdict) | | [optional] +**indirect_map** | [string_boolean_map.StringBooleanMapDictInput](../../components/schema/string_boolean_map.md#stringbooleanmapdictinput), [string_boolean_map.StringBooleanMapDict](../../components/schema/string_boolean_map.md#stringbooleanmapdict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## MapTestDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**map_map_of_string** | [MapMapOfStringDictInput](#mapmapofstringdictinput), [MapMapOfStringDict](#mapmapofstringdict), schemas.Unset | | [optional] +**map_of_enum_string** | [MapOfEnumStringDictInput](#mapofenumstringdictinput), [MapOfEnumStringDict](#mapofenumstringdict), schemas.Unset | | [optional] +**direct_map** | [DirectMapDictInput](#directmapdictinput), [DirectMapDict](#directmapdict), schemas.Unset | | [optional] +**indirect_map** | [string_boolean_map.StringBooleanMapDictInput](../../components/schema/string_boolean_map.md#stringbooleanmapdictinput), [string_boolean_map.StringBooleanMapDict](../../components/schema/string_boolean_map.md#stringbooleanmapdict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**map_map_of_string** | [MapMapOfStringDict](#mapmapofstringdict), schemas.Unset | | [optional] +**map_of_enum_string** | [MapOfEnumStringDict](#mapofenumstringdict), schemas.Unset | | [optional] +**direct_map** | [DirectMapDict](#directmapdict), schemas.Unset | | [optional] +**indirect_map** | [string_boolean_map.StringBooleanMapDict](../../components/schema/string_boolean_map.md#stringbooleanmapdict), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapTestDictInput](#maptestdictinput), [MapTestDict](#maptestdict) | [MapTestDict](#maptestdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**map_map_of_string** | dict, schemas.immutabledict | [properties.MapMapOfString](#properties-mapmapofstring) | | [optional] -**map_of_enum_string** | dict, schemas.immutabledict | [properties.MapOfEnumString](#properties-mapofenumstring) | | [optional] -**direct_map** | dict, schemas.immutabledict | [properties.DirectMap](#properties-directmap) | | [optional] -**indirect_map** | [**StringBooleanMap**](string_boolean_map.md), dict, schemas.immutabledict | [**StringBooleanMap**](string_boolean_map.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +# MapMapOfString +``` +type: schemas.Schema +``` -# properties MapMapOfString +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapMapOfStringDictInput](#mapmapofstringdictinput), [MapMapOfStringDict](#mapmapofstringdict) | [MapMapOfStringDict](#mapmapofstringdict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## MapMapOfStringDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + AdditionalPropertiesDictInput, + AdditionalPropertiesDict, + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict | [AdditionalProperties](#properties-mapmapofstring-additionalproperties) | any string name can be used but the value must be the correct type | [optional] +## MapMapOfStringDict +``` +base class: schemas.immutabledict[str, schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]] -# properties MapMapOfString AdditionalProperties +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapMapOfStringDictInput](#mapmapofstringdictinput), [MapMapOfStringDict](#mapmapofstringdict) | [MapMapOfStringDict](#mapmapofstringdict) | a constructor +get_additional_property_ | str | [AdditionalPropertiesDict](#additionalpropertiesdict), schemas.Unset | provides type safety for additional properties + +# AdditionalProperties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | [AdditionalPropertiesDict](#additionalpropertiesdict) | + +## AdditionalPropertiesDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## AdditionalPropertiesDict +``` +base class: schemas.immutabledict[str, str] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# properties MapOfEnumString +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalPropertiesDictInput](#additionalpropertiesdictinput), [AdditionalPropertiesDict](#additionalpropertiesdict) | [AdditionalPropertiesDict](#additionalpropertiesdict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties -## Type Info -Input Type | Accessed Type | Description | Notes +# MapOfEnumString +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapOfEnumStringDictInput](#mapofenumstringdictinput), [MapOfEnumStringDict](#mapofenumstringdict) | [MapOfEnumStringDict](#mapofenumstringdict) | + +## MapOfEnumStringDictInput +``` +type: typing.Mapping[ + str, + typing.Literal[ + "UPPER", + "lower" + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | typing.Literal["UPPER", "lower"] | any string name can be used but the value must be the correct type | [optional] must be one of ["UPPER", "lower"] + +## MapOfEnumStringDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | typing.Literal["UPPER", "lower"] | any string name can be used but the value must be the correct type | [optional] must be one of ["UPPER", "lower"] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] must be one of ["UPPER", "lower"] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapOfEnumStringDictInput](#mapofenumstringdictinput), [MapOfEnumStringDict](#mapofenumstringdict) | [MapOfEnumStringDict](#mapofenumstringdict) | a constructor +get_additional_property_ | str | typing.Literal["UPPER", "lower"], schemas.Unset | provides type safety for additional properties -# properties DirectMap +# DirectMap +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[DirectMapDictInput](#directmapdictinput), [DirectMapDict](#directmapdict) | [DirectMapDict](#directmapdict) | + +## DirectMapDictInput +``` +type: typing.Mapping[ + str, + bool, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | bool | any string name can be used but the value must be the correct type | [optional] + +## DirectMapDict +``` +base class: schemas.immutabledict[str, bool] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | bool | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | bool | bool | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [DirectMapDictInput](#directmapdictinput), [DirectMapDict](#directmapdict) | [DirectMapDict](#directmapdict) | a constructor +get_additional_property_ | str | bool, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/mixed_properties_and_additional_properties_class.md b/samples/client/petstore/python/docs/components/schema/mixed_properties_and_additional_properties_class.md index 078bf0156b3..0a343fa4eaf 100644 --- a/samples/client/petstore/python/docs/components/schema/mixed_properties_and_additional_properties_class.md +++ b/samples/client/petstore/python/docs/components/schema/mixed_properties_and_additional_properties_class.md @@ -1,29 +1,88 @@ +# MixedPropertiesAndAdditionalPropertiesClass petstore_api.components.schema.mixed_properties_and_additional_properties_class -# Schema MixedPropertiesAndAdditionalPropertiesClass +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MixedPropertiesAndAdditionalPropertiesClassDictInput](#mixedpropertiesandadditionalpropertiesclassdictinput), [MixedPropertiesAndAdditionalPropertiesClassDict](#mixedpropertiesandadditionalpropertiesclassdict) | [MixedPropertiesAndAdditionalPropertiesClassDict](#mixedpropertiesandadditionalpropertiesclassdict) | + +## MixedPropertiesAndAdditionalPropertiesClassDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**uuid** | str, uuid.UUID | | [optional] value must be a uuid +**dateTime** | str, datetime.datetime | | [optional] value must conform to RFC-3339 date-time +**map** | [MapDictInput](#mapdictinput), [MapDict](#mapdict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## MixedPropertiesAndAdditionalPropertiesClassDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**uuid** | str, uuid.UUID, schemas.Unset | | [optional] value must be a uuid +**dateTime** | str, datetime.datetime, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**map** | [MapDictInput](#mapdictinput), [MapDict](#mapdict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**uuid** | str, uuid.UUID | str | | [optional] value must be a uuid -**dateTime** | str, datetime.datetime | str | | [optional] value must conform to RFC-3339 date-time -**map** | dict, schemas.immutabledict | [properties.Map](#properties-map) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**uuid** | str, schemas.Unset | | [optional] value must be a uuid +**dateTime** | str, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**map** | [MapDict](#mapdict), schemas.Unset | | [optional] -# properties Map +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MixedPropertiesAndAdditionalPropertiesClassDictInput](#mixedpropertiesandadditionalpropertiesclassdictinput), [MixedPropertiesAndAdditionalPropertiesClassDict](#mixedpropertiesandadditionalpropertiesclassdict) | [MixedPropertiesAndAdditionalPropertiesClassDict](#mixedpropertiesandadditionalpropertiesclassdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -## Type Info -Input Type | Accessed Type | Description | Notes +# Map +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MapDictInput](#mapdictinput), [MapDict](#mapdict) | [MapDict](#mapdict) | + +## MapDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + animal.AnimalDictInput, + animal.AnimalDict, + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | [animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | any string name can be used but the value must be the correct type | [optional] + +## MapDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | [animal.AnimalDictInput](../../components/schema/animal.md#animaldictinput), [animal.AnimalDict](../../components/schema/animal.md#animaldict) | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | [**Animal**](animal.md), dict, schemas.immutabledict | [**Animal**](animal.md) | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MapDictInput](#mapdictinput), [MapDict](#mapdict) | [MapDict](#mapdict) | a constructor +get_additional_property_ | str | [animal.AnimalDict](../../components/schema/animal.md#animaldict), schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/money.md b/samples/client/petstore/python/docs/components/schema/money.md index 9e0c253ab57..cc26441d6a6 100644 --- a/samples/client/petstore/python/docs/components/schema/money.md +++ b/samples/client/petstore/python/docs/components/schema/money.md @@ -1,15 +1,42 @@ +# Money petstore_api.components.schema.money -# Schema Money +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[MoneyDictInput](#moneydictinput), [MoneyDict](#moneydict) | [MoneyDict](#moneydict) | + +## MoneyDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**amount** | str | | value must be int or float numeric +**currency** | typing.Literal["eur", "usd"] | | + +## MoneyDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**amount** | str | | value must be int or float numeric +**currency** | typing.Literal["eur", "usd"] | | + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**amount** | str | | value must be int or float numeric +**currency** | typing.Literal["eur", "usd"] | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str | str | | value must be int or float numeric -**currency** | [**Currency**](currency.md), str | [**Currency**](currency.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [MoneyDictInput](#moneydictinput), [MoneyDict](#moneydict) | [MoneyDict](#moneydict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/name.md b/samples/client/petstore/python/docs/components/schema/name.md index f8cdb961f91..88e6bc2956d 100644 --- a/samples/client/petstore/python/docs/components/schema/name.md +++ b/samples/client/petstore/python/docs/components/schema/name.md @@ -1,20 +1,51 @@ +# Name petstore_api.components.schema.name -# Schema Name +``` +type: schemas.Schema +``` ## Description Model for testing model name same as property name -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NameDictInput](#namedictinput), [NameDict](#namedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [NameDict](#namedict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## NameDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | Model for testing model name same as property name | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | int | int | | value must be a 32 bit integer -**snake_case** | int | int | | [optional] value must be a 32 bit integer -**property** | str | str | this is a reserved python keyword | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +**name** | int | | value must be a 32 bit integer +**snake_case** | int | | [optional] value must be a 32 bit integer +**property** | str | this is a reserved python keyword | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## NameDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | int | | value must be a 32 bit integer +**snake_case** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Model for testing model name same as property name | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | int | | value must be a 32 bit integer +**snake_case** | int, schemas.Unset | | [optional] value must be a 32 bit integer + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NameDictInput](#namedictinput), [NameDict](#namedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [NameDict](#namedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["property"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/no_additional_properties.md b/samples/client/petstore/python/docs/components/schema/no_additional_properties.md index 3d2c2473017..b9f222b520e 100644 --- a/samples/client/petstore/python/docs/components/schema/no_additional_properties.md +++ b/samples/client/petstore/python/docs/components/schema/no_additional_properties.md @@ -1,15 +1,43 @@ +# NoAdditionalProperties petstore_api.components.schema.no_additional_properties -# Schema NoAdditionalProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NoAdditionalPropertiesDictInput](#noadditionalpropertiesdictinput), [NoAdditionalPropertiesDict](#noadditionalpropertiesdict) | [NoAdditionalPropertiesDict](#noadditionalpropertiesdict) | + +## NoAdditionalPropertiesDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**id** | int | | value must be a 64 bit integer +**petId** | int | | [optional] value must be a 64 bit integer + +## NoAdditionalPropertiesDict +``` +base class: schemas.immutabledict[str, int] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**id** | int | | value must be a 64 bit integer +**petId** | int, schemas.Unset | | [optional] value must be a 64 bit integer + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**id** | int | | value must be a 64 bit integer +**petId** | int, schemas.Unset | | [optional] value must be a 64 bit integer -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | int | int | | value must be a 64 bit integer -**petId** | int | int | | [optional] value must be a 64 bit integer +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NoAdditionalPropertiesDictInput](#noadditionalpropertiesdictinput), [NoAdditionalPropertiesDict](#noadditionalpropertiesdict) | [NoAdditionalPropertiesDict](#noadditionalpropertiesdict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/nullable_class.md b/samples/client/petstore/python/docs/components/schema/nullable_class.md index ad05c781912..6a669d01e1b 100644 --- a/samples/client/petstore/python/docs/components/schema/nullable_class.md +++ b/samples/client/petstore/python/docs/components/schema/nullable_class.md @@ -1,147 +1,526 @@ +# NullableClass petstore_api.components.schema.nullable_class -# Schema NullableClass - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**integer_prop** | None, int | None, int | | [optional] -**number_prop** | None, float, int | None, float, int | | [optional] -**boolean_prop** | None, bool | None, bool | | [optional] -**string_prop** | None, str | None, str | | [optional] -**date_prop** | None, str, datetime.date | None, str | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD -**datetime_prop** | None, str, datetime.datetime | None, str | | [optional] value must conform to RFC-3339 date-time -**array_nullable_prop** | None, list, tuple | [properties.ArrayNullableProp](#properties-arraynullableprop) | | [optional] -**array_and_items_nullable_prop** | None, list, tuple | [properties.ArrayAndItemsNullableProp](#properties-arrayanditemsnullableprop) | | [optional] -**array_items_nullable** | list, tuple | [properties.ArrayItemsNullable](#properties-arrayitemsnullable) | | [optional] -**object_nullable_prop** | None, dict, schemas.immutabledict | [properties.ObjectNullableProp](#properties-objectnullableprop) | | [optional] -**object_and_items_nullable_prop** | None, dict, schemas.immutabledict | [properties.ObjectAndItemsNullableProp](#properties-objectanditemsnullableprop) | | [optional] -**object_items_nullable** | dict, schemas.immutabledict | [properties.ObjectItemsNullable](#properties-objectitemsnullable) | | [optional] -**any_string_name** | None, dict, schemas.immutabledict | [AdditionalProperties4](#additionalproperties4) | any string name can be used but the value must be the correct type | [optional] - -# properties ArrayNullableProp - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, list, tuple | None, tuple | | - -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arraynullableprop-items) | dict, schemas.immutabledict | schemas.immutabledict | | - -# properties ArrayNullableProp Items - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -# properties ArrayAndItemsNullableProp - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, list, tuple | None, tuple | | - -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arrayanditemsnullableprop-items2) | None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -# properties ArrayAndItemsNullableProp Items2 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -# properties ArrayItemsNullable - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#properties-arrayitemsnullable-items3) | None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -# properties ArrayItemsNullable Items3 - -## Type Info -Input Type | Accessed Type | Description | Notes +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NullableClassDictInput](#nullableclassdictinput), [NullableClassDict](#nullableclassdict) | [NullableClassDict](#nullableclassdict) | + +## NullableClassDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + None, + int, + ], + typing.Union[ + None, + typing.Union[ + int, + float + ], + ], + typing.Union[ + None, + bool, + ], + typing.Union[ + None, + str, + ], + typing.Union[ + None, + typing.Union[ + str, + datetime.date + ], + ], + typing.Union[ + None, + typing.Union[ + str, + datetime.datetime + ], + ], + typing.Union[ + None, + typing.Union[ + ArrayNullablePropTupleInput, + ArrayNullablePropTuple + ], + ], + typing.Union[ + None, + typing.Union[ + ArrayAndItemsNullablePropTupleInput, + ArrayAndItemsNullablePropTuple + ], + ], + typing.Union[ + ArrayItemsNullableTupleInput, + ArrayItemsNullableTuple + ], + typing.Union[ + None, + typing.Union[ + ObjectNullablePropDictInput, + ObjectNullablePropDict, + ], + ], + typing.Union[ + None, + typing.Union[ + ObjectAndItemsNullablePropDictInput, + ObjectAndItemsNullablePropDict, + ], + ], + typing.Union[ + ObjectItemsNullableDictInput, + ObjectItemsNullableDict, + ], + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -# properties ObjectNullableProp - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | dict, schemas.immutabledict | [AdditionalProperties](#properties-objectnullableprop-additionalproperties) | any string name can be used but the value must be the correct type | [optional] - -# properties ObjectNullableProp AdditionalProperties - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -# properties ObjectAndItemsNullableProp - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | None, dict, schemas.immutabledict | [AdditionalProperties2](#properties-objectanditemsnullableprop-additionalproperties2) | any string name can be used but the value must be the correct type | [optional] - -# properties ObjectAndItemsNullableProp AdditionalProperties2 - -## Type Info -Input Type | Accessed Type | Description | Notes +**integer_prop** | None, int | | [optional] +**number_prop** | None, float, int | | [optional] +**boolean_prop** | None, bool | | [optional] +**string_prop** | None, str | | [optional] +**date_prop** | None, str, datetime.date | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**datetime_prop** | None, str, datetime.datetime | | [optional] value must conform to RFC-3339 date-time +**array_nullable_prop** | None, [ArrayNullablePropTupleInput](#arraynullableproptupleinput), [ArrayNullablePropTuple](#arraynullableproptuple) | | [optional] +**array_and_items_nullable_prop** | None, [ArrayAndItemsNullablePropTupleInput](#arrayanditemsnullableproptupleinput), [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple) | | [optional] +**array_items_nullable** | [ArrayItemsNullableTupleInput](#arrayitemsnullabletupleinput), [ArrayItemsNullableTuple](#arrayitemsnullabletuple) | | [optional] +**object_nullable_prop** | None, [ObjectNullablePropDictInput](#objectnullablepropdictinput), [ObjectNullablePropDict](#objectnullablepropdict) | | [optional] +**object_and_items_nullable_prop** | None, [ObjectAndItemsNullablePropDictInput](#objectanditemsnullablepropdictinput), [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict) | | [optional] +**object_items_nullable** | [ObjectItemsNullableDictInput](#objectitemsnullabledictinput), [ObjectItemsNullableDict](#objectitemsnullabledict) | | [optional] +**any_string_name** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] + +## NullableClassDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**integer_prop** | None, int, schemas.Unset | | [optional] +**number_prop** | None, float, int, schemas.Unset | | [optional] +**boolean_prop** | None, bool, schemas.Unset | | [optional] +**string_prop** | None, str, schemas.Unset | | [optional] +**date_prop** | None, str, datetime.date, schemas.Unset | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**datetime_prop** | None, str, datetime.datetime, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**array_nullable_prop** | None, [ArrayNullablePropTupleInput](#arraynullableproptupleinput), [ArrayNullablePropTuple](#arraynullableproptuple), schemas.Unset | | [optional] +**array_and_items_nullable_prop** | None, [ArrayAndItemsNullablePropTupleInput](#arrayanditemsnullableproptupleinput), [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple), schemas.Unset | | [optional] +**array_items_nullable** | [ArrayItemsNullableTupleInput](#arrayitemsnullabletupleinput), [ArrayItemsNullableTuple](#arrayitemsnullabletuple), schemas.Unset | | [optional] +**object_nullable_prop** | None, [ObjectNullablePropDictInput](#objectnullablepropdictinput), [ObjectNullablePropDict](#objectnullablepropdict), schemas.Unset | | [optional] +**object_and_items_nullable_prop** | None, [ObjectAndItemsNullablePropDictInput](#objectanditemsnullablepropdictinput), [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict), schemas.Unset | | [optional] +**object_items_nullable** | [ObjectItemsNullableDictInput](#objectitemsnullabledictinput), [ObjectItemsNullableDict](#objectitemsnullabledict), schemas.Unset | | [optional] +**kwargs** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**integer_prop** | None, int, schemas.Unset | | [optional] +**number_prop** | None, float, int, schemas.Unset | | [optional] +**boolean_prop** | None, bool, schemas.Unset | | [optional] +**string_prop** | None, str, schemas.Unset | | [optional] +**date_prop** | None, str, schemas.Unset | | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**datetime_prop** | None, str, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**array_nullable_prop** | None, [ArrayNullablePropTuple](#arraynullableproptuple), schemas.Unset | | [optional] +**array_and_items_nullable_prop** | None, [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple), schemas.Unset | | [optional] +**array_items_nullable** | [ArrayItemsNullableTuple](#arrayitemsnullabletuple), schemas.Unset | | [optional] +**object_nullable_prop** | None, [ObjectNullablePropDict](#objectnullablepropdict), schemas.Unset | | [optional] +**object_and_items_nullable_prop** | None, [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict), schemas.Unset | | [optional] +**object_items_nullable** | [ObjectItemsNullableDict](#objectitemsnullabledict), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NullableClassDictInput](#nullableclassdictinput), [NullableClassDict](#nullableclassdict) | [NullableClassDict](#nullableclassdict) | a constructor +get_additional_property_ | str | None, schemas.immutabledict, schemas.Unset | provides type safety for additional properties + +# ArrayNullableProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, [ArrayNullablePropTupleInput](#arraynullableproptupleinput), [ArrayNullablePropTuple](#arraynullableproptuple) | None, [ArrayNullablePropTuple](#arraynullableproptuple) | + +## ArrayNullablePropTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + typing.Tuple[ + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict | | + +## ArrayNullablePropTuple +``` +base class: typing.Tuple[ + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | None, [ArrayNullablePropTupleInput](#arraynullableproptupleinput), [ArrayNullablePropTuple](#arraynullableproptuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict | This method is used under the hood when instance[0] is called + +# Items +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# ArrayAndItemsNullableProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, [ArrayAndItemsNullablePropTupleInput](#arrayanditemsnullableproptupleinput), [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple) | None, [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple) | + +## ArrayAndItemsNullablePropTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + ], + typing.Tuple[ + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +None, dict, schemas.immutabledict | | + +## ArrayAndItemsNullablePropTuple +``` +base class: typing.Tuple[ + typing.Union[ + None, + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | None, [ArrayAndItemsNullablePropTupleInput](#arrayanditemsnullableproptupleinput), [ArrayAndItemsNullablePropTuple](#arrayanditemsnullableproptuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | None, schemas.immutabledict | This method is used under the hood when instance[0] is called + +# Items2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | + +# ArrayItemsNullable +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ArrayItemsNullableTupleInput](#arrayitemsnullabletupleinput), [ArrayItemsNullableTuple](#arrayitemsnullabletuple) | [ArrayItemsNullableTuple](#arrayitemsnullabletuple) | + +## ArrayItemsNullableTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + ], + typing.Tuple[ + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +None, dict, schemas.immutabledict | | + +## ArrayItemsNullableTuple +``` +base class: typing.Tuple[ + typing.Union[ + None, + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ArrayItemsNullableTupleInput](#arrayitemsnullabletupleinput), [ArrayItemsNullableTuple](#arrayitemsnullabletuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | None, schemas.immutabledict | This method is used under the hood when instance[0] is called + +# Items3 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | + +# ObjectNullableProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, [ObjectNullablePropDictInput](#objectnullablepropdictinput), [ObjectNullablePropDict](#objectnullablepropdict) | None, [ObjectNullablePropDict](#objectnullablepropdict) | + +## ObjectNullablePropDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | - -# properties ObjectItemsNullable - -## Type Info -Input Type | Accessed Type | Description | Notes +**any_string_name** | dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] + +## ObjectNullablePropDict +``` +base class: schemas.immutabledict[str, schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | None, [ObjectNullablePropDictInput](#objectnullablepropdictinput), [ObjectNullablePropDict](#objectnullablepropdict) | None, [ObjectNullablePropDict](#objectnullablepropdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, schemas.Unset | provides type safety for additional properties + +# AdditionalProperties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# ObjectAndItemsNullableProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, [ObjectAndItemsNullablePropDictInput](#objectanditemsnullablepropdictinput), [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict) | None, [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict) | + +## ObjectAndItemsNullablePropDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | None, dict, schemas.immutabledict | [AdditionalProperties3](#properties-objectitemsnullable-additionalproperties3) | any string name can be used but the value must be the correct type | [optional] - -# properties ObjectItemsNullable AdditionalProperties3 - -## Type Info -Input Type | Accessed Type | Description | Notes +**any_string_name** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] + +## ObjectAndItemsNullablePropDict +``` +base class: schemas.immutabledict[str, typing.Union[ + None, + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], +]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | None, [ObjectAndItemsNullablePropDictInput](#objectanditemsnullablepropdictinput), [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict) | None, [ObjectAndItemsNullablePropDict](#objectanditemsnullablepropdict) | a constructor +get_additional_property_ | str | None, schemas.immutabledict, schemas.Unset | provides type safety for additional properties + +# AdditionalProperties2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | + +# ObjectItemsNullable +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectItemsNullableDictInput](#objectitemsnullabledictinput), [ObjectItemsNullableDict](#objectitemsnullabledict) | [ObjectItemsNullableDict](#objectitemsnullabledict) | + +## ObjectItemsNullableDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + None, + typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + ], +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | +**any_string_name** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] + +## ObjectItemsNullableDict +``` +base class: schemas.immutabledict[str, typing.Union[ + None, + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], +]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | None, dict, schemas.immutabledict | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectItemsNullableDictInput](#objectitemsnullabledictinput), [ObjectItemsNullableDict](#objectitemsnullabledict) | [ObjectItemsNullableDict](#objectitemsnullabledict) | a constructor +get_additional_property_ | str | None, schemas.immutabledict, schemas.Unset | provides type safety for additional properties + +# AdditionalProperties3 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | # AdditionalProperties4 - -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | | +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/nullable_shape.md b/samples/client/petstore/python/docs/components/schema/nullable_shape.md index 758f7a948bd..d0e4137307a 100644 --- a/samples/client/petstore/python/docs/components/schema/nullable_shape.md +++ b/samples/client/petstore/python/docs/components/schema/nullable_shape.md @@ -1,27 +1,33 @@ +# NullableShape petstore_api.components.schema.nullable_shape -# Schema NullableShape +``` +type: schemas.Schema +``` ## Description The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Triangle**](triangle.md) | [**Triangle**](triangle.md) | [**Triangle**](triangle.md) | | -[**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | | -[_2](#oneof-_2) | None | None | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**triangle.Triangle**](../../components/schema/triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**quadrilateral.Quadrilateral**](../../components/schema/quadrilateral.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_2](#_2) | None | None -# oneof _2 +# _2 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/nullable_string.md b/samples/client/petstore/python/docs/components/schema/nullable_string.md index 684b4487970..7dbad1ff6f1 100644 --- a/samples/client/petstore/python/docs/components/schema/nullable_string.md +++ b/samples/client/petstore/python/docs/components/schema/nullable_string.md @@ -1,9 +1,12 @@ +# NullableString petstore_api.components.schema.nullable_string -# Schema NullableString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, str | None, str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, str | None, str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/number.md b/samples/client/petstore/python/docs/components/schema/number.md index 9d609dd8447..919a8fccd3f 100644 --- a/samples/client/petstore/python/docs/components/schema/number.md +++ b/samples/client/petstore/python/docs/components/schema/number.md @@ -1,9 +1,12 @@ +# Number petstore_api.components.schema.number -# Schema Number +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/number_only.md b/samples/client/petstore/python/docs/components/schema/number_only.md index 7280e6c5257..4bd7f1f51e6 100644 --- a/samples/client/petstore/python/docs/components/schema/number_only.md +++ b/samples/client/petstore/python/docs/components/schema/number_only.md @@ -1,15 +1,43 @@ +# NumberOnly petstore_api.components.schema.number_only -# Schema NumberOnly +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NumberOnlyDictInput](#numberonlydictinput), [NumberOnlyDict](#numberonlydict) | [NumberOnlyDict](#numberonlydict) | + +## NumberOnlyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**JustNumber** | float, int | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## NumberOnlyDict +``` +base class: schemas.immutabledict[str, typing.Union[int, float]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**JustNumber** | float, int, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**JustNumber** | float, int, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**JustNumber** | float, int | float, int | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NumberOnlyDictInput](#numberonlydictinput), [NumberOnlyDict](#numberonlydict) | [NumberOnlyDict](#numberonlydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/number_with_validations.md b/samples/client/petstore/python/docs/components/schema/number_with_validations.md index f3301978196..51080993035 100644 --- a/samples/client/petstore/python/docs/components/schema/number_with_validations.md +++ b/samples/client/petstore/python/docs/components/schema/number_with_validations.md @@ -1,9 +1,12 @@ +# NumberWithValidations petstore_api.components.schema.number_with_validations -# Schema NumberWithValidations +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -float, int | float, int | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/obj_with_required_props.md b/samples/client/petstore/python/docs/components/schema/obj_with_required_props.md index f07c6f48c49..d574d8a8407 100644 --- a/samples/client/petstore/python/docs/components/schema/obj_with_required_props.md +++ b/samples/client/petstore/python/docs/components/schema/obj_with_required_props.md @@ -1,21 +1,49 @@ +# ObjWithRequiredProps petstore_api.components.schema.obj_with_required_props -# Schema ObjWithRequiredProps +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjWithRequiredPropsDictInput](#objwithrequiredpropsdictinput), [ObjWithRequiredPropsDict](#objwithrequiredpropsdict) | [ObjWithRequiredPropsDict](#objwithrequiredpropsdict) | + +## ObjWithRequiredPropsDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**a** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjWithRequiredPropsDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjWithRequiredPropsDictInput](#objwithrequiredpropsdictinput), [ObjWithRequiredPropsDict](#objwithrequiredpropsdict) | [ObjWithRequiredPropsDict](#objwithrequiredpropsdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ObjWithRequiredPropsBase**](obj_with_required_props_base.md) | [**ObjWithRequiredPropsBase**](obj_with_required_props_base.md) | [**ObjWithRequiredPropsBase**](obj_with_required_props_base.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**obj_with_required_props_base.ObjWithRequiredPropsBase**](../../components/schema/obj_with_required_props_base.md) | [obj_with_required_props_base.ObjWithRequiredPropsBaseDictInput](../../components/schema/obj_with_required_props_base.md#objwithrequiredpropsbasedictinput), [obj_with_required_props_base.ObjWithRequiredPropsBaseDict](../../components/schema/obj_with_required_props_base.md#objwithrequiredpropsbasedict) | [obj_with_required_props_base.ObjWithRequiredPropsBaseDict](../../components/schema/obj_with_required_props_base.md#objwithrequiredpropsbasedict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/obj_with_required_props_base.md b/samples/client/petstore/python/docs/components/schema/obj_with_required_props_base.md index 8223d841f54..dfbaa3f7dae 100644 --- a/samples/client/petstore/python/docs/components/schema/obj_with_required_props_base.md +++ b/samples/client/petstore/python/docs/components/schema/obj_with_required_props_base.md @@ -1,15 +1,43 @@ +# ObjWithRequiredPropsBase petstore_api.components.schema.obj_with_required_props_base -# Schema ObjWithRequiredPropsBase +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjWithRequiredPropsBaseDictInput](#objwithrequiredpropsbasedictinput), [ObjWithRequiredPropsBaseDict](#objwithrequiredpropsbasedict) | [ObjWithRequiredPropsBaseDict](#objwithrequiredpropsbasedict) | + +## ObjWithRequiredPropsBaseDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**b** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjWithRequiredPropsBaseDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**b** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**b** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**b** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjWithRequiredPropsBaseDictInput](#objwithrequiredpropsbasedictinput), [ObjWithRequiredPropsBaseDict](#objwithrequiredpropsbasedict) | [ObjWithRequiredPropsBaseDict](#objwithrequiredpropsbasedict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_interface.md b/samples/client/petstore/python/docs/components/schema/object_interface.md index 54b8401f2cf..3025af14e03 100644 --- a/samples/client/petstore/python/docs/components/schema/object_interface.md +++ b/samples/client/petstore/python/docs/components/schema/object_interface.md @@ -1,9 +1,12 @@ +# ObjectInterface petstore_api.components.schema.object_interface -# Schema ObjectInterface +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_model_with_arg_and_args_properties.md b/samples/client/petstore/python/docs/components/schema/object_model_with_arg_and_args_properties.md index 42b18579079..2f491f519ea 100644 --- a/samples/client/petstore/python/docs/components/schema/object_model_with_arg_and_args_properties.md +++ b/samples/client/petstore/python/docs/components/schema/object_model_with_arg_and_args_properties.md @@ -1,16 +1,46 @@ +# ObjectModelWithArgAndArgsProperties petstore_api.components.schema.object_model_with_arg_and_args_properties -# Schema ObjectModelWithArgAndArgsProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectModelWithArgAndArgsPropertiesDictInput](#objectmodelwithargandargspropertiesdictinput), [ObjectModelWithArgAndArgsPropertiesDict](#objectmodelwithargandargspropertiesdict) | [ObjectModelWithArgAndArgsPropertiesDict](#objectmodelwithargandargspropertiesdict) | + +## ObjectModelWithArgAndArgsPropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**arg** | str | | +**args** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectModelWithArgAndArgsPropertiesDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**arg** | str | | +**args** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**arg** | str | | +**args** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**arg** | str | str | | -**args** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectModelWithArgAndArgsPropertiesDictInput](#objectmodelwithargandargspropertiesdictinput), [ObjectModelWithArgAndArgsPropertiesDict](#objectmodelwithargandargspropertiesdict) | [ObjectModelWithArgAndArgsPropertiesDict](#objectmodelwithargandargspropertiesdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_model_with_ref_props.md b/samples/client/petstore/python/docs/components/schema/object_model_with_ref_props.md index 8992e4905f0..2670c57e992 100644 --- a/samples/client/petstore/python/docs/components/schema/object_model_with_ref_props.md +++ b/samples/client/petstore/python/docs/components/schema/object_model_with_ref_props.md @@ -1,20 +1,51 @@ +# ObjectModelWithRefProps petstore_api.components.schema.object_model_with_ref_props -# Schema ObjectModelWithRefProps +``` +type: schemas.Schema +``` ## Description a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectModelWithRefPropsDictInput](#objectmodelwithrefpropsdictinput), [ObjectModelWithRefPropsDict](#objectmodelwithrefpropsdict) | [ObjectModelWithRefPropsDict](#objectmodelwithrefpropsdict) | + +## ObjectModelWithRefPropsDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations | +**myNumber** | float, int | | [optional] +**myString** | str | | [optional] +**myBoolean** | bool | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectModelWithRefPropsDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**myNumber** | float, int, schemas.Unset | | [optional] +**myString** | str, schemas.Unset | | [optional] +**myBoolean** | bool, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**myNumber** | float, int, schemas.Unset | | [optional] +**myString** | str, schemas.Unset | | [optional] +**myBoolean** | bool, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**myNumber** | [**NumberWithValidations**](number_with_validations.md), float, int | [**NumberWithValidations**](number_with_validations.md) | | [optional] -**myString** | [**String**](string.md), str | [**String**](string.md) | | [optional] -**myBoolean** | [**Boolean**](boolean.md), bool | [**Boolean**](boolean.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectModelWithRefPropsDictInput](#objectmodelwithrefpropsdictinput), [ObjectModelWithRefPropsDict](#objectmodelwithrefpropsdict) | [ObjectModelWithRefPropsDict](#objectmodelwithrefpropsdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.md b/samples/client/petstore/python/docs/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.md index 234bbb6c1b7..c2afab1412a 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.md @@ -1,30 +1,63 @@ +# ObjectWithAllOfWithReqTestPropFromUnsetAddProp petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop -# Schema ObjectWithAllOfWithReqTestPropFromUnsetAddProp +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ObjectWithOptionalTestProp**](object_with_optional_test_prop.md) | [**ObjectWithOptionalTestProp**](object_with_optional_test_prop.md) | [**ObjectWithOptionalTestProp**](object_with_optional_test_prop.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**object_with_optional_test_prop.ObjectWithOptionalTestProp**](../../components/schema/object_with_optional_test_prop.md) | [object_with_optional_test_prop.ObjectWithOptionalTestPropDictInput](../../components/schema/object_with_optional_test_prop.md#objectwithoptionaltestpropdictinput), [object_with_optional_test_prop.ObjectWithOptionalTestPropDict](../../components/schema/object_with_optional_test_prop.md#objectwithoptionaltestpropdict) | [object_with_optional_test_prop.ObjectWithOptionalTestPropDict](../../components/schema/object_with_optional_test_prop.md#objectwithoptionaltestpropdict) +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**test** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**name** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +**test** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**name** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**test** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**name** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**test** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**name** | str, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_colliding_properties.md b/samples/client/petstore/python/docs/components/schema/object_with_colliding_properties.md index 9a8b9e5c820..d99cb47b2bc 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_colliding_properties.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_colliding_properties.md @@ -1,33 +1,69 @@ +# ObjectWithCollidingProperties petstore_api.components.schema.object_with_colliding_properties -# Schema ObjectWithCollidingProperties +``` +type: schemas.Schema +``` ## Description component with properties that have name collisions -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithCollidingPropertiesDictInput](#objectwithcollidingpropertiesdictinput), [ObjectWithCollidingPropertiesDict](#objectwithcollidingpropertiesdict) | [ObjectWithCollidingPropertiesDict](#objectwithcollidingpropertiesdict) | + +## ObjectWithCollidingPropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | component with properties that have name collisions | +**someProp** | dict, schemas.immutabledict | | [optional] +**someprop** | dict, schemas.immutabledict | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**someProp** | dict, schemas.immutabledict | [properties.SomeProp](#properties-someprop) | | [optional] -**someprop** | dict, schemas.immutabledict | [properties.Someprop2](#properties-someprop2) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ObjectWithCollidingPropertiesDict +``` +base class: schemas.immutabledict[str, schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]] -# properties SomeProp +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, schemas.Unset | | [optional] +**someprop** | dict, schemas.immutabledict, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type component with properties that have name collisions | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, schemas.Unset | | [optional] +**someprop** | schemas.immutabledict, schemas.Unset | | [optional] -# properties Someprop2 +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithCollidingPropertiesDictInput](#objectwithcollidingpropertiesdictinput), [ObjectWithCollidingPropertiesDict](#objectwithcollidingpropertiesdict) | [ObjectWithCollidingPropertiesDict](#objectwithcollidingpropertiesdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +# SomeProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +# Someprop2 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_decimal_properties.md b/samples/client/petstore/python/docs/components/schema/object_with_decimal_properties.md index f03fed23e2f..6be331b6ff0 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_decimal_properties.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_decimal_properties.md @@ -1,17 +1,48 @@ +# ObjectWithDecimalProperties petstore_api.components.schema.object_with_decimal_properties -# Schema ObjectWithDecimalProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithDecimalPropertiesDictInput](#objectwithdecimalpropertiesdictinput), [ObjectWithDecimalPropertiesDict](#objectwithdecimalpropertiesdict) | [ObjectWithDecimalPropertiesDict](#objectwithdecimalpropertiesdict) | + +## ObjectWithDecimalPropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**length** | str | | [optional] +**width** | str | | [optional] value must be int or float numeric +**cost** | [money.MoneyDictInput](../../components/schema/money.md#moneydictinput), [money.MoneyDict](../../components/schema/money.md#moneydict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectWithDecimalPropertiesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**length** | str, schemas.Unset | | [optional] +**width** | str, schemas.Unset | | [optional] value must be int or float numeric +**cost** | [money.MoneyDictInput](../../components/schema/money.md#moneydictinput), [money.MoneyDict](../../components/schema/money.md#moneydict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**length** | str, schemas.Unset | | [optional] +**width** | str, schemas.Unset | | [optional] value must be int or float numeric +**cost** | [money.MoneyDict](../../components/schema/money.md#moneydict), schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**length** | [**DecimalPayload**](decimal_payload.md), str | [**DecimalPayload**](decimal_payload.md) | | [optional] -**width** | str | str | | [optional] value must be int or float numeric -**cost** | [**Money**](money.md), dict, schemas.immutabledict | [**Money**](money.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithDecimalPropertiesDictInput](#objectwithdecimalpropertiesdictinput), [ObjectWithDecimalPropertiesDict](#objectwithdecimalpropertiesdict) | [ObjectWithDecimalPropertiesDict](#objectwithdecimalpropertiesdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_difficultly_named_props.md b/samples/client/petstore/python/docs/components/schema/object_with_difficultly_named_props.md index d2d138e338c..123eabef296 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_difficultly_named_props.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_difficultly_named_props.md @@ -1,20 +1,43 @@ +# ObjectWithDifficultlyNamedProps petstore_api.components.schema.object_with_difficultly_named_props -# Schema ObjectWithDifficultlyNamedProps +``` +type: schemas.Schema +``` ## Description model with properties that have invalid names for python -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithDifficultlyNamedPropsDictInput](#objectwithdifficultlynamedpropsdictinput), [ObjectWithDifficultlyNamedPropsDict](#objectwithdifficultlynamedpropsdict) | [ObjectWithDifficultlyNamedPropsDict](#objectwithdifficultlynamedpropsdict) | + +## ObjectWithDifficultlyNamedPropsDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | model with properties that have invalid names for python | +**123-list** | str | | +**$special[property.name]** | int | | [optional] value must be a 64 bit integer +**123Number** | int | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectWithDifficultlyNamedPropsDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type model with properties that have invalid names for python | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**123-list** | str | str | | -**$special[property.name]** | int | int | | [optional] value must be a 64 bit integer -**123Number** | int | int | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithDifficultlyNamedPropsDictInput](#objectwithdifficultlynamedpropsdictinput), [ObjectWithDifficultlyNamedPropsDict](#objectwithdifficultlynamedpropsdict) | [ObjectWithDifficultlyNamedPropsDict](#objectwithdifficultlynamedpropsdict) | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["123-list"], instance["$special[property.name]"], instance["123Number"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_inline_composition_property.md b/samples/client/petstore/python/docs/components/schema/object_with_inline_composition_property.md index 8fef56f5032..777af3e0077 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_inline_composition_property.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_inline_composition_property.md @@ -1,35 +1,68 @@ +# ObjectWithInlineCompositionProperty petstore_api.components.schema.object_with_inline_composition_property -# Schema ObjectWithInlineCompositionProperty +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithInlineCompositionPropertyDictInput](#objectwithinlinecompositionpropertydictinput), [ObjectWithInlineCompositionPropertyDict](#objectwithinlinecompositionpropertydict) | [ObjectWithInlineCompositionPropertyDict](#objectwithinlinecompositionpropertydict) | + +## ObjectWithInlineCompositionPropertyDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.SomeProp](#properties-someprop) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +## ObjectWithInlineCompositionPropertyDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -# properties SomeProp +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithInlineCompositionPropertyDictInput](#objectwithinlinecompositionpropertydictinput), [ObjectWithInlineCompositionPropertyDict](#objectwithinlinecompositionpropertydict) | [ObjectWithInlineCompositionPropertyDict](#objectwithinlinecompositionpropertydict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# SomeProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#properties-someprop-allof-_0) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str -# properties SomeProp allof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_invalid_named_refed_properties.md b/samples/client/petstore/python/docs/components/schema/object_with_invalid_named_refed_properties.md index 03719bcaa70..327427aaeaa 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_invalid_named_refed_properties.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_invalid_named_refed_properties.md @@ -1,16 +1,39 @@ +# ObjectWithInvalidNamedRefedProperties petstore_api.components.schema.object_with_invalid_named_refed_properties -# Schema ObjectWithInvalidNamedRefedProperties +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithInvalidNamedRefedPropertiesDictInput](#objectwithinvalidnamedrefedpropertiesdictinput), [ObjectWithInvalidNamedRefedPropertiesDict](#objectwithinvalidnamedrefedpropertiesdict) | [ObjectWithInvalidNamedRefedPropertiesDict](#objectwithinvalidnamedrefedpropertiesdict) | + +## ObjectWithInvalidNamedRefedPropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**!reference** | [array_with_validations_in_items.ArrayWithValidationsInItemsTupleInput](../../components/schema/array_with_validations_in_items.md#arraywithvalidationsinitemstupleinput), [array_with_validations_in_items.ArrayWithValidationsInItemsTuple](../../components/schema/array_with_validations_in_items.md#arraywithvalidationsinitemstuple) | | +**from** | [from_schema.FromSchemaDictInput](../../components/schema/from_schema.md#fromschemadictinput), [from_schema.FromSchemaDict](../../components/schema/from_schema.md#fromschemadict) | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectWithInvalidNamedRefedPropertiesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**!reference** | [**ArrayWithValidationsInItems**](array_with_validations_in_items.md), list, tuple | [**ArrayWithValidationsInItems**](array_with_validations_in_items.md) | | -**from** | [**FromSchema**](from_schema.md), dict, schemas.immutabledict | [**FromSchema**](from_schema.md) | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithInvalidNamedRefedPropertiesDictInput](#objectwithinvalidnamedrefedpropertiesdictinput), [ObjectWithInvalidNamedRefedPropertiesDict](#objectwithinvalidnamedrefedpropertiesdict) | [ObjectWithInvalidNamedRefedPropertiesDict](#objectwithinvalidnamedrefedpropertiesdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["!reference"], instance["from"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_non_intersecting_values.md b/samples/client/petstore/python/docs/components/schema/object_with_non_intersecting_values.md index 0440e8f875e..e703bb7da70 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_non_intersecting_values.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_non_intersecting_values.md @@ -1,15 +1,52 @@ +# ObjectWithNonIntersectingValues petstore_api.components.schema.object_with_non_intersecting_values -# Schema ObjectWithNonIntersectingValues +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithNonIntersectingValuesDictInput](#objectwithnonintersectingvaluesdictinput), [ObjectWithNonIntersectingValuesDict](#objectwithnonintersectingvaluesdict) | [ObjectWithNonIntersectingValuesDict](#objectwithnonintersectingvaluesdict) | + +## ObjectWithNonIntersectingValuesDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + int, + float + ], + str, + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**a** | float, int | | [optional] +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## ObjectWithNonIntersectingValuesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | float, int, schemas.Unset | | [optional] +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | float, int, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | float, int | float, int | | [optional] -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithNonIntersectingValuesDictInput](#objectwithnonintersectingvaluesdictinput), [ObjectWithNonIntersectingValuesDict](#objectwithnonintersectingvaluesdict) | [ObjectWithNonIntersectingValuesDict](#objectwithnonintersectingvaluesdict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_only_optional_props.md b/samples/client/petstore/python/docs/components/schema/object_with_only_optional_props.md index 47e723defb4..17aa6493efa 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_only_optional_props.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_only_optional_props.md @@ -1,15 +1,43 @@ +# ObjectWithOnlyOptionalProps petstore_api.components.schema.object_with_only_optional_props -# Schema ObjectWithOnlyOptionalProps +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithOnlyOptionalPropsDictInput](#objectwithonlyoptionalpropsdictinput), [ObjectWithOnlyOptionalPropsDict](#objectwithonlyoptionalpropsdict) | [ObjectWithOnlyOptionalPropsDict](#objectwithonlyoptionalpropsdict) | + +## ObjectWithOnlyOptionalPropsDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**a** | str | | [optional] +**b** | float, int | | [optional] + +## ObjectWithOnlyOptionalPropsDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] +**b** | float, int, schemas.Unset | | [optional] + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] +**b** | float, int, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | str | str | | [optional] -**b** | float, int | float, int | | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithOnlyOptionalPropsDictInput](#objectwithonlyoptionalpropsdictinput), [ObjectWithOnlyOptionalPropsDict](#objectwithonlyoptionalpropsdict) | [ObjectWithOnlyOptionalPropsDict](#objectwithonlyoptionalpropsdict) | a constructor [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_optional_test_prop.md b/samples/client/petstore/python/docs/components/schema/object_with_optional_test_prop.md index ea04c0b4a53..bfc92163bce 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_optional_test_prop.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_optional_test_prop.md @@ -1,15 +1,43 @@ +# ObjectWithOptionalTestProp petstore_api.components.schema.object_with_optional_test_prop -# Schema ObjectWithOptionalTestProp +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ObjectWithOptionalTestPropDictInput](#objectwithoptionaltestpropdictinput), [ObjectWithOptionalTestPropDict](#objectwithoptionaltestpropdict) | [ObjectWithOptionalTestPropDict](#objectwithoptionaltestpropdict) | + +## ObjectWithOptionalTestPropDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**test** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ObjectWithOptionalTestPropDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**test** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**test** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**test** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ObjectWithOptionalTestPropDictInput](#objectwithoptionaltestpropdictinput), [ObjectWithOptionalTestPropDict](#objectwithoptionaltestpropdict) | [ObjectWithOptionalTestPropDict](#objectwithoptionaltestpropdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/object_with_validations.md b/samples/client/petstore/python/docs/components/schema/object_with_validations.md index b4cf23a02f2..0086f84666a 100644 --- a/samples/client/petstore/python/docs/components/schema/object_with_validations.md +++ b/samples/client/petstore/python/docs/components/schema/object_with_validations.md @@ -1,9 +1,12 @@ +# ObjectWithValidations petstore_api.components.schema.object_with_validations -# Schema ObjectWithValidations +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/order.md b/samples/client/petstore/python/docs/components/schema/order.md index 41d6a195b7b..4d637510a70 100644 --- a/samples/client/petstore/python/docs/components/schema/order.md +++ b/samples/client/petstore/python/docs/components/schema/order.md @@ -1,20 +1,58 @@ +# Order petstore_api.components.schema.order -# Schema Order +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[OrderDictInput](#orderdictinput), [OrderDict](#orderdict) | [OrderDict](#orderdict) | + +## OrderDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**id** | int | | [optional] value must be a 64 bit integer +**petId** | int | | [optional] value must be a 64 bit integer +**quantity** | int | | [optional] value must be a 32 bit integer +**shipDate** | str, datetime.datetime | | [optional] value must conform to RFC-3339 date-time +**status** | typing.Literal["placed", "approved", "delivered"] | Order Status | [optional] must be one of ["placed", "approved", "delivered"] +**complete** | bool | | [optional] if omitted the server will use the default value of false +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## OrderDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**petId** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**quantity** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**shipDate** | str, datetime.datetime, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**status** | typing.Literal["placed", "approved", "delivered"], schemas.Unset | Order Status | [optional] must be one of ["placed", "approved", "delivered"] +**complete** | bool, schemas.Unset | | [optional] if omitted the server will use the default value of false +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**petId** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**quantity** | int, schemas.Unset | | [optional] value must be a 32 bit integer +**shipDate** | str, schemas.Unset | | [optional] value must conform to RFC-3339 date-time +**status** | typing.Literal["placed", "approved", "delivered"], schemas.Unset | Order Status | [optional] must be one of ["placed", "approved", "delivered"] +**complete** | bool, schemas.Unset | | [optional] if omitted the server will use the default value of false -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | int | int | | [optional] value must be a 64 bit integer -**petId** | int | int | | [optional] value must be a 64 bit integer -**quantity** | int | int | | [optional] value must be a 32 bit integer -**shipDate** | str, datetime.datetime | str | | [optional] value must conform to RFC-3339 date-time -**status** | str | str | Order Status | [optional] must be one of ["placed", "approved", "delivered"] -**complete** | bool | bool | | [optional] if omitted the server will use the default value of false -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [OrderDictInput](#orderdictinput), [OrderDict](#orderdict) | [OrderDict](#orderdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/parent_pet.md b/samples/client/petstore/python/docs/components/schema/parent_pet.md index 9d13a9c5ce7..433e417c783 100644 --- a/samples/client/petstore/python/docs/components/schema/parent_pet.md +++ b/samples/client/petstore/python/docs/components/schema/parent_pet.md @@ -1,15 +1,18 @@ +# ParentPet petstore_api.components.schema.parent_pet -# Schema ParentPet +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**GrandparentAnimal**](grandparent_animal.md) | [**GrandparentAnimal**](grandparent_animal.md) | [**GrandparentAnimal**](grandparent_animal.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**grandparent_animal.GrandparentAnimal**](../../components/schema/grandparent_animal.md) | [grandparent_animal.GrandparentAnimalDictInput](../../components/schema/grandparent_animal.md#grandparentanimaldictinput), [grandparent_animal.GrandparentAnimalDict](../../components/schema/grandparent_animal.md#grandparentanimaldict) | [grandparent_animal.GrandparentAnimalDict](../../components/schema/grandparent_animal.md#grandparentanimaldict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/pet.md b/samples/client/petstore/python/docs/components/schema/pet.md index 3e4af8369e9..b97d3d437e0 100644 --- a/samples/client/petstore/python/docs/components/schema/pet.md +++ b/samples/client/petstore/python/docs/components/schema/pet.md @@ -1,47 +1,155 @@ +# Pet petstore_api.components.schema.pet -# Schema Pet +``` +type: schemas.Schema +``` ## Description Pet object that needs to be added to the store -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | Pet object that needs to be added to the store | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str | str | | -**photoUrls** | list, tuple | [properties.PhotoUrls](#properties-photourls) | | -**id** | int | int | | [optional] value must be a 64 bit integer -**category** | [**Category**](category.md), dict, schemas.immutabledict | [**Category**](category.md) | | [optional] -**tags** | list, tuple | [properties.Tags](#properties-tags) | | [optional] -**status** | str | str | pet status in the store | [optional] must be one of ["available", "pending", "sold"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] - -# properties PhotoUrls - -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PetDictInput](#petdictinput), [PetDict](#petdict) | [PetDict](#petdict) | + +## PetDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -list, tuple | tuple | | +**name** | str | | +**photoUrls** | [PhotoUrlsTupleInput](#photourlstupleinput), [PhotoUrlsTuple](#photourlstuple) | | +**id** | int | | [optional] value must be a 64 bit integer +**category** | [category.CategoryDictInput](../../components/schema/category.md#categorydictinput), [category.CategoryDict](../../components/schema/category.md#categorydict) | | [optional] +**tags** | [TagsTupleInput](#tagstupleinput), [TagsTuple](#tagstuple) | | [optional] +**status** | typing.Literal["available", "pending", "sold"] | pet status in the store | [optional] must be one of ["available", "pending", "sold"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | +## PetDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -# properties Tags +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str | | +**photoUrls** | [PhotoUrlsTupleInput](#photourlstupleinput), [PhotoUrlsTuple](#photourlstuple) | | +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**category** | [category.CategoryDictInput](../../components/schema/category.md#categorydictinput), [category.CategoryDict](../../components/schema/category.md#categorydict), schemas.Unset | | [optional] +**tags** | [TagsTupleInput](#tagstupleinput), [TagsTuple](#tagstuple), schemas.Unset | | [optional] +**status** | typing.Literal["available", "pending", "sold"], schemas.Unset | pet status in the store | [optional] must be one of ["available", "pending", "sold"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type Pet object that needs to be added to the store | [optional] typed value is accessed with the get_additional_property_ method -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str | | +**photoUrls** | [PhotoUrlsTuple](#photourlstuple) | | +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**category** | [category.CategoryDict](../../components/schema/category.md#categorydict), schemas.Unset | | [optional] +**tags** | [TagsTuple](#tagstuple), schemas.Unset | | [optional] +**status** | typing.Literal["available", "pending", "sold"], schemas.Unset | pet status in the store | [optional] must be one of ["available", "pending", "sold"] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PetDictInput](#petdictinput), [PetDict](#petdict) | [PetDict](#petdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# PhotoUrls +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PhotoUrlsTupleInput](#photourlstupleinput), [PhotoUrlsTuple](#photourlstuple) | [PhotoUrlsTuple](#photourlstuple) | + +## PhotoUrlsTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## PhotoUrlsTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [PhotoUrlsTupleInput](#photourlstupleinput), [PhotoUrlsTuple](#photourlstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called + +# Tags +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[TagsTupleInput](#tagstupleinput), [TagsTuple](#tagstuple) | [TagsTuple](#tagstuple) | + +## TagsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + tag.TagDictInput, + tag.TagDict, + ], + ], + typing.Tuple[ + typing.Union[ + tag.TagDictInput, + tag.TagDict, + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[tag.TagDictInput](../../components/schema/tag.md#tagdictinput), [tag.TagDict](../../components/schema/tag.md#tagdict) | | + +## TagsTuple +``` +base class: typing.Tuple[ + tag.TagDict, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [TagsTupleInput](#tagstupleinput), [TagsTuple](#tagstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Tag**](tag.md) | [**Tag**](tag.md) | [**Tag**](tag.md) | | +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [tag.TagDict](../../components/schema/tag.md#tagdict) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/pig.md b/samples/client/petstore/python/docs/components/schema/pig.md index bade9bf1c40..303ddeb6e28 100644 --- a/samples/client/petstore/python/docs/components/schema/pig.md +++ b/samples/client/petstore/python/docs/components/schema/pig.md @@ -1,16 +1,19 @@ +# Pig petstore_api.components.schema.pig -# Schema Pig +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**BasquePig**](basque_pig.md) | [**BasquePig**](basque_pig.md) | [**BasquePig**](basque_pig.md) | | -[**DanishPig**](danish_pig.md) | [**DanishPig**](danish_pig.md) | [**DanishPig**](danish_pig.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**basque_pig.BasquePig**](../../components/schema/basque_pig.md) | [basque_pig.BasquePigDictInput](../../components/schema/basque_pig.md#basquepigdictinput), [basque_pig.BasquePigDict](../../components/schema/basque_pig.md#basquepigdict) | [basque_pig.BasquePigDict](../../components/schema/basque_pig.md#basquepigdict) +[**danish_pig.DanishPig**](../../components/schema/danish_pig.md) | [danish_pig.DanishPigDictInput](../../components/schema/danish_pig.md#danishpigdictinput), [danish_pig.DanishPigDict](../../components/schema/danish_pig.md#danishpigdict) | [danish_pig.DanishPigDict](../../components/schema/danish_pig.md#danishpigdict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/player.md b/samples/client/petstore/python/docs/components/schema/player.md index badefea1efe..e6739408119 100644 --- a/samples/client/petstore/python/docs/components/schema/player.md +++ b/samples/client/petstore/python/docs/components/schema/player.md @@ -1,19 +1,48 @@ +# Player petstore_api.components.schema.player -# Schema Player +``` +type: schemas.Schema +``` ## Description 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 -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PlayerDictInput](#playerdictinput), [PlayerDict](#playerdict) | [PlayerDict](#playerdict) | + +## PlayerDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | 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** | str | | [optional] +**enemyPlayer** | [PlayerDictInput](#playerdictinput), [PlayerDict](#playerdict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## PlayerDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | | [optional] +**enemyPlayer** | [PlayerDictInput](#playerdictinput), [PlayerDict](#playerdict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type 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 | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | | [optional] +**enemyPlayer** | [PlayerDict](#playerdict), schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str | str | | [optional] -**enemyPlayer** | [**Player**](#top), dict, schemas.immutabledict | [**Player**](#top) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PlayerDictInput](#playerdictinput), [PlayerDict](#playerdict) | [PlayerDict](#playerdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/quadrilateral.md b/samples/client/petstore/python/docs/components/schema/quadrilateral.md index c25709f37eb..1fdc04ea503 100644 --- a/samples/client/petstore/python/docs/components/schema/quadrilateral.md +++ b/samples/client/petstore/python/docs/components/schema/quadrilateral.md @@ -1,16 +1,19 @@ +# Quadrilateral petstore_api.components.schema.quadrilateral -# Schema Quadrilateral +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**SimpleQuadrilateral**](simple_quadrilateral.md) | [**SimpleQuadrilateral**](simple_quadrilateral.md) | [**SimpleQuadrilateral**](simple_quadrilateral.md) | | -[**ComplexQuadrilateral**](complex_quadrilateral.md) | [**ComplexQuadrilateral**](complex_quadrilateral.md) | [**ComplexQuadrilateral**](complex_quadrilateral.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**simple_quadrilateral.SimpleQuadrilateral**](../../components/schema/simple_quadrilateral.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**complex_quadrilateral.ComplexQuadrilateral**](../../components/schema/complex_quadrilateral.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/quadrilateral_interface.md b/samples/client/petstore/python/docs/components/schema/quadrilateral_interface.md index e4f224b9634..e6ed217ff22 100644 --- a/samples/client/petstore/python/docs/components/schema/quadrilateral_interface.md +++ b/samples/client/petstore/python/docs/components/schema/quadrilateral_interface.md @@ -1,16 +1,46 @@ +# QuadrilateralInterface petstore_api.components.schema.quadrilateral_interface -# Schema QuadrilateralInterface +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QuadrilateralInterfaceDictInput](#quadrilateralinterfacedictinput), [QuadrilateralInterfaceDict](#quadrilateralinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [QuadrilateralInterfaceDict](#quadrilateralinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## QuadrilateralInterfaceDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**quadrilateralType** | str | | +**shapeType** | typing.Literal["Quadrilateral"] | | must be one of ["Quadrilateral"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## QuadrilateralInterfaceDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**quadrilateralType** | str | | +**shapeType** | typing.Literal["Quadrilateral"] | | must be one of ["Quadrilateral"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**quadrilateralType** | str | | +**shapeType** | typing.Literal["Quadrilateral"] | | must be one of ["Quadrilateral"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**quadrilateralType** | str | str | | -**shapeType** | str | str | | must be one of ["Quadrilateral"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QuadrilateralInterfaceDictInput](#quadrilateralinterfacedictinput), [QuadrilateralInterfaceDict](#quadrilateralinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [QuadrilateralInterfaceDict](#quadrilateralinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/read_only_first.md b/samples/client/petstore/python/docs/components/schema/read_only_first.md index b40c816ddd2..31c3a98c57b 100644 --- a/samples/client/petstore/python/docs/components/schema/read_only_first.md +++ b/samples/client/petstore/python/docs/components/schema/read_only_first.md @@ -1,16 +1,46 @@ +# ReadOnlyFirst petstore_api.components.schema.read_only_first -# Schema ReadOnlyFirst +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ReadOnlyFirstDictInput](#readonlyfirstdictinput), [ReadOnlyFirstDict](#readonlyfirstdict) | [ReadOnlyFirstDict](#readonlyfirstdict) | + +## ReadOnlyFirstDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**bar** | str | | [optional] +**baz** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ReadOnlyFirstDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] +**baz** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**bar** | str, schemas.Unset | | [optional] +**baz** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**bar** | str | str | | [optional] -**baz** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ReadOnlyFirstDictInput](#readonlyfirstdictinput), [ReadOnlyFirstDict](#readonlyfirstdict) | [ReadOnlyFirstDict](#readonlyfirstdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/ref_pet.md b/samples/client/petstore/python/docs/components/schema/ref_pet.md index f7e368f4b5c..5f1a548c787 100644 --- a/samples/client/petstore/python/docs/components/schema/ref_pet.md +++ b/samples/client/petstore/python/docs/components/schema/ref_pet.md @@ -1,9 +1,12 @@ +# RefPet petstore_api.components.schema.ref_pet -# Schema RefPet +``` +type: schemas.Schema +``` -## Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Pet](pet.md) | dict, schemas.immutabledict | schemas.immutabledict | +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pet.Pet**](../../components/schema/pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/req_props_from_explicit_add_props.md b/samples/client/petstore/python/docs/components/schema/req_props_from_explicit_add_props.md index cb9ab2449fe..d335c5ef030 100644 --- a/samples/client/petstore/python/docs/components/schema/req_props_from_explicit_add_props.md +++ b/samples/client/petstore/python/docs/components/schema/req_props_from_explicit_add_props.md @@ -1,16 +1,52 @@ +# ReqPropsFromExplicitAddProps petstore_api.components.schema.req_props_from_explicit_add_props -# Schema ReqPropsFromExplicitAddProps +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ReqPropsFromExplicitAddPropsDictInput](#reqpropsfromexplicitaddpropsdictinput), [ReqPropsFromExplicitAddPropsDict](#reqpropsfromexplicitaddpropsdict) | [ReqPropsFromExplicitAddPropsDict](#reqpropsfromexplicitaddpropsdict) | + +## ReqPropsFromExplicitAddPropsDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + str, + str, + str, + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**invalid-name** | str | | +**validName** | str | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## ReqPropsFromExplicitAddPropsDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**validName** | str | | +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**validName** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**invalid-name** | str | str | | -**validName** | str | str | | -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ReqPropsFromExplicitAddPropsDictInput](#reqpropsfromexplicitaddpropsdictinput), [ReqPropsFromExplicitAddPropsDict](#reqpropsfromexplicitaddpropsdict) | [ReqPropsFromExplicitAddPropsDict](#reqpropsfromexplicitaddpropsdict) | a constructor +__getitem__ | str | str | This model has invalid python names so this method is used under the hood when you access instance["invalid-name"], +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/req_props_from_true_add_props.md b/samples/client/petstore/python/docs/components/schema/req_props_from_true_add_props.md index 7a8a33dadf3..48d1fd4519b 100644 --- a/samples/client/petstore/python/docs/components/schema/req_props_from_true_add_props.md +++ b/samples/client/petstore/python/docs/components/schema/req_props_from_true_add_props.md @@ -1,16 +1,45 @@ +# ReqPropsFromTrueAddProps petstore_api.components.schema.req_props_from_true_add_props -# Schema ReqPropsFromTrueAddProps +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ReqPropsFromTrueAddPropsDictInput](#reqpropsfromtrueaddpropsdictinput), [ReqPropsFromTrueAddPropsDict](#reqpropsfromtrueaddpropsdict) | [ReqPropsFromTrueAddPropsDict](#reqpropsfromtrueaddpropsdict) | + +## ReqPropsFromTrueAddPropsDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**invalid-name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## ReqPropsFromTrueAddPropsDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**validName** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**invalid-name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ReqPropsFromTrueAddPropsDictInput](#reqpropsfromtrueaddpropsdictinput), [ReqPropsFromTrueAddPropsDict](#reqpropsfromtrueaddpropsdict) | [ReqPropsFromTrueAddPropsDict](#reqpropsfromtrueaddpropsdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["invalid-name"], +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/req_props_from_unset_add_props.md b/samples/client/petstore/python/docs/components/schema/req_props_from_unset_add_props.md index ad303675b59..b953c4024b2 100644 --- a/samples/client/petstore/python/docs/components/schema/req_props_from_unset_add_props.md +++ b/samples/client/petstore/python/docs/components/schema/req_props_from_unset_add_props.md @@ -1,16 +1,44 @@ +# ReqPropsFromUnsetAddProps petstore_api.components.schema.req_props_from_unset_add_props -# Schema ReqPropsFromUnsetAddProps +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ReqPropsFromUnsetAddPropsDictInput](#reqpropsfromunsetaddpropsdictinput), [ReqPropsFromUnsetAddPropsDict](#reqpropsfromunsetaddpropsdict) | [ReqPropsFromUnsetAddPropsDict](#reqpropsfromunsetaddpropsdict) | + +## ReqPropsFromUnsetAddPropsDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**invalid-name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## ReqPropsFromUnsetAddPropsDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**validName** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**invalid-name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**validName** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ReqPropsFromUnsetAddPropsDictInput](#reqpropsfromunsetaddpropsdictinput), [ReqPropsFromUnsetAddPropsDict](#reqpropsfromunsetaddpropsdict) | [ReqPropsFromUnsetAddPropsDict](#reqpropsfromunsetaddpropsdict) | a constructor +__getitem__ | str | schemas.OUTPUT_BASE_TYPES | This model has invalid python names so this method is used under the hood when you access instance["invalid-name"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/scalene_triangle.md b/samples/client/petstore/python/docs/components/schema/scalene_triangle.md index 94cf235b09b..d027187435d 100644 --- a/samples/client/petstore/python/docs/components/schema/scalene_triangle.md +++ b/samples/client/petstore/python/docs/components/schema/scalene_triangle.md @@ -1,29 +1,60 @@ +# ScaleneTriangle petstore_api.components.schema.scalene_triangle -# Schema ScaleneTriangle +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | [**TriangleInterface**](triangle_interface.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**triangle_interface.TriangleInterface**](../../components/schema/triangle_interface.md) | [triangle_interface.TriangleInterfaceDictInput](../../components/schema/triangle_interface.md#triangleinterfacedictinput), [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [triangle_interface.TriangleInterfaceDict](../../components/schema/triangle_interface.md#triangleinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**triangleType** | typing.Literal["ScaleneTriangle"] | | [optional] must be one of ["ScaleneTriangle"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["ScaleneTriangle"], schemas.Unset | | [optional] must be one of ["ScaleneTriangle"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**triangleType** | typing.Literal["ScaleneTriangle"], schemas.Unset | | [optional] must be one of ["ScaleneTriangle"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**triangleType** | str | str | | [optional] must be one of ["ScaleneTriangle"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/self_referencing_array_model.md b/samples/client/petstore/python/docs/components/schema/self_referencing_array_model.md index 83b055693ba..e7a99fc1bbe 100644 --- a/samples/client/petstore/python/docs/components/schema/self_referencing_array_model.md +++ b/samples/client/petstore/python/docs/components/schema/self_referencing_array_model.md @@ -1,14 +1,52 @@ +# SelfReferencingArrayModel petstore_api.components.schema.self_referencing_array_model -# Schema SelfReferencingArrayModel +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SelfReferencingArrayModelTupleInput](#selfreferencingarraymodeltupleinput), [SelfReferencingArrayModelTuple](#selfreferencingarraymodeltuple) | [SelfReferencingArrayModelTuple](#selfreferencingarraymodeltuple) | -## List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**SelfReferencingArrayModel**](#top) | [**SelfReferencingArrayModel**](#top) | [**SelfReferencingArrayModel**](#top) | | +## SelfReferencingArrayModelTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + 'SelfReferencingArrayModelTupleInput', + SelfReferencingArrayModelTuple + ], + ], + typing.Tuple[ + typing.Union[ + 'SelfReferencingArrayModelTupleInput', + SelfReferencingArrayModelTuple + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +[SelfReferencingArrayModelTupleInput](#selfreferencingarraymodeltupleinput), [SelfReferencingArrayModelTuple](#selfreferencingarraymodeltuple) | | + +## SelfReferencingArrayModelTuple +``` +base class: typing.Tuple[ + 'SelfReferencingArrayModelTuple', + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SelfReferencingArrayModelTupleInput](#selfreferencingarraymodeltupleinput), [SelfReferencingArrayModelTuple](#selfreferencingarraymodeltuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | [SelfReferencingArrayModelTuple](#selfreferencingarraymodeltuple) | This method is used under the hood when instance[0] is called [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/self_referencing_object_model.md b/samples/client/petstore/python/docs/components/schema/self_referencing_object_model.md index db0c121f99f..bdd112449c0 100644 --- a/samples/client/petstore/python/docs/components/schema/self_referencing_object_model.md +++ b/samples/client/petstore/python/docs/components/schema/self_referencing_object_model.md @@ -1,15 +1,55 @@ +# SelfReferencingObjectModel petstore_api.components.schema.self_referencing_object_model -# Schema SelfReferencingObjectModel +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | + +## SelfReferencingObjectModelDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + 'SelfReferencingObjectModelDictInput', + SelfReferencingObjectModelDict, + ], + typing.Union[ + 'SelfReferencingObjectModelDictInput', + SelfReferencingObjectModelDict, + ], + ] +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**selfRef** | [SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | | [optional] +**any_string_name** | [SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | any string name can be used but the value must be the correct type | [optional] + +## SelfReferencingObjectModelDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**selfRef** | [SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict), schemas.Unset | | [optional] +**kwargs** | [SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**selfRef** | [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict), schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**selfRef** | [**SelfReferencingObjectModel**](#top), dict, schemas.immutabledict | [**SelfReferencingObjectModel**](#top) | | [optional] -**any_string_name** | [**SelfReferencingObjectModel**](#top), dict, schemas.immutabledict | [**SelfReferencingObjectModel**](#top) | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SelfReferencingObjectModelDictInput](#selfreferencingobjectmodeldictinput), [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict) | a constructor +get_additional_property_ | str | [SelfReferencingObjectModelDict](#selfreferencingobjectmodeldict), schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/shape.md b/samples/client/petstore/python/docs/components/schema/shape.md index 5cb95259153..9abc71808a0 100644 --- a/samples/client/petstore/python/docs/components/schema/shape.md +++ b/samples/client/petstore/python/docs/components/schema/shape.md @@ -1,16 +1,19 @@ +# Shape petstore_api.components.schema.shape -# Schema Shape +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Triangle**](triangle.md) | [**Triangle**](triangle.md) | [**Triangle**](triangle.md) | | -[**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**triangle.Triangle**](../../components/schema/triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**quadrilateral.Quadrilateral**](../../components/schema/quadrilateral.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/shape_or_null.md b/samples/client/petstore/python/docs/components/schema/shape_or_null.md index b347b3ada11..2cffe975a62 100644 --- a/samples/client/petstore/python/docs/components/schema/shape_or_null.md +++ b/samples/client/petstore/python/docs/components/schema/shape_or_null.md @@ -1,27 +1,33 @@ +# ShapeOrNull petstore_api.components.schema.shape_or_null -# Schema ShapeOrNull +``` +type: schemas.Schema +``` ## Description The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#oneof-_0) | None | None | | -[**Triangle**](triangle.md) | [**Triangle**](triangle.md) | [**Triangle**](triangle.md) | | -[**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | [**Quadrilateral**](quadrilateral.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | None | None +[**triangle.Triangle**](../../components/schema/triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**quadrilateral.Quadrilateral**](../../components/schema/quadrilateral.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO -# oneof _0 +# _0 +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/simple_quadrilateral.md b/samples/client/petstore/python/docs/components/schema/simple_quadrilateral.md index 432157495a5..c201a94f665 100644 --- a/samples/client/petstore/python/docs/components/schema/simple_quadrilateral.md +++ b/samples/client/petstore/python/docs/components/schema/simple_quadrilateral.md @@ -1,29 +1,60 @@ +# SimpleQuadrilateral petstore_api.components.schema.simple_quadrilateral -# Schema SimpleQuadrilateral +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**QuadrilateralInterface**](quadrilateral_interface.md) | [**QuadrilateralInterface**](quadrilateral_interface.md) | [**QuadrilateralInterface**](quadrilateral_interface.md) | | -[_1](#allof-_1) | dict, schemas.immutabledict | schemas.immutabledict | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**quadrilateral_interface.QuadrilateralInterface**](../../components/schema/quadrilateral_interface.md) | [quadrilateral_interface.QuadrilateralInterfaceDictInput](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedictinput), [quadrilateral_interface.QuadrilateralInterfaceDict](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [quadrilateral_interface.QuadrilateralInterfaceDict](../../components/schema/quadrilateral_interface.md#quadrilateralinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) + +# _1 +``` +type: schemas.Schema +``` -# allof _1 +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | -## Type Info -Input Type | Accessed Type | Description | Notes +## _1DictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**quadrilateralType** | typing.Literal["SimpleQuadrilateral"] | | [optional] must be one of ["SimpleQuadrilateral"] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## _1Dict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**quadrilateralType** | typing.Literal["SimpleQuadrilateral"], schemas.Unset | | [optional] must be one of ["SimpleQuadrilateral"] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**quadrilateralType** | typing.Literal["SimpleQuadrilateral"], schemas.Unset | | [optional] must be one of ["SimpleQuadrilateral"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**quadrilateralType** | str | str | | [optional] must be one of ["SimpleQuadrilateral"] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [_1DictInput](#_1dictinput), [_1Dict](#_1dict) | [_1Dict](#_1dict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/some_object.md b/samples/client/petstore/python/docs/components/schema/some_object.md index 809ceb0cbea..f1af08d0620 100644 --- a/samples/client/petstore/python/docs/components/schema/some_object.md +++ b/samples/client/petstore/python/docs/components/schema/some_object.md @@ -1,15 +1,18 @@ +# SomeObject petstore_api.components.schema.some_object -# Schema SomeObject +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ObjectInterface**](object_interface.md) | [**ObjectInterface**](object_interface.md) | [**ObjectInterface**](object_interface.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**object_interface.ObjectInterface**](../../components/schema/object_interface.md) | dict, schemas.immutabledict | schemas.immutabledict [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/special_model_name.md b/samples/client/petstore/python/docs/components/schema/special_model_name.md index 22bbdef8c93..531366c5ec6 100644 --- a/samples/client/petstore/python/docs/components/schema/special_model_name.md +++ b/samples/client/petstore/python/docs/components/schema/special_model_name.md @@ -1,18 +1,46 @@ +# SpecialModelName petstore_api.components.schema.special_model_name -# Schema SpecialModelName +``` +type: schemas.Schema +``` ## Description model with an invalid class name for python -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SpecialModelNameDictInput](#specialmodelnamedictinput), [SpecialModelNameDict](#specialmodelnamedict) | [SpecialModelNameDict](#specialmodelnamedict) | + +## SpecialModelNameDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | model with an invalid class name for python | +**a** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SpecialModelNameDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type model with an invalid class name for python | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**a** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SpecialModelNameDictInput](#specialmodelnamedictinput), [SpecialModelNameDict](#specialmodelnamedict) | [SpecialModelNameDict](#specialmodelnamedict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/string.md b/samples/client/petstore/python/docs/components/schema/string.md index 39b9d4f0fa8..83e463b6e03 100644 --- a/samples/client/petstore/python/docs/components/schema/string.md +++ b/samples/client/petstore/python/docs/components/schema/string.md @@ -1,9 +1,12 @@ +# String petstore_api.components.schema.string -# Schema String +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/string_boolean_map.md b/samples/client/petstore/python/docs/components/schema/string_boolean_map.md index 0e5eae114ca..babe9df01bb 100644 --- a/samples/client/petstore/python/docs/components/schema/string_boolean_map.md +++ b/samples/client/petstore/python/docs/components/schema/string_boolean_map.md @@ -1,14 +1,39 @@ +# StringBooleanMap petstore_api.components.schema.string_boolean_map -# Schema StringBooleanMap +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[StringBooleanMapDictInput](#stringbooleanmapdictinput), [StringBooleanMapDict](#stringbooleanmapdict) | [StringBooleanMapDict](#stringbooleanmapdict) | + +## StringBooleanMapDictInput +``` +type: typing.Mapping[ + str, + bool, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | bool | any string name can be used but the value must be the correct type | [optional] + +## StringBooleanMapDict +``` +base class: schemas.immutabledict[str, bool] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | bool | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | bool | bool | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [StringBooleanMapDictInput](#stringbooleanmapdictinput), [StringBooleanMapDict](#stringbooleanmapdict) | [StringBooleanMapDict](#stringbooleanmapdict) | a constructor +get_additional_property_ | str | bool, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/string_enum.md b/samples/client/petstore/python/docs/components/schema/string_enum.md index cee79e1c488..8fdf85e41ae 100644 --- a/samples/client/petstore/python/docs/components/schema/string_enum.md +++ b/samples/client/petstore/python/docs/components/schema/string_enum.md @@ -1,9 +1,12 @@ +# StringEnum petstore_api.components.schema.string_enum -# Schema StringEnum +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, str | None, str | | must be one of ["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline", None] +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | must be one of ["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline", None] [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/string_enum_with_default_value.md b/samples/client/petstore/python/docs/components/schema/string_enum_with_default_value.md index 537504fc9a7..3c66d6c3f37 100644 --- a/samples/client/petstore/python/docs/components/schema/string_enum_with_default_value.md +++ b/samples/client/petstore/python/docs/components/schema/string_enum_with_default_value.md @@ -1,9 +1,12 @@ +# StringEnumWithDefaultValue petstore_api.components.schema.string_enum_with_default_value -# Schema StringEnumWithDefaultValue +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["placed", "approved", "delivered"] if omitted the server will use the default value of placed +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["placed", "approved", "delivered"] | typing.Literal["placed", "approved", "delivered"] | must be one of ["placed", "approved", "delivered"] if omitted the server will use the default value of placed [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/string_with_validation.md b/samples/client/petstore/python/docs/components/schema/string_with_validation.md index d1c961e438a..3b33aa99049 100644 --- a/samples/client/petstore/python/docs/components/schema/string_with_validation.md +++ b/samples/client/petstore/python/docs/components/schema/string_with_validation.md @@ -1,9 +1,12 @@ +# StringWithValidation petstore_api.components.schema.string_with_validation -# Schema StringWithValidation +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/tag.md b/samples/client/petstore/python/docs/components/schema/tag.md index cf56e50c509..c331a7606bc 100644 --- a/samples/client/petstore/python/docs/components/schema/tag.md +++ b/samples/client/petstore/python/docs/components/schema/tag.md @@ -1,16 +1,46 @@ +# Tag petstore_api.components.schema.tag -# Schema Tag +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[TagDictInput](#tagdictinput), [TagDict](#tagdict) | [TagDict](#tagdict) | + +## TagDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**id** | int | | [optional] value must be a 64 bit integer +**name** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## TagDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**name** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**name** | str, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | int | int | | [optional] value must be a 64 bit integer -**name** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [TagDictInput](#tagdictinput), [TagDict](#tagdict) | [TagDict](#tagdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/triangle.md b/samples/client/petstore/python/docs/components/schema/triangle.md index 241870af7b8..066f81543d1 100644 --- a/samples/client/petstore/python/docs/components/schema/triangle.md +++ b/samples/client/petstore/python/docs/components/schema/triangle.md @@ -1,17 +1,20 @@ +# Triangle petstore_api.components.schema.triangle -# Schema Triangle +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**EquilateralTriangle**](equilateral_triangle.md) | [**EquilateralTriangle**](equilateral_triangle.md) | [**EquilateralTriangle**](equilateral_triangle.md) | | -[**IsoscelesTriangle**](isosceles_triangle.md) | [**IsoscelesTriangle**](isosceles_triangle.md) | [**IsoscelesTriangle**](isosceles_triangle.md) | | -[**ScaleneTriangle**](scalene_triangle.md) | [**ScaleneTriangle**](scalene_triangle.md) | [**ScaleneTriangle**](scalene_triangle.md) | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[**equilateral_triangle.EquilateralTriangle**](../../components/schema/equilateral_triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**isosceles_triangle.IsoscelesTriangle**](../../components/schema/isosceles_triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**scalene_triangle.ScaleneTriangle**](../../components/schema/scalene_triangle.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/triangle_interface.md b/samples/client/petstore/python/docs/components/schema/triangle_interface.md index a738c51fc6b..928c8aaceda 100644 --- a/samples/client/petstore/python/docs/components/schema/triangle_interface.md +++ b/samples/client/petstore/python/docs/components/schema/triangle_interface.md @@ -1,16 +1,46 @@ +# TriangleInterface petstore_api.components.schema.triangle_interface -# Schema TriangleInterface +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[TriangleInterfaceDictInput](#triangleinterfacedictinput), [TriangleInterfaceDict](#triangleinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [TriangleInterfaceDict](#triangleinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## TriangleInterfaceDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +**shapeType** | typing.Literal["Triangle"] | | must be one of ["Triangle"] +**triangleType** | str | | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## TriangleInterfaceDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**shapeType** | typing.Literal["Triangle"] | | must be one of ["Triangle"] +**triangleType** | str | | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**shapeType** | typing.Literal["Triangle"] | | must be one of ["Triangle"] +**triangleType** | str | | -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**shapeType** | str | str | | must be one of ["Triangle"] -**triangleType** | str | str | | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [TriangleInterfaceDictInput](#triangleinterfacedictinput), [TriangleInterfaceDict](#triangleinterfacedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [TriangleInterfaceDict](#triangleinterfacedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/user.md b/samples/client/petstore/python/docs/components/schema/user.md index 3f7cd97e00c..1cce61915f5 100644 --- a/samples/client/petstore/python/docs/components/schema/user.md +++ b/samples/client/petstore/python/docs/components/schema/user.md @@ -1,70 +1,134 @@ +# User petstore_api.components.schema.user -# Schema User +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[UserDictInput](#userdictinput), [UserDict](#userdict) | [UserDict](#userdict) | + +## UserDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | int | int | | [optional] value must be a 64 bit integer -**username** | str | str | | [optional] -**firstName** | str | str | | [optional] -**lastName** | str | str | | [optional] -**email** | str | str | | [optional] -**password** | str | str | | [optional] -**phone** | str | str | | [optional] -**userStatus** | int | int | User Status | [optional] value must be a 32 bit integer -**objectWithNoDeclaredProps** | dict, schemas.immutabledict | [properties.ObjectWithNoDeclaredProps](#properties-objectwithnodeclaredprops) | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] -**objectWithNoDeclaredPropsNullable** | None, dict, schemas.immutabledict | [properties.ObjectWithNoDeclaredPropsNullable](#properties-objectwithnodeclaredpropsnullable) | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] -**anyTypeProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] -**anyTypeExceptNullProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.AnyTypeExceptNullProp](#properties-anytypeexceptnullprop) | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional] -**anyTypePropNullable** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] - -# properties ObjectWithNoDeclaredProps +**id** | int | | [optional] value must be a 64 bit integer +**username** | str | | [optional] +**firstName** | str | | [optional] +**lastName** | str | | [optional] +**email** | str | | [optional] +**password** | str | | [optional] +**phone** | str | | [optional] +**userStatus** | int | User Status | [optional] value must be a 32 bit integer +**objectWithNoDeclaredProps** | dict, schemas.immutabledict | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] +**objectWithNoDeclaredPropsNullable** | None, dict, schemas.immutabledict | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] +**anyTypeProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] +**anyTypeExceptNullProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional] +**anyTypePropNullable** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## UserDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**username** | str, schemas.Unset | | [optional] +**firstName** | str, schemas.Unset | | [optional] +**lastName** | str, schemas.Unset | | [optional] +**email** | str, schemas.Unset | | [optional] +**password** | str, schemas.Unset | | [optional] +**phone** | str, schemas.Unset | | [optional] +**userStatus** | int, schemas.Unset | User Status | [optional] value must be a 32 bit integer +**objectWithNoDeclaredProps** | dict, schemas.immutabledict, schemas.Unset | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] +**objectWithNoDeclaredPropsNullable** | None, dict, schemas.immutabledict, schemas.Unset | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] +**anyTypeProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] +**anyTypeExceptNullProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional] +**anyTypePropNullable** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**id** | int, schemas.Unset | | [optional] value must be a 64 bit integer +**username** | str, schemas.Unset | | [optional] +**firstName** | str, schemas.Unset | | [optional] +**lastName** | str, schemas.Unset | | [optional] +**email** | str, schemas.Unset | | [optional] +**password** | str, schemas.Unset | | [optional] +**phone** | str, schemas.Unset | | [optional] +**userStatus** | int, schemas.Unset | User Status | [optional] value must be a 32 bit integer +**objectWithNoDeclaredProps** | schemas.immutabledict, schemas.Unset | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] +**objectWithNoDeclaredPropsNullable** | None, schemas.immutabledict, schemas.Unset | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] +**anyTypeProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] +**anyTypeExceptNullProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional] +**anyTypePropNullable** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [UserDictInput](#userdictinput), [UserDict](#userdict) | [UserDict](#userdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# ObjectWithNoDeclaredProps +``` +type: schemas.Schema +``` ## Description test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | -# properties ObjectWithNoDeclaredPropsNullable +# ObjectWithNoDeclaredPropsNullable +``` +type: schemas.Schema +``` ## Description test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, dict, schemas.immutabledict | None, schemas.immutabledict | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None, dict, schemas.immutabledict | None, schemas.immutabledict | -# properties AnyTypeExceptNullProp +# AnyTypeExceptNullProp +``` +type: schemas.Schema +``` ## Description any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Composed Schemas (allOf/anyOf/oneOf/not) ## not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_not](#properties-anytypeexceptnullprop-_not) | None | None | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_Not](#_not) | None | None -# properties AnyTypeExceptNullProp _Not +# _Not +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None | None | | +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +None | None | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/uuid_string.md b/samples/client/petstore/python/docs/components/schema/uuid_string.md index 092827b5ae5..1a87bee45be 100644 --- a/samples/client/petstore/python/docs/components/schema/uuid_string.md +++ b/samples/client/petstore/python/docs/components/schema/uuid_string.md @@ -1,9 +1,12 @@ +# UUIDString petstore_api.components.schema.uuid_string -# Schema UUIDString +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, uuid.UUID | str | | value must be a uuid +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, uuid.UUID | str | value must be a uuid [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/whale.md b/samples/client/petstore/python/docs/components/schema/whale.md index dc6d92541d4..65f22b3ed09 100644 --- a/samples/client/petstore/python/docs/components/schema/whale.md +++ b/samples/client/petstore/python/docs/components/schema/whale.md @@ -1,17 +1,49 @@ +# Whale petstore_api.components.schema.whale -# Schema Whale +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[WhaleDictInput](#whaledictinput), [WhaleDict](#whaledict) | [WhaleDict](#whaledict) | + +## WhaleDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**className** | typing.Literal["whale"] | | must be one of ["whale"] +**hasBaleen** | bool | | [optional] +**hasTeeth** | bool | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## WhaleDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**className** | typing.Literal["whale"] | | must be one of ["whale"] +**hasBaleen** | bool, schemas.Unset | | [optional] +**hasTeeth** | bool, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**className** | typing.Literal["whale"] | | must be one of ["whale"] +**hasBaleen** | bool, schemas.Unset | | [optional] +**hasTeeth** | bool, schemas.Unset | | [optional] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**className** | str | str | | must be one of ["whale"] -**hasBaleen** | bool | bool | | [optional] -**hasTeeth** | bool | bool | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [WhaleDictInput](#whaledictinput), [WhaleDict](#whaledict) | [WhaleDict](#whaledict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/components/schema/zebra.md b/samples/client/petstore/python/docs/components/schema/zebra.md index 5f08938528c..be8fe9d2ca1 100644 --- a/samples/client/petstore/python/docs/components/schema/zebra.md +++ b/samples/client/petstore/python/docs/components/schema/zebra.md @@ -1,16 +1,46 @@ +# Zebra petstore_api.components.schema.zebra -# Schema Zebra +``` +type: schemas.Schema +``` -## Type Info -Input Type | Accessed Type | Description | Notes +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ZebraDictInput](#zebradictinput), [ZebraDict](#zebradict) | [ZebraDict](#zebradict) | + +## ZebraDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**className** | typing.Literal["zebra"] | | must be one of ["zebra"] +**type** | typing.Literal["plains", "mountain", "grevys"] | | [optional] must be one of ["plains", "mountain", "grevys"] +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## ZebraDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**className** | typing.Literal["zebra"] | | must be one of ["zebra"] +**type** | typing.Literal["plains", "mountain", "grevys"], schemas.Unset | | [optional] must be one of ["plains", "mountain", "grevys"] +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**className** | typing.Literal["zebra"] | | must be one of ["zebra"] +**type** | typing.Literal["plains", "mountain", "grevys"], schemas.Unset | | [optional] must be one of ["plains", "mountain", "grevys"] -## Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**className** | str | str | | must be one of ["zebra"] -**type** | str | str | | [optional] must be one of ["plains", "mountain", "grevys"] -**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | any string name can be used but the value must be the correct type | [optional] +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [ZebraDictInput](#zebradictinput), [ZebraDict](#zebradict) | [ZebraDict](#zebradict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md index 73fe809aa21..216de52d9b9 100644 --- a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md +++ b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md @@ -26,8 +26,8 @@ petstore_api.paths.another_fake_dummy.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[Client.content.application_json.schema](../../components/request_bodies/request_body_client.md#content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -39,18 +39,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -60,11 +60,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.another_fake_dummy.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Client](../../components/schema/client.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../components/schema/client.md) | [client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict) | [client.ClientDict](../../components/schema/client.md#clientdict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a8a1de7758e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.another_fake_dummy.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/fake/delete.md b/samples/client/petstore/python/docs/paths/fake/delete.md index 6e77bfa8eef..139633a522b 100644 --- a/samples/client/petstore/python/docs/paths/fake/delete.md +++ b/samples/client/petstore/python/docs/paths/fake/delete.md @@ -27,114 +27,106 @@ petstore_api.paths.fake.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | -[header_params](#header_params) | [RequestHeaderParameters.Params](#requestheaderparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | +[header_params](#header_params) | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | | security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -required_string_group | [Parameter0.schema](#parameter0-schema), str | | -required_int64_group | [Parameter2.schema](#parameter2-schema), int | | -string_group | [Parameter3.schema](#parameter3-schema), str | | optional -int64_group | [Parameter5.schema](#parameter5-schema), int | | optional - - -#### Parameter0 - -##### Description -Required String in group parameters - -##### Parameter0 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter2 - -##### Description -Required Integer in group parameters - -##### Parameter2 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer - -#### Parameter3 - -##### Description -String in group parameters - -##### Parameter3 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter5 - -##### Description -Integer in group parameters +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter5 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +**required_int64_group** | int | | +**required_string_group** | str | | +**int64_group** | int | | [optional] +**string_group** | str | | [optional] +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**required_int64_group** | int | | +**required_string_group** | str | | +**int64_group** | int, schemas.Unset | | [optional] +**string_group** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**required_int64_group** | int | | +**required_string_group** | str | | +**int64_group** | int, schemas.Unset | | [optional] +**string_group** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ### header_params -#### RequestHeaderParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -required_boolean_group | [Parameter1.schema](#parameter1-schema), str | | -boolean_group | [Parameter4.schema](#parameter4-schema), str | | optional - - -#### Parameter1 - -##### Description -Required Boolean in group parameters +### HeaderParameters +``` +type: schemas.Schema +``` -##### Parameter1 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### HeaderParameters HeaderParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | must be one of ["true", "false"] - -#### Parameter4 +**required_boolean_group** | typing.Literal["true", "false"] | | +**boolean_group** | typing.Literal["true", "false"] | | [optional] -##### Description -Boolean in group parameters - -##### Parameter4 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["true", "false"] +#### HeaderParameters HeaderParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**required_boolean_group** | typing.Literal["true", "false"] | | +**boolean_group** | typing.Literal["true", "false"], schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**required_boolean_group** | typing.Literal["true", "false"] | | +**boolean_group** | typing.Literal["true", "false"], schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Security diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..6f5a84f7304 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..70d9e34675f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["true", "false"] | typing.Literal["true", "false"] | must be one of ["true", "false"] diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_2/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_2/schema.md new file mode 100644 index 00000000000..40448dfd84f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_2/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_2.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_3/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_3/schema.md new file mode 100644 index 00000000000..e7ffd0ea40e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_3/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_3.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_4/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_4/schema.md new file mode 100644 index 00000000000..3407c63faea --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_4/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_4.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["true", "false"] | typing.Literal["true", "false"] | must be one of ["true", "false"] diff --git a/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_5/schema.md b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_5/schema.md new file mode 100644 index 00000000000..b3b866b5237 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/delete/parameters/parameter_5/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.delete.parameters.parameter_5.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/fake/get.md b/samples/client/petstore/python/docs/paths/fake/get.md index 32fe41a53eb..e32f6dadfb0 100644 --- a/samples/client/petstore/python/docs/paths/fake/get.md +++ b/samples/client/petstore/python/docs/paths/fake/get.md @@ -26,10 +26,10 @@ petstore_api.paths.fake.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_x_www_form_urlencoded.schema](#RequestBody-content-applicationxwwwformurlencoded-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | -[header_params](#header_params) | [RequestHeaderParameters.Params](#requestheaderparametersparams), dict | | -content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md#schemadict), schemas.Unset] | optional, default is unset | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | +[header_params](#header_params) | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | | +content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body. value must be one of ['application/x-www-form-urlencoded'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,156 +44,207 @@ Content-Type | Schema "application/x-www-form-urlencoded" | [content.application_x_www_form_urlencoded.Schema](#requestbody-content-applicationxwwwformurlencoded-schema) #### RequestBody content ApplicationXWwwFormUrlencoded Schema +petstore_api.paths.fake.get.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**enum_form_string_array** | list, tuple | [properties.EnumFormStringArray](#requestbody-content-applicationxwwwformurlencoded-schema-properties-enumformstringarray) | Form parameter enum test (string array) | [optional] -**enum_form_string** | str | str | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] - -#### RequestBody content ApplicationXWwwFormUrlencoded Schema properties EnumFormStringArray - -##### Description -Form parameter enum test (string array) - -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | Form parameter enum test (string array) | - -##### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | must be one of [">", "$"] if omitted the server will use the default value of $ - -### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -enum_query_string_array | [Parameter2.schema](#parameter2-schema), list, tuple | | optional -enum_query_string | [Parameter3.schema](#parameter3-schema), str | | optional -enum_query_integer | [Parameter4.schema](#parameter4-schema), int | | optional -enum_query_double | [Parameter5.schema](#parameter5-schema), float, int | | optional - - -#### Parameter2 - -##### Description -Query parameter enum test (string array) - -##### Parameter2 Schema +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | must be one of [">", "$"] if omitted the server will use the default value of $ - -#### Parameter3 +**enum_form_string_array** | [EnumFormStringArrayTupleInput](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytupleinput), [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple) | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"] | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Description -Query parameter enum test (string) - -##### Parameter3 Schema +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**enum_form_string_array** | [EnumFormStringArrayTupleInput](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytupleinput), [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple), schemas.Unset | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**enum_form_string_array** | [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple), schemas.Unset | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -#### Parameter4 +#### RequestBody content ApplicationXWwwFormUrlencoded Schema +``` +type: schemas.Schema +``` ##### Description -Query parameter enum test (double) - -##### Parameter4 Schema +Form parameter enum test (string array) -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | must be one of [1, -2] value must be a 32 bit integer +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EnumFormStringArrayTupleInput](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytupleinput), [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple) | [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple) | -#### Parameter5 +##### RequestBody content ApplicationXWwwFormUrlencoded Schema EnumFormStringArrayTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + ">", + "$" + ], + ], + typing.Tuple[ + typing.Literal[ + ">", + "$" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal[">", "$"] | | must be one of [">", "$"] if omitted the server will use the default value of $ -##### Description -Query parameter enum test (double) +##### RequestBody content ApplicationXWwwFormUrlencoded Schema EnumFormStringArrayTuple +``` +base class: typing.Tuple[ + typing.Literal[">", "$"], + ... +] +``` +###### __new__ method +Argument | Type +-------- | ------ +arg | [EnumFormStringArrayTupleInput](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytupleinput), [EnumFormStringArrayTuple](#requestbody-content-applicationxwwwformurlencoded-schema-enumformstringarraytuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal[">", "$"] | must be one of [">", "$"] if omitted the server will use the default value of $ This method is used under the hood when instance[0] is called +### query_params +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter5 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -float, int | float, int | | must be one of [1.1, -1.2] value must be a 64 bit float +**enum_query_double** | float, int | | [optional] +**enum_query_string** | typing.Literal["_abc", "-efg", "(xyz)"] | | [optional] +**enum_query_integer** | typing.Literal[1, -2] | | [optional] +**enum_query_string_array** | [schema.SchemaTupleInput](../../paths/fake/get/parameters/parameter_2/schema.md#schematupleinput), [schema_4.SchemaTuple](../../paths/fake/get/parameters/parameter_2/schema.md#schematuple) | | [optional] +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**enum_query_double** | float, int, schemas.Unset | | [optional] +**enum_query_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | | [optional] +**enum_query_integer** | typing.Literal[1, -2], schemas.Unset | | [optional] +**enum_query_string_array** | [schema.SchemaTupleInput](../../paths/fake/get/parameters/parameter_2/schema.md#schematupleinput), [schema_4.SchemaTuple](../../paths/fake/get/parameters/parameter_2/schema.md#schematuple), schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**enum_query_double** | float, int, schemas.Unset | | [optional] +**enum_query_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | | [optional] +**enum_query_integer** | typing.Literal[1, -2], schemas.Unset | | [optional] +**enum_query_string_array** | [schema.SchemaTuple](../../paths/fake/get/parameters/parameter_2/schema.md#schematuple), schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ### header_params -#### RequestHeaderParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -enum_header_string_array | [Parameter0.schema](#parameter0-schema), list, tuple | | optional -enum_header_string | [Parameter1.schema](#parameter1-schema), str | | optional - - -#### Parameter0 - -##### Description -Header parameter enum test (string array) +### HeaderParameters +``` +type: schemas.Schema +``` -##### Parameter0 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### HeaderParameters HeaderParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | must be one of [">", "$"] if omitted the server will use the default value of $ - -#### Parameter1 +**enum_header_string** | typing.Literal["_abc", "-efg", "(xyz)"] | | [optional] +**enum_header_string_array** | [schema.SchemaTupleInput](../../paths/fake/get/parameters/parameter_0/schema.md#schematupleinput), [schema_2.SchemaTuple](../../paths/fake/get/parameters/parameter_0/schema.md#schematuple) | | [optional] -##### Description -Header parameter enum test (string) - -##### Parameter1 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +#### HeaderParameters HeaderParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**enum_header_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | | [optional] +**enum_header_string_array** | [schema.SchemaTupleInput](../../paths/fake/get/parameters/parameter_0/schema.md#schematupleinput), [schema_2.SchemaTuple](../../paths/fake/get/parameters/parameter_0/schema.md#schematuple), schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**enum_header_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | | [optional] +**enum_header_string_array** | [schema.SchemaTuple](../../paths/fake/get/parameters/parameter_0/schema.md#schematuple), schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | Not found +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Not found ## ResponseFor404 ### Description Not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor404-body) | [content.application_json.schema](#responsefor404-content-applicationjson-schema) | | +[body](#responsefor404-body) | schemas.immutabledict | | headers | Unset | headers were not defined | ### ResponseFor404 Body @@ -203,11 +254,15 @@ Content-Type | Schema ### Body Details #### ResponseFor404 content ApplicationJson Schema +petstore_api.paths.fake.get.responses.response_404.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..7483e43902c --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_0/schema.md @@ -0,0 +1,50 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + ">", + "$" + ], + ], + typing.Tuple[ + typing.Literal[ + ">", + "$" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal[">", "$"] | | must be one of [">", "$"] if omitted the server will use the default value of $ + +## SchemaTuple +``` +base class: typing.Tuple[ + typing.Literal[">", "$"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal[">", "$"] | must be one of [">", "$"] if omitted the server will use the default value of $ This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..0dc93c4c15f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["_abc", "-efg", "(xyz)"] | typing.Literal["_abc", "-efg", "(xyz)"] | must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_2/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_2/schema.md new file mode 100644 index 00000000000..f0ef40c5b5d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_2/schema.md @@ -0,0 +1,50 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_2.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + ">", + "$" + ], + ], + typing.Tuple[ + typing.Literal[ + ">", + "$" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal[">", "$"] | | must be one of [">", "$"] if omitted the server will use the default value of $ + +## SchemaTuple +``` +base class: typing.Tuple[ + typing.Literal[">", "$"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal[">", "$"] | must be one of [">", "$"] if omitted the server will use the default value of $ This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_3/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_3/schema.md new file mode 100644 index 00000000000..da8bca5a74e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_3/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_3.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal["_abc", "-efg", "(xyz)"] | typing.Literal["_abc", "-efg", "(xyz)"] | must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_4/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_4/schema.md new file mode 100644 index 00000000000..18da52c2a2e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_4/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_4.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +typing.Literal[1, -2] | typing.Literal[1, -2] | must be one of [1, -2] value must be a 32 bit integer diff --git a/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_5/schema.md b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_5/schema.md new file mode 100644 index 00000000000..6391341457f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/parameters/parameter_5/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.get.parameters.parameter_5.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +float, int | float, int | must be one of [1.1, -1.2] value must be a 64 bit float diff --git a/samples/client/petstore/python/docs/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md b/samples/client/petstore/python/docs/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md new file mode 100644 index 00000000000..90c7625be50 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.md @@ -0,0 +1,97 @@ +# Schema +petstore_api.paths.fake.get.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enum_form_string_array** | [EnumFormStringArrayTupleInput](#enumformstringarraytupleinput), [EnumFormStringArrayTuple](#enumformstringarraytuple) | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"] | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**enum_form_string_array** | [EnumFormStringArrayTupleInput](#enumformstringarraytupleinput), [EnumFormStringArrayTuple](#enumformstringarraytuple), schemas.Unset | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**enum_form_string_array** | [EnumFormStringArrayTuple](#enumformstringarraytuple), schemas.Unset | Form parameter enum test (string array) | [optional] +**enum_form_string** | typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset | Form parameter enum test (string) | [optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# EnumFormStringArray +``` +type: schemas.Schema +``` + +## Description +Form parameter enum test (string array) + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[EnumFormStringArrayTupleInput](#enumformstringarraytupleinput), [EnumFormStringArrayTuple](#enumformstringarraytuple) | [EnumFormStringArrayTuple](#enumformstringarraytuple) | + +## EnumFormStringArrayTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + ">", + "$" + ], + ], + typing.Tuple[ + typing.Literal[ + ">", + "$" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal[">", "$"] | | must be one of [">", "$"] if omitted the server will use the default value of $ + +## EnumFormStringArrayTuple +``` +base class: typing.Tuple[ + typing.Literal[">", "$"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [EnumFormStringArrayTupleInput](#enumformstringarraytupleinput), [EnumFormStringArrayTuple](#enumformstringarraytuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal[">", "$"] | must be one of [">", "$"] if omitted the server will use the default value of $ This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake/get/responses/response_404/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake/get/responses/response_404/content/application_json/schema.md new file mode 100644 index 00000000000..c903a236a56 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/get/responses/response_404/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.get.responses.response_404.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | diff --git a/samples/client/petstore/python/docs/paths/fake/patch.md b/samples/client/petstore/python/docs/paths/fake/patch.md index 08064946cae..1d5e4dc92ad 100644 --- a/samples/client/petstore/python/docs/paths/fake/patch.md +++ b/samples/client/petstore/python/docs/paths/fake/patch.md @@ -26,8 +26,8 @@ petstore_api.paths.fake.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[Client.content.application_json.schema](../../components/request_bodies/request_body_client.md#content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -39,18 +39,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -60,11 +60,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Client](../../components/schema/client.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../components/schema/client.md) | [client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict) | [client.ClientDict](../../components/schema/client.md#clientdict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..03f15cfee60 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/fake/post.md b/samples/client/petstore/python/docs/paths/fake/post.md index 26c44e913d5..25e89a7c068 100644 --- a/samples/client/petstore/python/docs/paths/fake/post.md +++ b/samples/client/petstore/python/docs/paths/fake/post.md @@ -27,8 +27,8 @@ petstore_api.paths.fake.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_x_www_form_urlencoded.schema](#RequestBody-content-applicationxwwwformurlencoded-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md#schemadict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body. value must be one of ['application/x-www-form-urlencoded'] security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -43,45 +43,99 @@ Content-Type | Schema "application/x-www-form-urlencoded" | [content.application_x_www_form_urlencoded.Schema](#requestbody-content-applicationxwwwformurlencoded-schema) #### RequestBody content ApplicationXWwwFormUrlencoded Schema +petstore_api.paths.fake.post.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | + +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**byte** | str | str | None | -**double** | float, int | float, int | None | value must be a 64 bit float -**number** | float, int | float, int | None | -**pattern_without_delimiter** | str | str | None | -**integer** | int | int | None | [optional] -**int32** | int | int | None | [optional] value must be a 32 bit integer -**int64** | int | int | None | [optional] value must be a 64 bit integer -**float** | float, int | float, int | None | [optional] value must be a 32 bit float -**string** | str | str | None | [optional] -**binary** | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | None | [optional] -**date** | str, datetime.date | str | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD -**dateTime** | str, datetime.datetime | str | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time -**password** | str | str | None | [optional] -**callback** | str | str | None | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int | None | [optional] +**int32** | int | None | [optional] value must be a 32 bit integer +**int64** | int | None | [optional] value must be a 64 bit integer +**float** | float, int | None | [optional] value must be a 32 bit float +**string** | str | None | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader | None | [optional] +**date** | str, datetime.date | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, datetime.datetime | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str | None | [optional] +**callback** | str | None | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int, schemas.Unset | None | [optional] +**int32** | int, schemas.Unset | None | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | None | [optional] value must be a 64 bit integer +**string** | str, schemas.Unset | None | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader, schemas.Unset | None | [optional] +**date** | str, datetime.date, schemas.Unset | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, datetime.datetime, schemas.Unset | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str, schemas.Unset | None | [optional] +**callback** | str, schemas.Unset | None | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int, schemas.Unset | None | [optional] +**int32** | int, schemas.Unset | None | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | None | [optional] value must be a 64 bit integer +**string** | str, schemas.Unset | None | [optional] +**binary** | bytes, io.FileIO, schemas.Unset | None | [optional] +**date** | str, schemas.Unset | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, schemas.Unset | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str, schemas.Unset | None | [optional] +**callback** | str, schemas.Unset | None | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["float"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | User not found +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found ## ResponseFor404 ### Description User not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md b/samples/client/petstore/python/docs/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md new file mode 100644 index 00000000000..c04f497e732 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.md @@ -0,0 +1,79 @@ +# Schema +petstore_api.paths.fake.post.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int | None | [optional] +**int32** | int | None | [optional] value must be a 32 bit integer +**int64** | int | None | [optional] value must be a 64 bit integer +**float** | float, int | None | [optional] value must be a 32 bit float +**string** | str | None | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader | None | [optional] +**date** | str, datetime.date | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, datetime.datetime | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str | None | [optional] +**callback** | str | None | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int, schemas.Unset | None | [optional] +**int32** | int, schemas.Unset | None | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | None | [optional] value must be a 64 bit integer +**string** | str, schemas.Unset | None | [optional] +**binary** | bytes, io.FileIO, io.BufferedReader, schemas.Unset | None | [optional] +**date** | str, datetime.date, schemas.Unset | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, datetime.datetime, schemas.Unset | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str, schemas.Unset | None | [optional] +**callback** | str, schemas.Unset | None | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**byte** | str | None | +**double** | float, int | None | value must be a 64 bit float +**number** | float, int | None | +**pattern_without_delimiter** | str | None | +**integer** | int, schemas.Unset | None | [optional] +**int32** | int, schemas.Unset | None | [optional] value must be a 32 bit integer +**int64** | int, schemas.Unset | None | [optional] value must be a 64 bit integer +**string** | str, schemas.Unset | None | [optional] +**binary** | bytes, io.FileIO, schemas.Unset | None | [optional] +**date** | str, schemas.Unset | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD +**dateTime** | str, schemas.Unset | None | [optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time +**password** | str, schemas.Unset | None | [optional] +**callback** | str, schemas.Unset | None | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +__getitem__ | str | | This model has invalid python names so this method is used under the hood when you access instance["float"], +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md index 07f184d837b..da85a338d17 100644 --- a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_additional_properties_with_array_of_enums.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_additional_properties_with_array_of_enums.get.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalPropertiesWithArrayOfEnums](../../components/schema/additional_properties_with_array_of_enums.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Got object with additional properties with array of enums +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got object with additional properties with array of enums ## ResponseFor200 ### Description Got object with additional properties with array of enums -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_additional_properties_with_array_of_enums.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AdditionalPropertiesWithArrayOfEnums](../../components/schema/additional_properties_with_array_of_enums.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6fed6640835 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_additional_properties_with_array_of_enums.get.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../../../../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1c0548b8c75 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_additional_properties_with_array_of_enums.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../../../../../../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put.md b/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put.md index f7267c43a0d..2d67ada1a68 100644 --- a/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put.md +++ b/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_body_with_file_schema.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[file_schema_test_class.FileSchemaTestClassDictInput](../../components/schema/file_schema_test_class.md#fileschematestclassdictinput), [file_schema_test_class.FileSchemaTestClassDict](../../components/schema/file_schema_test_class.md#fileschematestclassdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -40,18 +40,22 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_body_with_file_schema.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[FileSchemaTestClass](../../components/schema/file_schema_test_class.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**file_schema_test_class.FileSchemaTestClass**](../../components/schema/file_schema_test_class.md) | [file_schema_test_class.FileSchemaTestClassDictInput](../../components/schema/file_schema_test_class.md#fileschematestclassdictinput), [file_schema_test_class.FileSchemaTestClassDict](../../components/schema/file_schema_test_class.md#fileschematestclassdict) | [file_schema_test_class.FileSchemaTestClassDict](../../components/schema/file_schema_test_class.md#fileschematestclassdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..3dcce035518 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_body_with_file_schema/put/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_body_with_file_schema.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**file_schema_test_class.FileSchemaTestClass**](../../../../../../components/schema/file_schema_test_class.md) | [file_schema_test_class.FileSchemaTestClassDictInput](../../../../../../components/schema/file_schema_test_class.md#fileschematestclassdictinput), [file_schema_test_class.FileSchemaTestClassDict](../../../../../../components/schema/file_schema_test_class.md#fileschematestclassdict) | [file_schema_test_class.FileSchemaTestClassDict](../../../../../../components/schema/file_schema_test_class.md#fileschematestclassdict) diff --git a/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put.md b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put.md index 421061f4e79..02f4212ef8b 100644 --- a/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put.md +++ b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put.md @@ -24,9 +24,9 @@ petstore_api.paths.fake_body_with_query_params.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict)] | required | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -40,36 +40,60 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_body_with_query_params.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[User](../../components/schema/user.md) | dict, schemas.immutabledict | schemas.immutabledict | - +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) ### query_params -#### RequestQueryParameters.Params -This is a TypedDict +### QueryParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query | [Parameter0.schema](#parameter0-schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query** | str | | + +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -#### Parameter0 +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**query** | str | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**query** | str | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..a60794fb5fa --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_body_with_query_params.put.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..bcd9aaab716 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_body_with_query_params/put/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_body_with_query_params.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put.md b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put.md index 8016dfbe792..4227fd808cf 100644 --- a/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put.md +++ b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put.md @@ -25,56 +25,62 @@ petstore_api.paths.fake_case_sensitive_params.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -someVar | [Parameter0.schema](#parameter0-schema), str | | -SomeVar | [Parameter1.schema](#parameter1-schema), str | | -some_var | [Parameter2.schema](#parameter2-schema), str | | - - -#### Parameter0 - -##### Parameter0 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter1 +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter1 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | +**SomeVar** | str | | +**someVar** | str | | +**some_var** | str | | -#### Parameter2 - -##### Parameter2 Schema +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**SomeVar** | str | | +**someVar** | str | | +**some_var** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**SomeVar** | str | | +**someVar** | str | | +**some_var** | str | | + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..374af6256dd --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..2589eefd134 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_2/schema.md b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_2/schema.md new file mode 100644 index 00000000000..6a624ce7ae4 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_case_sensitive_params/put/parameters/parameter_2/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_2.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md index 875c2b55f42..15efdd24f95 100644 --- a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md +++ b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md @@ -27,8 +27,8 @@ petstore_api.paths.fake_classname_test.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[Client.content.application_json.schema](../../components/request_bodies/request_body_client.md#content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_client.md) | typing.Union[[client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] @@ -41,18 +41,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -62,11 +62,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_classname_test.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Client](../../components/schema/client.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../components/schema/client.md) | [client.ClientDictInput](../../components/schema/client.md#clientdictinput), [client.ClientDict](../../components/schema/client.md#clientdict) | [client.ClientDict](../../components/schema/client.md#clientdict) ## Security diff --git a/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8bdc5f06ef0 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_classname_test.patch.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**client.Client**](../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete.md b/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete.md index e40946d5b0e..e519e14ca1c 100644 --- a/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete.md +++ b/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete.md @@ -26,47 +26,64 @@ petstore_api.paths.fake_delete_coffee_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | [Parameter0.schema](#parameter0-schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | str | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -The internal object id +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**id** | str | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**id** | str | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [Default.response_cls](#default-response_cls) | Unexpected error -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +default | [Default.ApiResponse](#default-apiresponse) | Unexpected error +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Default ### Description Unexpected error -### Default response_cls +### Default ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..68307bc0c75 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_delete_coffee_id/delete/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_delete_coffee_id.delete.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_health/get.md b/samples/client/petstore/python/docs/paths/fake_health/get.md index 7dd724d38b0..73d39bc0270 100644 --- a/samples/client/petstore/python/docs/paths/fake_health/get.md +++ b/samples/client/petstore/python/docs/paths/fake_health/get.md @@ -36,18 +36,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | The instance started successfully +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | The instance started successfully ## ResponseFor200 ### Description The instance started successfully -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -57,11 +57,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_health.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[HealthCheckResult](../../components/schema/health_check_result.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**health_check_result.HealthCheckResult**](../../components/schema/health_check_result.md) | [health_check_result.HealthCheckResultDictInput](../../components/schema/health_check_result.md#healthcheckresultdictinput), [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..6d2f82dbb8c --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_health.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**health_check_result.HealthCheckResult**](../../../../../../../../components/schema/health_check_result.md) | [health_check_result.HealthCheckResultDictInput](../../../../../../../../components/schema/health_check_result.md#healthcheckresultdictinput), [health_check_result.HealthCheckResultDict](../../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) | [health_check_result.HealthCheckResultDict](../../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) diff --git a/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post.md b/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post.md index 95e10ab85ad..9e1e53c4b83 100644 --- a/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post.md +++ b/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_inline_additional_properties.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md#schemadict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -43,23 +43,49 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_inline_additional_properties.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationjson-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | -##### Type Info -Input Type | Accessed Type | Description | Notes +##### RequestBody content ApplicationJson Schema SchemaDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +##### RequestBody content ApplicationJson Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str | str | any string name can be used but the value must be the correct type | [optional] +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationjson-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..6926eaeadd6 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.md @@ -0,0 +1,37 @@ +# Schema +petstore_api.paths.fake_inline_additional_properties.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[ + str, + str, +] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any_string_name** | str | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**kwargs** | str | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | str, schemas.Unset | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md index 6920d01227d..37402900232 100644 --- a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md @@ -26,9 +26,9 @@ petstore_api.paths.fake_inline_composition.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), [RequestBody.content.multipart_form_data.schema](#RequestBody-content-multipartformdata-schema), Unset, dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | optional, default is unset | -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, [schema_2.SchemaDictInput](../../paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema_2.SchemaDict](../../paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json', 'multipart/form-data'] accept_content_types | typing.Tuple[str] | default is ("application/json", "multipart/form-data", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -47,141 +47,155 @@ Content-Type | Schema "multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_inline_composition.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ##### Composed Schemas (allOf/anyOf/oneOf/not) ##### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#requestbody-content-applicationjson-schema-allof-_0) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#requestbody-content-applicationjson-schema-_0) | str | str -#### RequestBody content ApplicationJson Schema allof _0 +#### RequestBody content ApplicationJson Schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | #### RequestBody content MultipartFormData Schema +petstore_api.paths.fake_inline_composition.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | + +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.SomeProp](#requestbody-content-multipartformdata-schema-properties-someprop) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -#### RequestBody content MultipartFormData Schema properties SomeProp +#### RequestBody content MultipartFormData Schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ##### Composed Schemas (allOf/anyOf/oneOf/not) ##### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#requestbody-content-multipartformdata-schema-properties-someprop-allof-_0) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#requestbody-content-multipartformdata-schema-_0) | str | str -#### RequestBody content MultipartFormData Schema properties SomeProp allof _0 - -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +#### RequestBody content MultipartFormData Schema +``` +type: schemas.Schema +``` +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -compositionAtRoot | [Parameter0.schema](#parameter0-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | optional -compositionInProperty | [Parameter1.schema](#parameter1-schema), dict, schemas.immutabledict | | optional - - -#### Parameter0 - -##### Parameter0 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -###### Composed Schemas (allOf/anyOf/oneOf/not) -###### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#parameter0-schema-allof-_0) | str | str | | - -##### Parameter0 Schema allof _0 - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter1 - -##### Parameter1 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | - -###### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.SomeProp](#parameter1-schema-properties-someprop) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter1 Schema properties SomeProp +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - -###### Composed Schemas (allOf/anyOf/oneOf/not) -###### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#parameter1-schema-properties-someprop-allof-_0) | str | str | | +**compositionAtRoot** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**compositionInProperty** | [schema_2.SchemaDictInput](../../paths/fake_inline_composition/post/parameters/parameter_1/schema.md#schemadictinput), [schema_2.SchemaDict](../../paths/fake_inline_composition/post/parameters/parameter_1/schema.md#schemadict) | | [optional] -##### Parameter1 Schema properties SomeProp allof _0 - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**compositionAtRoot** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**compositionInProperty** | [schema_2.SchemaDictInput](../../paths/fake_inline_composition/post/parameters/parameter_1/schema.md#schemadictinput), [schema_2.SchemaDict](../../paths/fake_inline_composition/post/parameters/parameter_1/schema.md#schemadict), schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**compositionAtRoot** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**compositionInProperty** | [schema.SchemaDict](../../paths/fake_inline_composition/post/parameters/parameter_1/schema.md#schemadict), schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success, multiple content types +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success, multiple content types ## ResponseFor200 ### Description success, multiple content types -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_json.schema](#responsefor200-content-applicationjson-schema), [content.multipart_form_data.schema](#responsefor200-content-multipartformdata-schema)] | | +[body](#responsefor200-body) | typing.Union[schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict)] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -192,56 +206,97 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_inline_composition.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ##### Composed Schemas (allOf/anyOf/oneOf/not) ##### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#responsefor200-content-applicationjson-schema-allof-_0) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#responsefor200-content-applicationjson-schema-_0) | str | str -#### ResponseFor200 content ApplicationJson Schema allof _0 +#### ResponseFor200 content ApplicationJson Schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | #### ResponseFor200 content MultipartFormData Schema +petstore_api.paths.fake_inline_composition.post.responses.response_200.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | -##### Type Info -Input Type | Accessed Type | Description | Notes +##### ResponseFor200 content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties.SomeProp](#responsefor200-content-multipartformdata-schema-properties-someprop) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### ResponseFor200 content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -#### ResponseFor200 content MultipartFormData Schema properties SomeProp +#### ResponseFor200 content MultipartFormData Schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ##### Composed Schemas (allOf/anyOf/oneOf/not) ##### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[_0](#responsefor200-content-multipartformdata-schema-properties-someprop-allof-_0) | str | str | | +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#responsefor200-content-multipartformdata-schema-_0) | str | str -#### ResponseFor200 content MultipartFormData Schema properties SomeProp allof _0 +#### ResponseFor200 content MultipartFormData Schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..d47ea3c4706 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_0/schema.md @@ -0,0 +1,26 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..36335fb330c --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/parameters/parameter_1/schema.md @@ -0,0 +1,66 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# SomeProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..da3714da98b --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/application_json/schema.md @@ -0,0 +1,26 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..209486f4cdb --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,66 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# SomeProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b35498fbc7f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,26 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..e6104c58d39 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.md @@ -0,0 +1,66 @@ +# Schema +petstore_api.paths.fake_inline_composition.post.responses.response_200.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someProp** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# SomeProp +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | str | str + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_json_form_data/get.md b/samples/client/petstore/python/docs/paths/fake_json_form_data/get.md index 3894892cabf..521383c11c9 100644 --- a/samples/client/petstore/python/docs/paths/fake_json_form_data/get.md +++ b/samples/client/petstore/python/docs/paths/fake_json_form_data/get.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_json_form_data.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_x_www_form_urlencoded.schema](#RequestBody-content-applicationxwwwformurlencoded-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md#schemadict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body. value must be one of ['application/x-www-form-urlencoded'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -40,25 +40,56 @@ Content-Type | Schema "application/x-www-form-urlencoded" | [content.application_x_www_form_urlencoded.Schema](#requestbody-content-applicationxwwwformurlencoded-schema) #### RequestBody content ApplicationXWwwFormUrlencoded Schema +petstore_api.paths.fake_json_form_data.get.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | + +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**param** | str | field1 | +**param2** | str | field2 | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**param** | str | str | field1 | -**param2** | str | str | field2 | -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**param** | str | field1 | +**param2** | str | field2 | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**param** | str | field1 | +**param2** | str | field2 | + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md b/samples/client/petstore/python/docs/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md new file mode 100644 index 00000000000..b2ce58be011 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_json_form_data.get.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**param** | str | field1 | +**param2** | str | field2 | +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**param** | str | field1 | +**param2** | str | field2 | +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**param** | str | field1 | +**param2** | str | field2 | + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_json_patch/patch.md b/samples/client/petstore/python/docs/paths/fake_json_patch/patch.md index f7e2e2d4f59..ea289accd31 100644 --- a/samples/client/petstore/python/docs/paths/fake_json_patch/patch.md +++ b/samples/client/petstore/python/docs/paths/fake_json_patch/patch.md @@ -26,8 +26,8 @@ petstore_api.paths.fake_json_patch.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json_patchjson.schema](#RequestBody-content-applicationjsonpatchjson-schema), Unset, list, tuple] | optional, default is unset | -content_type | str | optional, default is 'application/json-patch+json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[json_patch_request.JSONPatchRequestTupleInput](../../components/schema/json_patch_request.md#jsonpatchrequesttupleinput), [json_patch_request.JSONPatchRequestTuple](../../components/schema/json_patch_request.md#jsonpatchrequesttuple), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json-patch+json' | Selects the schema and serialization of the request body. value must be one of ['application/json-patch+json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -41,18 +41,22 @@ Content-Type | Schema "application/json-patch+json" | [content.application_json_patchjson.Schema](#requestbody-content-applicationjsonpatchjson-schema) #### RequestBody content ApplicationJsonPatchjson Schema +petstore_api.paths.fake_json_patch.patch.request_body.content.application_json_patchjson.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[JSONPatchRequest](../../components/schema/json_patch_request.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_patch_request.JSONPatchRequest**](../../components/schema/json_patch_request.md) | [json_patch_request.JSONPatchRequestTupleInput](../../components/schema/json_patch_request.md#jsonpatchrequesttupleinput), [json_patch_request.JSONPatchRequestTuple](../../components/schema/json_patch_request.md#jsonpatchrequesttuple) | [json_patch_request.JSONPatchRequestTuple](../../components/schema/json_patch_request.md#jsonpatchrequesttuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_json_patch/patch/request_body/content/application_json_patchjson/schema.md b/samples/client/petstore/python/docs/paths/fake_json_patch/patch/request_body/content/application_json_patchjson/schema.md new file mode 100644 index 00000000000..b5e87cc9a75 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_json_patch/patch/request_body/content/application_json_patchjson/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_json_patch.patch.request_body.content.application_json_patchjson.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**json_patch_request.JSONPatchRequest**](../../../../../../components/schema/json_patch_request.md) | [json_patch_request.JSONPatchRequestTupleInput](../../../../../../components/schema/json_patch_request.md#jsonpatchrequesttupleinput), [json_patch_request.JSONPatchRequestTuple](../../../../../../components/schema/json_patch_request.md#jsonpatchrequesttuple) | [json_patch_request.JSONPatchRequestTuple](../../../../../../components/schema/json_patch_request.md#jsonpatchrequesttuple) diff --git a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md index 63f58fd7fdc..347e42ab376 100644 --- a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md +++ b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_json_with_charset.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json_charsetutf8.schema](#RequestBody-content-applicationjsoncharsetutf8-schema), Unset, dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | optional, default is unset | -content_type | str | optional, default is 'application/json; charset=utf-8' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json; charset=utf-8' | Selects the schema and serialization of the request body. value must be one of ['application/json; charset=utf-8'] accept_content_types | typing.Tuple[str] | default is ("application/json; charset=utf-8", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -41,29 +41,33 @@ Content-Type | Schema "application/json; charset=utf-8" | [content.application_json_charsetutf8.Schema](#requestbody-content-applicationjsoncharsetutf8-schema) #### RequestBody content ApplicationJsonCharsetutf8 Schema +petstore_api.paths.fake_json_with_charset.post.request_body.content.application_json_charsetutf8.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json_charsetutf8.schema](#responsefor200-content-applicationjsoncharsetutf8-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -73,11 +77,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJsonCharsetutf8 Schema +petstore_api.paths.fake_json_with_charset.post.responses.response_200.content.application_json_charsetutf8.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/request_body/content/application_json_charsetutf8/schema.md b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/request_body/content/application_json_charsetutf8/schema.md new file mode 100644 index 00000000000..1a1bcbf5d2d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/request_body/content/application_json_charsetutf8/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_json_with_charset.post.request_body.content.application_json_charsetutf8.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/schema.md b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/schema.md new file mode 100644 index 00000000000..ae7ec4c2648 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post/responses/response_200/content/application_json_charsetutf8/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_json_with_charset.post.responses.response_200.content.application_json_charsetutf8.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md new file mode 100644 index 00000000000..5da55e81092 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md @@ -0,0 +1,211 @@ +petstore_api.paths.fake_multiple_request_body_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| multiple_request_body_content_types | [FakeApi](../../apis/tags/fake_api.md) | This api is only for tag=fake | +| post | ApiForPost | This api is only for this endpoint | +| post | FakeMultipleRequestBodyContentTypes | This api is only for path=/fake/multipleRequestBodyContentTypes/ | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Summary | testing composed schemas at inline locations | +| Description | composed schemas at inline locations + multiple requestBody content types | +| Path | "/fake/multipleRequestBodyContentTypes/" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md#schemadict), [schema_2.SchemaDictInput](../../paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema_2.SchemaDict](../../paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json', 'multipart/form-data'] +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Description +multiple (inline) request body content types + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) +"multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) + +#### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationjson-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | + +##### RequestBody content ApplicationJson Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**a** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +##### RequestBody content ApplicationJson Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationjson-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | [SchemaDict](#requestbody-content-applicationjson-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties +#### RequestBody content MultipartFormData Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | + +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**b** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**b** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**b** | str, schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = http://petstore.swagger.io:80/v2 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | petstore server +1 | [Server1](../../servers/server_1.md) | The local server +2 | [Server2](../../servers/server_2.md) | staging server with no variables + +## Code Sample + +```python +import petstore_api +from petstore_api.configurations import api_configuration +from petstore_api.apis.tags import fake_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with petstore_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = fake_api.FakeApi(api_client) + + # example passing only optional values + body = { + "a": "a_example", + } + try: + # testing composed schemas at inline locations + api_response = api_instance.multiple_request_body_content_types( + body=body, + ) + pprint(api_response) + except petstore_api.ApiException as e: + print("Exception when calling FakeApi->multiple_request_body_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to FakeApi API]](../../apis/tags/fake_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e4e620a1422 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.md @@ -0,0 +1,41 @@ +# Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**a** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**a** | str, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..e098f3abf35 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,41 @@ +# Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**b** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**b** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**b** | str, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0b4448fafc9 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_multiple_request_body_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md index aff93f8cf7b..90712fb36ce 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md @@ -36,19 +36,19 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success -202 | [ResponseFor202.response_cls](#responsefor202-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +202 | [ResponseFor202.ApiResponse](#responsefor202-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -58,22 +58,26 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_multiple_response_bodies.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor202 ### Description success -### ResponseFor202 response_cls +### ResponseFor202 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor202-body) | [content.application_json.schema](#responsefor202-content-applicationjson-schema) | | +[body](#responsefor202-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor202 Body @@ -83,11 +87,15 @@ Content-Type | Schema ### Body Details #### ResponseFor202 content ApplicationJson Schema +petstore_api.paths.fake_multiple_response_bodies.get.responses.response_202.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..4459c649c8b --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_multiple_response_bodies.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_202/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_202/content/application_json/schema.md new file mode 100644 index 00000000000..f64142c8d4a --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get/responses/response_202/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_multiple_response_bodies.get.responses.response_202.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md index 15ed6cf25ef..e7ecaba5149 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md @@ -38,18 +38,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -59,11 +59,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_multiple_securities.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Security diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..9d0461d43ab --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_multiple_securities.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_obj_in_query/get.md b/samples/client/petstore/python/docs/paths/fake_obj_in_query/get.md index 17bd3611292..6296b15e7a8 100644 --- a/samples/client/petstore/python/docs/paths/fake_obj_in_query/get.md +++ b/samples/client/petstore/python/docs/paths/fake_obj_in_query/get.md @@ -25,45 +25,56 @@ petstore_api.paths.fake_obj_in_query.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -mapBean | [Parameter0.schema](#parameter0-schema), dict, schemas.immutabledict | | optional +### QueryParameters +``` +type: schemas.Schema +``` +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -#### Parameter0 +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapBean** | [schema.SchemaDictInput](../../paths/fake_obj_in_query/get/parameters/parameter_0/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_obj_in_query/get/parameters/parameter_0/schema.md#schemadict) | | [optional] -##### Description -mapBean +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Parameter0 Schema +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**mapBean** | [schema.SchemaDictInput](../../paths/fake_obj_in_query/get/parameters/parameter_0/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_obj_in_query/get/parameters/parameter_0/schema.md#schemadict), schemas.Unset | | [optional] -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**mapBean** | [schema.SchemaDict](../../paths/fake_obj_in_query/get/parameters/parameter_0/schema.md#schemadict), schemas.Unset | | [optional] -###### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**keyword** | str | str | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_obj_in_query/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_obj_in_query/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..cb504612c73 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_obj_in_query/get/parameters/parameter_0/schema.md @@ -0,0 +1,41 @@ +# Schema +petstore_api.paths.fake_obj_in_query.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keyword** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**keyword** | str, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**keyword** | str, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md index bc9c7cd1f90..105d9383d86 100644 --- a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md @@ -25,12 +25,12 @@ petstore_api.paths.fake_parameter_collisions1_abab_self_ab.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | optional, default is unset | -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | -[header_params](#header_params) | [RequestHeaderParameters.Params](#requestheaderparametersparams), dict | | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | -[cookie_params](#cookie-params) | [RequestCookieParameters.Params](#requestcookieparametersparams), dict | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] | optional, default is unset | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | +[header_params](#header_params) | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | +[cookie_params](#cookie-params) | [CookieParametersDictInput](#cookieparameters-cookieparametersdictinput), [CookieParametersDict](#cookieparameters-cookieparametersdict) | | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -45,251 +45,209 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | - +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -1 | [Parameter0.schema](#parameter0-schema), str | | optional -aB | [Parameter1.schema](#parameter1-schema), str | | optional -Ab | [Parameter2.schema](#parameter2-schema), str | | optional -self | [Parameter3.schema](#parameter3-schema), str | | optional -A-B | [Parameter4.schema](#parameter4-schema), str | | optional - - -#### Parameter0 - -##### Parameter0 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter1 - -##### Parameter1 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter2 - -##### Parameter2 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter3 +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter3 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | - -#### Parameter4 - -##### Parameter4 Schema +**1** | str | | [optional] +**aB** | str | | [optional] +**Ab** | str | | [optional] +**A-B** | str | | [optional] +**self** | str | | [optional] -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] +**Ab** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] +**Ab** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["1"], instance["A-B"], instance["self"], ### header_params -#### RequestHeaderParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -1 | [Parameter5.schema](#parameter5-schema), str | | optional -aB | [Parameter6.schema](#parameter6-schema), str | | optional -self | [Parameter7.schema](#parameter7-schema), str | | optional -A-B | [Parameter8.schema](#parameter8-schema), str | | optional - - -#### Parameter5 - -##### Parameter5 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter6 - -##### Parameter6 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter7 - -##### Parameter7 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter8 +### HeaderParameters +``` +type: schemas.Schema +``` -##### Parameter8 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### HeaderParameters HeaderParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | +**1** | str | | [optional] +**aB** | str | | [optional] +**A-B** | str | | [optional] +**self** | str | | [optional] +#### HeaderParameters HeaderParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | a constructor +__getitem__ | str | schemas.OUTPUT_BASE_TYPES | This model has invalid python names so this method is used under the hood when you access instance["1"], instance["A-B"], instance["self"], ### path_params -#### RequestPathParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -1 | [Parameter9.schema](#parameter9-schema), str | | -aB | [Parameter10.schema](#parameter10-schema), str | | -Ab | [Parameter11.schema](#parameter11-schema), str | | -self | [Parameter12.schema](#parameter12-schema), str | | -A-B | [Parameter13.schema](#parameter13-schema), str | | - - -#### Parameter9 - -##### Parameter9 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter10 - -##### Parameter10 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter11 - -##### Parameter11 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter12 +### PathParameters +``` +type: schemas.Schema +``` -##### Parameter12 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | - -#### Parameter13 +**1** | str | | +**A-B** | str | | +**Ab** | str | | +**aB** | str | | +**self** | str | | -##### Parameter13 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**Ab** | str | | +**aB** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**Ab** | str | | +**aB** | str | | + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["1"], instance["A-B"], instance["self"], ### cookie_params -#### RequestCookieParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -1 | [Parameter14.schema](#parameter14-schema), str | | optional -aB | [Parameter15.schema](#parameter15-schema), str | | optional -Ab | [Parameter16.schema](#parameter16-schema), str | | optional -self | [Parameter17.schema](#parameter17-schema), str | | optional -A-B | [Parameter18.schema](#parameter18-schema), str | | optional - - -#### Parameter14 - -##### Parameter14 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter15 - -##### Parameter15 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter16 - -##### Parameter16 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | - -#### Parameter17 +### CookieParameters +``` +type: schemas.Schema +``` -##### Parameter17 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[CookieParametersDictInput](#cookieparameters-cookieparametersdictinput), [CookieParametersDict](#cookieparameters-cookieparametersdict) | [CookieParametersDict](#cookieparameters-cookieparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### CookieParameters CookieParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | - -#### Parameter18 +**1** | str | | [optional] +**aB** | str | | [optional] +**Ab** | str | | [optional] +**A-B** | str | | [optional] +**self** | str | | [optional] -##### Parameter18 Schema +#### CookieParameters CookieParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] +**Ab** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**aB** | str, schemas.Unset | | [optional] +**Ab** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [CookieParametersDictInput](#cookieparameters-cookieparametersdictinput), [CookieParametersDict](#cookieparameters-cookieparametersdict) | [CookieParametersDict](#cookieparameters-cookieparametersdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["1"], instance["A-B"], instance["self"], ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -299,11 +257,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..83899843412 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..79a96c27e51 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/schema.md new file mode 100644 index 00000000000..9a4c337002f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_10.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/schema.md new file mode 100644 index 00000000000..6f3468c597f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_11.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/schema.md new file mode 100644 index 00000000000..758eba4e679 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_12.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/schema.md new file mode 100644 index 00000000000..b1aa83a2121 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_13.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/schema.md new file mode 100644 index 00000000000..f86aeb5b937 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_14.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/schema.md new file mode 100644 index 00000000000..27728c01c51 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_15.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/schema.md new file mode 100644 index 00000000000..6268a42bd58 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_16.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/schema.md new file mode 100644 index 00000000000..643c1ebdc47 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_17.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/schema.md new file mode 100644 index 00000000000..77ba4a22554 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_18.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/schema.md new file mode 100644 index 00000000000..3e1574a8dde --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_2.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/schema.md new file mode 100644 index 00000000000..ef47ffa1c51 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_3.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/schema.md new file mode 100644 index 00000000000..3b294d17d11 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_4.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/schema.md new file mode 100644 index 00000000000..e19ea5fb022 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_5.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/schema.md new file mode 100644 index 00000000000..f36618d5d42 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_6.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/schema.md new file mode 100644 index 00000000000..bb8e705b043 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_7.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/schema.md new file mode 100644 index 00000000000..6a370940590 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_8.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/schema.md new file mode 100644 index 00000000000..683fc7a0e11 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_9.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2d518c1c3f9 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0a4b19dec90 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md index 20813430210..1c38a46676a 100644 --- a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md @@ -26,9 +26,9 @@ petstore_api.paths.fake_pet_id_upload_image_with_required_file.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.multipart_form_data.schema](#RequestBody-content-multipartformdata-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | -content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | +content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body. value must be one of ['multipart/form-data'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] @@ -44,57 +44,105 @@ Content-Type | Schema "multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) #### RequestBody content MultipartFormData Schema +petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | -##### Type Info -Input Type | Accessed Type | Description | Notes +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**requiredFile** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str | Additional data to pass to server | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**requiredFile** | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | file to upload | -**additionalMetadata** | str | str | Additional data to pass to server | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**requiredFile** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**requiredFile** | bytes, io.FileIO | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -petId | [Parameter0.schema](#parameter0-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**petId** | int | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of pet to update +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**petId** | int | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**petId** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -104,11 +152,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ApiResponse](../../components/schema/api_response.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) ## Security diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..95c84bde9e8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..cf6de6eb913 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requiredFile** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str | Additional data to pass to server | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**requiredFile** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**requiredFile** | bytes, io.FileIO | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0600df9d622 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md index 84db31fa139..ea49a305381 100644 --- a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md +++ b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md @@ -25,55 +25,68 @@ petstore_api.paths.fake_query_param_with_json_content_type.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict +### QueryParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -someParam | [Parameter0.content.application_json.schema](#parameter0-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**someParam** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | -#### Parameter0 +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -The internal object id +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**someParam** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | -##### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema](#parameter0-content-applicationjson-schema) -##### Parameter0 content ApplicationJson Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**someParam** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -83,11 +96,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_query_param_with_json_content_type.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/content/application_json/schema.md new file mode 100644 index 00000000000..7a7ad6d59ae --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_query_param_with_json_content_type.get.parameters.parameter_0.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..74356513622 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_query_param_with_json_content_type.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_redirection/get.md b/samples/client/petstore/python/docs/paths/fake_redirection/get.md index c459576cc31..418b86edcca 100644 --- a/samples/client/petstore/python/docs/paths/fake_redirection/get.md +++ b/samples/client/petstore/python/docs/paths/fake_redirection/get.md @@ -35,15 +35,15 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -303 | [ResponseFor303.response_cls](#responsefor303-response_cls) | see other -3XX | [ResponseFor3XX.response_cls](#responsefor3xx-response_cls) | 3XX response +303 | [ResponseFor303.ApiResponse](#responsefor303-apiresponse) | see other +3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response ## ResponseFor303 ### Description see other -### ResponseFor303 response_cls +### ResponseFor303 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -55,7 +55,7 @@ headers | Unset | headers were not defined | ### Description 3XX response -### ResponseFor3XX response_cls +### ResponseFor3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get.md b/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get.md index 37ddbbcd57f..83227711c08 100644 --- a/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get.md +++ b/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get.md @@ -25,39 +25,56 @@ petstore_api.paths.fake_ref_obj_in_query.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict +### QueryParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -mapBean | [Parameter0.schema](#parameter0-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | optional +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapBean** | [foo.FooDictInput](../../components/schema/foo.md#foodictinput), [foo.FooDict](../../components/schema/foo.md#foodict) | | [optional] -#### Parameter0 +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -mapBean +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**mapBean** | [foo.FooDictInput](../../components/schema/foo.md#foodictinput), [foo.FooDict](../../components/schema/foo.md#foodict), schemas.Unset | | [optional] -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**mapBean** | [foo.FooDict](../../components/schema/foo.md#foodict), schemas.Unset | | [optional] -###### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Foo](../../components/schema/foo.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..9925d069cd0 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_ref_obj_in_query/get/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_ref_obj_in_query.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**foo.Foo**](../../../components/schema/foo.md) | [foo.FooDictInput](../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../components/schema/foo.md#foodict) | [foo.FooDict](../../../components/schema/foo.md#foodict) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md index 07b43a92a49..91312743501 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_array_of_enums.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, list, tuple] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[array_of_enums.ArrayOfEnumsTupleInput](../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_array_of_enums.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ArrayOfEnums](../../components/schema/array_of_enums.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_of_enums.ArrayOfEnums**](../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Got named array of enums +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got named array of enums ## ResponseFor200 ### Description Got named array of enums -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_array_of_enums.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ArrayOfEnums](../../components/schema/array_of_enums.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_of_enums.ArrayOfEnums**](../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..fc0e117cf18 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_array_of_enums.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_of_enums.ArrayOfEnums**](../../../../../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../../../../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3832ed821ae --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_array_of_enums.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**array_of_enums.ArrayOfEnums**](../../../../../../../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../../../../../../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md index 8118eb3c394..da5c7f6086c 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_arraymodel.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, list, tuple] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[animal_farm.AnimalFarmTupleInput](../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_arraymodel.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnimalFarm](../../components/schema/animal_farm.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**animal_farm.AnimalFarm**](../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model ## ResponseFor200 ### Description Output model -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_arraymodel.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[AnimalFarm](../../components/schema/animal_farm.md) | list, tuple | tuple | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**animal_farm.AnimalFarm**](../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..40bb69d8fce --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_arraymodel.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**animal_farm.AnimalFarm**](../../../../../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../../../../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../../../../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../../../../../components/schema/animal_farm.md#animalfarmtuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..6a082473899 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_arraymodel.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**animal_farm.AnimalFarm**](../../../../../../../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../../../../../../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../../../../../../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../../../../../../../components/schema/animal_farm.md#animalfarmtuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md index 4fcb3fa6679..a85f412237e 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_boolean.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, bool] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[bool, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_boolean.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Boolean](../../components/schema/boolean.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean.Boolean**](../../components/schema/boolean.md) | bool | bool ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output boolean +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output boolean ## ResponseFor200 ### Description Output boolean -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | bool | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_boolean.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Boolean](../../components/schema/boolean.md) | bool | bool | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean.Boolean**](../../components/schema/boolean.md) | bool | bool ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b39885f3e9e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_boolean.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean.Boolean**](../../../../../../components/schema/boolean.md) | bool | bool diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..c7e28b628f7 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_boolean.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**boolean.Boolean**](../../../../../../../../components/schema/boolean.md) | bool | bool diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md index f5f02794a64..0700fb60eca 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_composed_one_of_number_with_validations.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_composed_one_of_number_with_validations.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ComposedOneOfDifferentTypes](../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model ## ResponseFor200 ### Description Output model -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_composed_one_of_number_with_validations.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ComposedOneOfDifferentTypes](../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..5554118bd21 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_composed_one_of_number_with_validations.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../../../../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..12b153f206a --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_composed_one_of_number_with_validations.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../../../../../../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md index d345c208f35..43439a3d712 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_enum.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, None, str] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_enum.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringEnum](../../components/schema/string_enum.md) | None, str | None, str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_enum.StringEnum**](../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output enum +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output enum ## ResponseFor200 ### Description Output enum -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_enum.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringEnum](../../components/schema/string_enum.md) | None, str | None, str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_enum.StringEnum**](../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..e3f03201ac4 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_enum.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_enum.StringEnum**](../../../../../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..64c7a3cebdb --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_enum.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_enum.StringEnum**](../../../../../../../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md index 10691c5cb0f..f6f62c4dcde 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_mammal.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_mammal.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Mammal](../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mammal.Mammal**](../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output mammal +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output mammal ## ResponseFor200 ### Description Output mammal -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_mammal.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Mammal](../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mammal.Mammal**](../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..93392b29607 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_mammal.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mammal.Mammal**](../../../../../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..cb605630849 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_mammal.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mammal.Mammal**](../../../../../../../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md index ea24c5e3da7..71c1aa0c89f 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_number.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, float, int] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[float, int, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_number.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NumberWithValidations](../../components/schema/number_with_validations.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_with_validations.NumberWithValidations**](../../components/schema/number_with_validations.md) | float, int | float, int ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output number +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output number ## ResponseFor200 ### Description Output number -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_number.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[NumberWithValidations](../../components/schema/number_with_validations.md) | float, int | float, int | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_with_validations.NumberWithValidations**](../../components/schema/number_with_validations.md) | float, int | float, int ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a3d1835d57f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_number.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_with_validations.NumberWithValidations**](../../../../../../components/schema/number_with_validations.md) | float, int | float, int diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..9c1c4837d8d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_number.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**number_with_validations.NumberWithValidations**](../../../../../../../../components/schema/number_with_validations.md) | float, int | float, int diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md index e7e0672b278..7b5dad494d5 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_object_model_with_ref_props.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_object_model_with_ref_props.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectModelWithRefProps](../../components/schema/object_model_with_ref_props.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_model_with_ref_props.ObjectModelWithRefProps**](../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model ## ResponseFor200 ### Description Output model -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_object_model_with_ref_props.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ObjectModelWithRefProps](../../components/schema/object_model_with_ref_props.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_model_with_ref_props.ObjectModelWithRefProps**](../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..3874ca486c8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_object_model_with_ref_props.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_model_with_ref_props.ObjectModelWithRefProps**](../../../../../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..f25ee591ada --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_object_model_with_ref_props.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**object_model_with_ref_props.ObjectModelWithRefProps**](../../../../../../../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md index dc4403c722d..7ce962d8565 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_refs_string.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), Unset, str] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[str, schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,29 +44,33 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.fake_refs_string.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[String](../../components/schema/string.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string.String**](../../components/schema/string.md) | str | str ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | Output string +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output string ## ResponseFor200 ### Description Output string -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,11 +80,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_refs_string.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[String](../../components/schema/string.md) | str | str | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string.String**](../../components/schema/string.md) | str | str ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9ba2b18c64d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_string.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string.String**](../../../../../../components/schema/string.md) | str | str diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..cd336d7ce08 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_refs_string.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string.String**](../../../../../../../../components/schema/string.md) | str | str diff --git a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md index f37e881b88e..6801c62550f 100644 --- a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md +++ b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md @@ -36,14 +36,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | contents without schema definition, multiple content types +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | contents without schema definition, multiple content types ## ResponseFor200 ### Description contents without schema definition, multiple content types -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put.md index 42867addbfa..730ec211d93 100644 --- a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put.md +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put.md @@ -25,111 +25,70 @@ petstore_api.paths.fake_test_query_paramters.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -pipe | [Parameter0.schema](#parameter0-schema), list, tuple | | -ioutil | [Parameter1.schema](#parameter1-schema), list, tuple | | -http | [Parameter2.schema](#parameter2-schema), list, tuple | | -url | [Parameter3.schema](#parameter3-schema), list, tuple | | -context | [Parameter4.schema](#parameter4-schema), list, tuple | | -refParam | [Parameter5.schema](#parameter5-schema), dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | - - -#### Parameter0 - -##### Parameter0 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | - -#### Parameter1 - -##### Parameter1 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | - -#### Parameter2 - -##### Parameter2 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | - -#### Parameter3 - -##### Parameter3 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | - -#### Parameter4 +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter4 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -list, tuple | tuple | | - -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | - -#### Parameter5 - -##### Parameter5 Schema - -###### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[StringWithValidation](../../components/schema/string_with_validation.md) | str | str | +**context** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md#schematupleinput), [schema_2.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md#schematuple) | | +**http** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md#schematupleinput), [schema_3.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md#schematuple) | | +**ioutil** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md#schematuple) | | +**pipe** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md#schematupleinput), [schema_4.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md#schematuple) | | +**refParam** | str | | +**url** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md#schematupleinput), [schema_5.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md#schematuple) | | + +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**context** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md#schematupleinput), [schema_2.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md#schematuple) | | +**http** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md#schematupleinput), [schema_3.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md#schematuple) | | +**ioutil** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md#schematuple) | | +**pipe** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md#schematupleinput), [schema_4.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md#schematuple) | | +**refParam** | str | | +**url** | [schema.SchemaTupleInput](../../paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md#schematupleinput), [schema_5.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md#schematuple) | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**context** | [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md#schematuple) | | +**http** | [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md#schematuple) | | +**ioutil** | [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md#schematuple) | | +**pipe** | [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md#schematuple) | | +**refParam** | str | | +**url** | [schema.SchemaTuple](../../paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md#schematuple) | | + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..3ac200eb986 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..f5676c913ee --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md new file mode 100644 index 00000000000..dfb0600aa33 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_2.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md new file mode 100644 index 00000000000..534217ac208 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_3.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md new file mode 100644 index 00000000000..d4491de20de --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_4.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_5/schema.md b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_5/schema.md new file mode 100644 index 00000000000..b7e5c008bd8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_test_query_paramters/put/parameters/parameter_5/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_5.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**string_with_validation.StringWithValidation**](../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md index f913e6f5c26..03de1ee1203 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_upload_download_file.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_octet_stream.schema](#RequestBody-content-applicationoctetstream-schema), bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/octet-stream' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/octet-stream' | Selects the schema and serialization of the request body. value must be one of ['application/octet-stream'] accept_content_types | typing.Tuple[str] | default is ("application/octet-stream", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -41,32 +41,36 @@ Content-Type | Schema "application/octet-stream" | [content.application_octet_stream.Schema](#requestbody-content-applicationoctetstream-schema) #### RequestBody content ApplicationOctetStream Schema +petstore_api.paths.fake_upload_download_file.post.request_body.content.application_octet_stream.schema +``` +type: schemas.Schema +``` ##### Description file to upload -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | file to upload | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_octet_stream.schema](#responsefor200-content-applicationoctetstream-schema) | | +[body](#responsefor200-body) | bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -76,14 +80,18 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationOctetStream Schema +petstore_api.paths.fake_upload_download_file.post.responses.response_200.content.application_octet_stream.schema +``` +type: schemas.Schema +``` ##### Description file to download -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | file to download | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/request_body/content/application_octet_stream/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/request_body/content/application_octet_stream/schema.md new file mode 100644 index 00000000000..53cdf24dc19 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/request_body/content/application_octet_stream/schema.md @@ -0,0 +1,13 @@ +# Schema +petstore_api.paths.fake_upload_download_file.post.request_body.content.application_octet_stream.schema +``` +type: schemas.Schema +``` + +## Description +file to upload + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/responses/response_200/content/application_octet_stream/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/responses/response_200/content/application_octet_stream/schema.md new file mode 100644 index 00000000000..1edf442251d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post/responses/response_200/content/application_octet_stream/schema.md @@ -0,0 +1,13 @@ +# Schema +petstore_api.paths.fake_upload_download_file.post.responses.response_200.content.application_octet_stream.schema +``` +type: schemas.Schema +``` + +## Description +file to download + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md index 31f837d1150..53e37e91eb7 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_upload_file.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.multipart_form_data.schema](#RequestBody-content-multipartformdata-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body. value must be one of ['multipart/form-data'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -41,36 +41,67 @@ Content-Type | Schema "multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) #### RequestBody content MultipartFormData Schema +petstore_api.paths.fake_upload_file.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | -##### Type Info -Input Type | Accessed Type | Description | Notes +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str | Additional data to pass to server | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**file** | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | file to upload | -**additionalMetadata** | str | str | Additional data to pass to server | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**file** | bytes, io.FileIO | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -80,11 +111,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_upload_file.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ApiResponse](../../components/schema/api_response.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..1c43294b0e1 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.fake_upload_file.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str | Additional data to pass to server | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**file** | bytes, io.FileIO | file to upload | +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..58caf7be4a8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_upload_file.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md index 2e00ed06448..aa8d67b4c2f 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md @@ -25,8 +25,8 @@ petstore_api.paths.fake_upload_files.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.multipart_form_data.schema](#RequestBody-content-multipartformdata-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema.SchemaDict](../../paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body. value must be one of ['multipart/form-data'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -41,47 +41,118 @@ Content-Type | Schema "multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) #### RequestBody content MultipartFormData Schema +petstore_api.paths.fake_upload_files.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | -##### Type Info -Input Type | Accessed Type | Description | Notes +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**files** | [FilesTupleInput](#requestbody-content-multipartformdata-schema-filestupleinput), [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**files** | list, tuple | [properties.Files](#requestbody-content-multipartformdata-schema-properties-files) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] -#### RequestBody content MultipartFormData Schema properties Files +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**files** | [FilesTupleInput](#requestbody-content-multipartformdata-schema-filestupleinput), [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**files** | [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple), schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +#### RequestBody content MultipartFormData Schema +``` +type: schemas.Schema +``` -##### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FilesTupleInput](#requestbody-content-multipartformdata-schema-filestupleinput), [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple) | [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple) | + +##### RequestBody content MultipartFormData Schema FilesTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + bytes, + io.FileIO, + io.BufferedReader, + schemas.FileIO + ], + ], + typing.Tuple[ + typing.Union[ + bytes, + io.FileIO, + io.BufferedReader, + schemas.FileIO + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | | + +##### RequestBody content MultipartFormData Schema FilesTuple +``` +base class: typing.Tuple[ + typing.Union[bytes, schemas.FileIO], + ... +] +``` +###### __new__ method +Argument | Type +-------- | ------ +arg | [FilesTupleInput](#requestbody-content-multipartformdata-schema-filestupleinput), [FilesTuple](#requestbody-content-multipartformdata-schema-filestuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | bytes, io.FileIO | This method is used under the hood when instance[0] is called ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -91,11 +162,15 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_upload_files.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[ApiResponse](../../components/schema/api_response.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..95d6cdeaca8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,95 @@ +# Schema +petstore_api.paths.fake_upload_files.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYPES]] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**files** | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**files** | [FilesTuple](#filestuple), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +# Files +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) | [FilesTuple](#filestuple) | + +## FilesTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + bytes, + io.FileIO, + io.BufferedReader, + schemas.FileIO + ], + ], + typing.Tuple[ + typing.Union[ + bytes, + io.FileIO, + io.BufferedReader, + schemas.FileIO + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +bytes, io.FileIO, io.BufferedReader | | + +## FilesTuple +``` +base class: typing.Tuple[ + typing.Union[bytes, schemas.FileIO], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [FilesTupleInput](#filestupleinput), [FilesTuple](#filestuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | bytes, io.FileIO | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a42b11cd8e9 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_upload_files.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**api_response.ApiResponse**](../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md index 7134ebf0d4d..e59c0f917f5 100644 --- a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md @@ -36,23 +36,23 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -1XX | [ResponseFor1XX.response_cls](#responsefor1xx-response_cls) | 1XX response -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | success -2XX | [ResponseFor2XX.response_cls](#responsefor2xx-response_cls) | 2XX response -3XX | [ResponseFor3XX.response_cls](#responsefor3xx-response_cls) | 3XX response -4XX | [ResponseFor4XX.response_cls](#responsefor4xx-response_cls) | 4XX response -5XX | [ResponseFor5XX.response_cls](#responsefor5xx-response_cls) | 5XX response +1XX | [ResponseFor1XX.ApiResponse](#responsefor1xx-apiresponse) | 1XX response +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +2XX | [ResponseFor2XX.ApiResponse](#responsefor2xx-apiresponse) | 2XX response +3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response +4XX | [ResponseFor4XX.ApiResponse](#responsefor4xx-apiresponse) | 4XX response +5XX | [ResponseFor5XX.ApiResponse](#responsefor5xx-apiresponse) | 5XX response ## ResponseFor1XX ### Description 1XX response -### ResponseFor1XX response_cls +### ResponseFor1XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor1xx-body) | [content.application_json.schema](#responsefor1xx-content-applicationjson-schema) | | +[body](#responsefor1xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor1XX Body @@ -62,22 +62,26 @@ Content-Type | Schema ### Body Details #### ResponseFor1XX content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_1xx.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor200 ### Description success -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [content.application_json.schema](#responsefor200-content-applicationjson-schema) | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -87,22 +91,26 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor2XX ### Description 2XX response -### ResponseFor2XX response_cls +### ResponseFor2XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor2xx-body) | [content.application_json.schema](#responsefor2xx-content-applicationjson-schema) | | +[body](#responsefor2xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor2XX Body @@ -112,22 +120,26 @@ Content-Type | Schema ### Body Details #### ResponseFor2XX content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_2xx.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor3XX ### Description 3XX response -### ResponseFor3XX response_cls +### ResponseFor3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor3xx-body) | [content.application_json.schema](#responsefor3xx-content-applicationjson-schema) | | +[body](#responsefor3xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor3XX Body @@ -137,22 +149,26 @@ Content-Type | Schema ### Body Details #### ResponseFor3XX content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_3xx.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor4XX ### Description 4XX response -### ResponseFor4XX response_cls +### ResponseFor4XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor4xx-body) | [content.application_json.schema](#responsefor4xx-content-applicationjson-schema) | | +[body](#responsefor4xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor4XX Body @@ -162,22 +178,26 @@ Content-Type | Schema ### Body Details #### ResponseFor4XX content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_4xx.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## ResponseFor5XX ### Description 5XX response -### ResponseFor5XX response_cls +### ResponseFor5XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor5xx-body) | [content.application_json.schema](#responsefor5xx-content-applicationjson-schema) | | +[body](#responsefor5xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | ### ResponseFor5XX Body @@ -187,11 +207,15 @@ Content-Type | Schema ### Body Details #### ResponseFor5XX content ApplicationJson Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_5xx.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | ## Servers diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_1xx/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_1xx/content/application_json/schema.md new file mode 100644 index 00000000000..fd6160a102d --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_1xx/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_1xx.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..ccfe9e73257 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_2xx/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_2xx/content/application_json/schema.md new file mode 100644 index 00000000000..6b4f7d26d15 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_2xx/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_2xx.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_3xx/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_3xx/content/application_json/schema.md new file mode 100644 index 00000000000..9934ce3c6d8 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_3xx/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_3xx.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_4xx/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_4xx/content/application_json/schema.md new file mode 100644 index 00000000000..07dd90323a6 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_4xx/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_4xx.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_5xx/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_5xx/content/application_json/schema.md new file mode 100644 index 00000000000..e896706e1d5 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get/responses/response_5xx/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.fake_wild_card_responses.get.responses.response_5xx.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | diff --git a/samples/client/petstore/python/docs/paths/foo/get.md b/samples/client/petstore/python/docs/paths/foo/get.md index 283ec2aab45..b97c0fddbe7 100644 --- a/samples/client/petstore/python/docs/paths/foo/get.md +++ b/samples/client/petstore/python/docs/paths/foo/get.md @@ -35,18 +35,18 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [Default.response_cls](#default-response_cls) | response +default | [Default.ApiResponse](#default-apiresponse) | response ## Default ### Description response -### Default response_cls +### Default ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#default-body) | [content.application_json.schema](#default-content-applicationjson-schema) | | +[body](#default-body) | [SchemaDict](#default-content-applicationjson-schema-schemadict) | | headers | Unset | headers were not defined | ### Default Body @@ -56,17 +56,45 @@ Content-Type | Schema ### Body Details #### Default content ApplicationJson Schema +petstore_api.paths.foo.get.responses.response_default.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#default-content-applicationjson-schema-schemadictinput), [SchemaDict](#default-content-applicationjson-schema-schemadict) | [SchemaDict](#default-content-applicationjson-schema-schemadict) | + +##### Default content ApplicationJson Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**string** | [foo.FooDictInput](../../components/schema/foo.md#foodictinput), [foo.FooDict](../../components/schema/foo.md#foodict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**string** | [**Foo**](../../components/schema/foo.md), dict, schemas.immutabledict | [**Foo**](../../components/schema/foo.md) | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### Default content ApplicationJson Schema SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**string** | [foo.FooDictInput](../../components/schema/foo.md#foodictinput), [foo.FooDict](../../components/schema/foo.md#foodict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**string** | [foo.FooDict](../../components/schema/foo.md#foodict), schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#default-content-applicationjson-schema-schemadictinput), [SchemaDict](#default-content-applicationjson-schema-schemadict) | [SchemaDict](#default-content-applicationjson-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ## Servers diff --git a/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md new file mode 100644 index 00000000000..fd009dd012c --- /dev/null +++ b/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md @@ -0,0 +1,40 @@ +# Schema +petstore_api.paths.foo.get.responses.response_default.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**string** | [foo.FooDictInput](../../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../../components/schema/foo.md#foodict) | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**string** | [foo.FooDictInput](../../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**string** | [foo.FooDict](../../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/get.md b/samples/client/petstore/python/docs/paths/get.md deleted file mode 100644 index 2446b10029e..00000000000 --- a/samples/client/petstore/python/docs/paths/get.md +++ /dev/null @@ -1,79 +0,0 @@ -petstore_api.paths..operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| slash_route | [FakeApi](../../apis/tags/fake_api.md) | This api is only for tag=fake | -| get | ApiForGet | This api is only for this endpoint | -| get | | This api is only for path=/ | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Summary | slash route | -| Path | "/" | -| HTTP Method | get | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -server_index | typing.Optional[int] | default is None | Allows one to select a different server -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = http://petstore.swagger.io:80/v2 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../../servers/server_0.md) | petstore server -1 | [Server1](../../../servers/server_1.md) | The local server -2 | [Server2](../../../servers/server_2.md) | staging server with no variables - -## Code Sample - -```python -import petstore_api -from petstore_api.configurations import api_configuration -from petstore_api.apis.tags import fake_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with petstore_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = fake_api.FakeApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # slash route - api_response = api_instance.slash_route() - pprint(api_response) - except petstore_api.ApiException as e: - print("Exception when calling FakeApi->slash_route: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to FakeApi API]](../../apis/tags/fake_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/petstore/python/docs/paths/pet/post.md b/samples/client/petstore/python/docs/paths/pet/post.md index 68a19faf9ad..154ddefab55 100644 --- a/samples/client/petstore/python/docs/paths/pet/post.md +++ b/samples/client/petstore/python/docs/paths/pet/post.md @@ -27,8 +27,8 @@ petstore_api.paths.pet.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_pet.md) | typing.Union[[Pet.content.application_json.schema](../../components/request_bodies/request_body_pet.md#content-applicationjson-schema), [Pet.content.application_xml.schema](../../components/request_bodies/request_body_pet.md#content-applicationxml-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_pet.md) | typing.Union[[pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json', 'application/xml'] security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1, 2] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -40,15 +40,15 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success -405 | [ResponseFor405.response_cls](#responsefor405-response_cls) | Invalid input +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input ## ResponseFor405 ### Description Invalid input -### ResponseFor405 response_cls +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet/put.md b/samples/client/petstore/python/docs/paths/pet/put.md index 477be3b033f..823e9c36230 100644 --- a/samples/client/petstore/python/docs/paths/pet/put.md +++ b/samples/client/petstore/python/docs/paths/pet/put.md @@ -26,8 +26,8 @@ petstore_api.paths.pet.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_pet.md) | typing.Union[[Pet.content.application_json.schema](../../components/request_bodies/request_body_pet.md#content-applicationjson-schema), [Pet.content.application_xml.schema](../../components/request_bodies/request_body_pet.md#content-applicationxml-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_pet.md) | typing.Union[[pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json', 'application/xml'] security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -39,16 +39,16 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid ID supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | Pet not found -405 | [ResponseFor405.response_cls](#responsefor405-response_cls) | Validation exception +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Validation exception ## ResponseFor400 ### Description Invalid ID supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -60,7 +60,7 @@ headers | Unset | headers were not defined | ### Description Pet not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -72,7 +72,7 @@ headers | Unset | headers were not defined | ### Description Validation exception -### ResponseFor405 response_cls +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md index fd844e15a3d..9fe8c6858c6 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md @@ -27,54 +27,66 @@ petstore_api.paths.pet_find_by_status.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1, 2] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -status | [Parameter0.schema](#parameter0-schema), list, tuple | | +### QueryParameters +``` +type: schemas.Schema +``` +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -#### Parameter0 +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [schema.SchemaTupleInput](../../paths/pet_find_by_status/get/parameters/parameter_0/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/pet_find_by_status/get/parameters/parameter_0/schema.md#schematuple) | | -##### Description -Status values that need to be considered for filter +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Parameter0 Schema +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**status** | [schema.SchemaTupleInput](../../paths/pet_find_by_status/get/parameters/parameter_0/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/pet_find_by_status/get/parameters/parameter_0/schema.md#schematuple) | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**status** | [schema.SchemaTuple](../../paths/pet_find_by_status/get/parameters/parameter_0/schema.md#schematuple) | | -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | must be one of ["available", "pending", "sold"] if omitted the server will use the default value of available +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessfulXmlAndJsonArrayOfPet.response_cls](../../components/responses/response_successful_xml_and_json_array_of_pet.md#response_successful_xml_and_json_array_of_petresponse_cls) | successful operation, multiple content types -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid status value +200 | [SuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid status value ## ResponseFor400 ### Description Invalid status value -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_status/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_find_by_status/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..078b7ad5dd3 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_find_by_status/get/parameters/parameter_0/schema.md @@ -0,0 +1,52 @@ +# Schema +petstore_api.paths.pet_find_by_status.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Literal[ + "available", + "pending", + "sold" + ], + ], + typing.Tuple[ + typing.Literal[ + "available", + "pending", + "sold" + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +typing.Literal["available", "pending", "sold"] | | must be one of ["available", "pending", "sold"] if omitted the server will use the default value of available + +## SchemaTuple +``` +base class: typing.Tuple[ + typing.Literal["available", "pending", "sold"], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | typing.Literal["available", "pending", "sold"] | must be one of ["available", "pending", "sold"] if omitted the server will use the default value of available This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md index 871bb8e4fda..85cad2b8f8d 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md @@ -27,53 +27,65 @@ petstore_api.paths.pet_find_by_tags.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -tags | [Parameter0.schema](#parameter0-schema), list, tuple | | +### QueryParameters +``` +type: schemas.Schema +``` +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -#### Parameter0 +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [schema.SchemaTupleInput](../../paths/pet_find_by_tags/get/parameters/parameter_0/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/pet_find_by_tags/get/parameters/parameter_0/schema.md#schematuple) | | -##### Description -Tags to filter by +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Parameter0 Schema +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**tags** | [schema.SchemaTupleInput](../../paths/pet_find_by_tags/get/parameters/parameter_0/schema.md#schematupleinput), [schema.SchemaTuple](../../paths/pet_find_by_tags/get/parameters/parameter_0/schema.md#schematuple) | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple | tuple | | +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**tags** | [schema.SchemaTuple](../../paths/pet_find_by_tags/get/parameters/parameter_0/schema.md#schematuple) | | -###### List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [RefSuccessfulXmlAndJsonArrayOfPet.response_cls](../../components/responses/response_ref_successful_xml_and_json_array_of_pet.md#response_ref_successful_xml_and_json_array_of_petresponse_cls) | successful operation, multiple content types -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid tag value +200 | [RefSuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_ref_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid tag value ## ResponseFor400 ### Description Invalid tag value -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..cdc658ca8d0 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get/parameters/parameter_0/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.pet_find_by_tags.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) | [SchemaTuple](#schematuple) | + +## SchemaTupleInput +``` +type: typing.Union[ + typing.List[ + str, + ], + typing.Tuple[ + str, + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +str | | + +## SchemaTuple +``` +base class: typing.Tuple[ + str, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [SchemaTupleInput](#schematupleinput), [SchemaTuple](#schematuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | str | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md index 6d0b906fe9f..36922d26d3e 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md @@ -26,66 +26,103 @@ petstore_api.paths.pet_pet_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[header_params](#header_params) | [RequestHeaderParameters.Params](#requestheaderparametersparams), dict | | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[header_params](#header_params) | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### header_params -#### RequestHeaderParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -api_key | [Parameter0.schema](#parameter0-schema), str | | optional - - -#### Parameter0 +### HeaderParameters +``` +type: schemas.Schema +``` -##### Parameter0 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### HeaderParameters HeaderParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | +**api_key** | str | | [optional] + +#### HeaderParameters HeaderParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**api_key** | str, schemas.Unset | | [optional] + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**api_key** | str, schemas.Unset | | [optional] + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | [HeaderParametersDict](#headerparameters-headerparametersdict) | a constructor ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -petId | [Parameter1.schema](#parameter1-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**petId** | int | | -#### Parameter1 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -Pet id to delete +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**petId** | int | | -##### Parameter1 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**petId** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid pet value +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid pet value ## ResponseFor400 ### Description Invalid pet value -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..71fd9fa8910 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.delete.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..4c524f5871f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/delete/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.delete.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md index 154195d0764..fe023095041 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md @@ -27,54 +27,71 @@ petstore_api.paths.pet_pet_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -petId | [Parameter0.schema](#parameter0-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**petId** | int | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of pet to return +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**petId** | int | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**petId** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid ID supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | Pet not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_xml.schema](#responsefor200-content-applicationxml-schema), [content.application_json.schema](#responsefor200-content-applicationjson-schema)] | | +[body](#responsefor200-body) | typing.Union[[pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDict](../../components/schema/pet.md#petdict)] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -85,24 +102,32 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationXml Schema +petstore_api.paths.pet_pet_id.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Pet](../../components/schema/pet.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pet.Pet**](../../components/schema/pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.pet_pet_id.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[RefPet](../../components/schema/ref_pet.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_pet.RefPet**](../../components/schema/ref_pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) ## ResponseFor400 ### Description Invalid ID supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -114,7 +139,7 @@ headers | Unset | headers were not defined | ### Description Pet not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..2d5205b3405 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..600195b98ca --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**ref_pet.RefPet**](../../../../../../../../components/schema/ref_pet.md) | [pet.PetDictInput](../../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md new file mode 100644 index 00000000000..28fb3f34f28 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**pet.Pet**](../../../../../../../../components/schema/pet.md) | [pet.PetDictInput](../../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md index 4c3bae48d84..3229b1e492e 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md @@ -26,9 +26,9 @@ petstore_api.paths.pet_pet_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_x_www_form_urlencoded.schema](#RequestBody-content-applicationxwwwformurlencoded-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | -content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md#schemadictinput), [schema.SchemaDict](../../paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md#schemadict), schemas.Unset] | optional, default is unset | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | +content_type | str | optional, default is 'application/x-www-form-urlencoded' | Selects the schema and serialization of the request body. value must be one of ['application/x-www-form-urlencoded'] security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0, 1] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -43,53 +43,101 @@ Content-Type | Schema "application/x-www-form-urlencoded" | [content.application_x_www_form_urlencoded.Schema](#requestbody-content-applicationxwwwformurlencoded-schema) #### RequestBody content ApplicationXWwwFormUrlencoded Schema +petstore_api.paths.pet_pet_id.post.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | + +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**name** | str | Updated name of the pet | [optional] +**status** | str | Updated status of the pet | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str | str | Updated name of the pet | [optional] -**status** | str | str | Updated status of the pet | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content ApplicationXWwwFormUrlencoded Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | Updated name of the pet | [optional] +**status** | str, schemas.Unset | Updated status of the pet | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | Updated name of the pet | [optional] +**status** | str, schemas.Unset | Updated status of the pet | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-applicationxwwwformurlencoded-schema-schemadictinput), [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | [SchemaDict](#requestbody-content-applicationxwwwformurlencoded-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -petId | [Parameter0.schema](#parameter0-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**petId** | int | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of pet that needs to be updated +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**petId** | int | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**petId** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -405 | [ResponseFor405.response_cls](#responsefor405-response_cls) | Invalid input +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input ## ResponseFor405 ### Description Invalid input -### ResponseFor405 response_cls +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/post/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/post/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..3f013696df2 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/post/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id.post.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md new file mode 100644 index 00000000000..b4a121aaae3 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.pet_pet_id.post.request_body.content.application_x_www_form_urlencoded.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | str | Updated name of the pet | [optional] +**status** | str | Updated status of the pet | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | Updated name of the pet | [optional] +**status** | str, schemas.Unset | Updated status of the pet | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**name** | str, schemas.Unset | Updated name of the pet | [optional] +**status** | str, schemas.Unset | Updated status of the pet | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post.md b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post.md index e929b0816ee..5e82b5b93d3 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post.md @@ -26,9 +26,9 @@ petstore_api.paths.pet_pet_id_upload_image.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.multipart_form_data.schema](#RequestBody-content-multipartformdata-schema), Unset, dict, schemas.immutabledict] | optional, default is unset | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | -content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[schema.SchemaDictInput](../../paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md#schemadictinput), [schema.SchemaDict](../../paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md#schemadict), schemas.Unset] | optional, default is unset | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | +content_type | str | optional, default is 'multipart/form-data' | Selects the schema and serialization of the request body. value must be one of ['multipart/form-data'] accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client security_index | typing.Optional[int] | default is None | Allows one to select a different [security](#security) definition. If not None, must be one of [0] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] @@ -44,46 +44,94 @@ Content-Type | Schema "multipart/form-data" | [content.multipart_form_data.Schema](#requestbody-content-multipartformdata-schema) #### RequestBody content MultipartFormData Schema +petstore_api.paths.pet_pet_id_upload_image.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | + +##### RequestBody content MultipartFormData Schema SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -dict, schemas.immutabledict | schemas.immutabledict | | +**additionalMetadata** | str | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**additionalMetadata** | str | str | Additional data to pass to server | [optional] -**file** | bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | file to upload | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema | schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO | any string name can be used but the value must be the correct type | [optional] +##### RequestBody content MultipartFormData Schema SchemaDict +``` +base class: schemas.immutabledict[str, str] +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, io.BufferedReader, schemas.Unset | file to upload | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, schemas.Unset | file to upload | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#requestbody-content-multipartformdata-schema-schemadictinput), [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | [SchemaDict](#requestbody-content-multipartformdata-schema-schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -petId | [Parameter0.schema](#parameter0-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**petId** | int | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of pet to update +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**petId** | int | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**petId** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessWithJsonApiResponse.response_cls](../../components/responses/response_success_with_json_api_response.md#response_success_with_json_api_responseresponse_cls) | successful operation +200 | [SuccessWithJsonApiResponse.ApiResponse](../../components/responses/response_success_with_json_api_response.md#apiresponse) | successful operation ## Security diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..e8c009b2adc --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.pet_pet_id_upload_image.post.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md new file mode 100644 index 00000000000..e77f0e7137f --- /dev/null +++ b/samples/client/petstore/python/docs/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.md @@ -0,0 +1,44 @@ +# Schema +petstore_api.paths.pet_pet_id_upload_image.post.request_body.content.multipart_form_data.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | + +## SchemaDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additionalMetadata** | str | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, io.BufferedReader | file to upload | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## SchemaDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, io.BufferedReader, schemas.Unset | file to upload | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**additionalMetadata** | str, schemas.Unset | Additional data to pass to server | [optional] +**file** | bytes, io.FileIO, schemas.Unset | file to upload | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [SchemaDictInput](#schemadictinput), [SchemaDict](#schemadict) | [SchemaDict](#schemadict) | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties diff --git a/samples/client/petstore/python/docs/paths/solidus/get.md b/samples/client/petstore/python/docs/paths/solidus/get.md index 06e06c5e11f..320d4b48f26 100644 --- a/samples/client/petstore/python/docs/paths/solidus/get.md +++ b/samples/client/petstore/python/docs/paths/solidus/get.md @@ -35,7 +35,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/store_inventory/get.md b/samples/client/petstore/python/docs/paths/store_inventory/get.md index 41344abc20d..131a61faf2f 100644 --- a/samples/client/petstore/python/docs/paths/store_inventory/get.md +++ b/samples/client/petstore/python/docs/paths/store_inventory/get.md @@ -39,7 +39,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessInlineContentAndHeader.response_cls](../../components/responses/response_success_inline_content_and_header.md#response_success_inline_content_and_headerresponse_cls) | successful operation +200 | [SuccessInlineContentAndHeader.ApiResponse](../../components/responses/response_success_inline_content_and_header.md#apiresponse) | successful operation ## Security diff --git a/samples/client/petstore/python/docs/paths/store_order/post.md b/samples/client/petstore/python/docs/paths/store_order/post.md index 72b1886ac48..ac1267e4b65 100644 --- a/samples/client/petstore/python/docs/paths/store_order/post.md +++ b/samples/client/petstore/python/docs/paths/store_order/post.md @@ -25,8 +25,8 @@ petstore_api.paths.store_order.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file @@ -44,30 +44,34 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.store_order.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Order](../../components/schema/order.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid Order +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid Order ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_xml.schema](#responsefor200-content-applicationxml-schema), [content.application_json.schema](#responsefor200-content-applicationjson-schema)] | | +[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -78,24 +82,32 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationXml Schema +petstore_api.paths.store_order.post.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Order](../../components/schema/order.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.store_order.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Order](../../components/schema/order.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) ## ResponseFor400 ### Description Invalid Order -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/store_order/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7632322d872 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a09e4f632de --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md new file mode 100644 index 00000000000..7cda09a2aec --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order.post.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md index 320f2efcc06..a106de73f0a 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md @@ -26,47 +26,64 @@ petstore_api.paths.store_order_order_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -order_id | [Parameter0.schema](#parameter0-schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**order_id** | str | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of the order that needs to be deleted +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**order_id** | str | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**order_id** | str | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid ID supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | Order not found +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found ## ResponseFor400 ### Description Invalid ID supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -78,7 +95,7 @@ headers | Unset | headers were not defined | ### Description Order not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/delete/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/delete/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..55bb1d8a63e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/delete/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order_order_id.delete.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md index 6539e8ffc90..e50ed2f2b6c 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md @@ -26,53 +26,70 @@ petstore_api.paths.store_order_order_id.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -order_id | [Parameter0.schema](#parameter0-schema), int | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**order_id** | int | | -#### Parameter0 +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -##### Description -ID of pet that needs to be fetched +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**order_id** | int | | -##### Parameter0 Schema +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**order_id** | int | | -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 64 bit integer +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid ID supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | Order not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_xml.schema](#responsefor200-content-applicationxml-schema), [content.application_json.schema](#responsefor200-content-applicationjson-schema)] | | +[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -83,24 +100,32 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationXml Schema +petstore_api.paths.store_order_order_id.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Order](../../components/schema/order.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.store_order_order_id.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[Order](../../components/schema/order.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) ## ResponseFor400 ### Description Invalid ID supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -112,7 +137,7 @@ headers | Unset | headers were not defined | ### Description Order not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..4af52f47f51 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order_order_id.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 64 bit integer diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..5310ec02f7b --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order_order_id.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md new file mode 100644 index 00000000000..920a97ae989 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.store_order_order_id.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**order.Order**](../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/user/post.md b/samples/client/petstore/python/docs/paths/user/post.md index b3767a06fd1..f4188ea1469 100644 --- a/samples/client/petstore/python/docs/paths/user/post.md +++ b/samples/client/petstore/python/docs/paths/user/post.md @@ -26,8 +26,8 @@ petstore_api.paths.user.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -44,25 +44,29 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.user.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[User](../../components/schema/user.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [Default.response_cls](#default-response_cls) | successful operation +default | [Default.ApiResponse](#default-apiresponse) | successful operation ## Default ### Description successful operation -### Default response_cls +### Default ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user/post/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..4ea56077f18 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/docs/paths/user_create_with_array/post.md b/samples/client/petstore/python/docs/paths/user_create_with_array/post.md index cfa62e3a710..00378e66704 100644 --- a/samples/client/petstore/python/docs/paths/user_create_with_array/post.md +++ b/samples/client/petstore/python/docs/paths/user_create_with_array/post.md @@ -25,8 +25,8 @@ petstore_api.paths.user_create_with_array.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_user_array.md) | typing.Union[[UserArray.content.application_json.schema](../../components/request_bodies/request_body_user_array.md#content-applicationjson-schema), list, tuple] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_user_array.md) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [Default.response_cls](#default-response_cls) | successful operation +default | [Default.ApiResponse](#default-apiresponse) | successful operation ## Default ### Description successful operation -### Default response_cls +### Default ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_create_with_list/post.md b/samples/client/petstore/python/docs/paths/user_create_with_list/post.md index 872a553fca8..40e9852c001 100644 --- a/samples/client/petstore/python/docs/paths/user_create_with_list/post.md +++ b/samples/client/petstore/python/docs/paths/user_create_with_list/post.md @@ -25,8 +25,8 @@ petstore_api.paths.user_create_with_list.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[**body**](../../components/request_bodies/request_body_ref_user_array.md) | typing.Union[[RefUserArray.content.application_json.schema](../../components/request_bodies/request_body_ref_user_array.md#content-applicationjson-schema), list, tuple] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[**body**](../../components/request_bodies/request_body_ref_user_array.md) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [Default.response_cls](#default-response_cls) | successful operation +default | [Default.ApiResponse](#default-apiresponse) | successful operation ## Default ### Description successful operation -### Default response_cls +### Default ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_login/get.md b/samples/client/petstore/python/docs/paths/user_login/get.md index 02c9ce4ff40..58f7f4053a9 100644 --- a/samples/client/petstore/python/docs/paths/user_login/get.md +++ b/samples/client/petstore/python/docs/paths/user_login/get.md @@ -25,66 +25,72 @@ petstore_api.paths.user_login.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### query_params -#### RequestQueryParameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -username | [Parameter0.schema](#parameter0-schema), str | | -password | [Parameter1.schema](#parameter1-schema), str | | - - -#### Parameter0 - -##### Description -The user name for login +### QueryParameters +``` +type: schemas.Schema +``` -##### Parameter0 Schema +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | -###### Type Info -Input Type | Accessed Type | Description | Notes +#### QueryParameters QueryParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | +**password** | str | | +**username** | str | | -#### Parameter1 - -##### Description -The password for login in clear text - -##### Parameter1 Schema - -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +#### QueryParameters QueryParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**password** | str | | +**username** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**password** | str | | +**username** | str | | + +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | [QueryParametersDict](#queryparameters-queryparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid username/password supplied +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username/password supplied ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_xml.schema](#responsefor200-content-applicationxml-schema), [content.application_json.schema](#responsefor200-content-applicationjson-schema)] | | -[headers](#headers) | [Headers](#headers) | | +[body](#responsefor200-body) | typing.Union[str, str] | | +[headers](#headers) | [HeadersDict](#headers-headersdict) | | ### ResponseFor200 Body Content-Type | Schema @@ -92,28 +98,73 @@ Content-Type | Schema "application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) "application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) -### Headers -Key | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Rate-Limit | [headers.header_x_rate_limit.content.application_json.schema](#responsefor200-headers-xratelimit-content-applicationjson-schema) | | -int32 | [Int32JsonContentTypeHeader.content.application_json.schema](../../../components/headers/header_int32_json_content_type_header.md#content-applicationjson-schema) | | -X-Expires-After | [headers.header_x_expires_after.schema](#responsefor200-headers-xexpiresafter-schema) | | optional -ref-content-schema-header | [RefContentSchemaHeader.content.application_json.schema](../../../components/headers/header_ref_content_schema_header.md#content-applicationjson-schema) | | -numberHeader | [NumberHeader.schema](../../../components/headers/header_number_header.md#schema) | | optional - ### Body Details #### ResponseFor200 content ApplicationXml Schema +petstore_api.paths.user_login.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` -##### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str | str | | +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.user_login.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | -##### Type Info -Input Type | Accessed Type | Description | Notes +### Headers +#### ResponseFor200 Headers +``` +type: schemas.Schema +``` + +##### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | + +##### ResponseFor200 Headers HeadersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -str | str | | +**X-Rate-Limit** | int | | +**int32** | int | | +**ref-content-schema-header** | str | | +**X-Expires-After** | str, datetime.datetime | | [optional] +**numberHeader** | str | | [optional] + +##### ResponseFor200 Headers HeadersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +###### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**int32** | int | | +**numberHeader** | str, schemas.Unset | | [optional] + +###### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**int32** | int | | +**numberHeader** | str, schemas.Unset | | [optional] + +###### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | a constructor +__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], ### Header Details #### ResponseFor200 headers XRateLimit @@ -127,29 +178,37 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#responsefor200-headers-xratelimit-content-applicationjson-schema) ##### ResponseFor200 headers XRateLimit content ApplicationJson Schema +petstore_api.paths.user_login.get.responses.response_200.headers.header_x_rate_limit.content.application_json.schema +``` +type: schemas.Schema +``` -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -int | int | | value must be a 32 bit integer +###### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 32 bit integer #### ResponseFor200 headers XExpiresAfter ##### Description date in UTC when token expires ##### ResponseFor200 headers XExpiresAfter Schema +petstore_api.paths.user_login.get.responses.response_200.headers.header_x_expires_after.schema +``` +type: schemas.Schema +``` -###### Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime.datetime | str | | value must conform to RFC-3339 date-time +###### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | value must conform to RFC-3339 date-time ## ResponseFor400 ### Description Invalid username/password supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_0/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_0/schema.md new file mode 100644 index 00000000000..18abb674678 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_0/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.parameters.parameter_0.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_1/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_1/schema.md new file mode 100644 index 00000000000..77b494f0cbb --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/parameters/parameter_1/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.parameters.parameter_1.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8cc0d0d70d9 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_xml/schema.md new file mode 100644 index 00000000000..b0615fa74b3 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str | str | diff --git a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_expires_after/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_expires_after/schema.md new file mode 100644 index 00000000000..bd4cdc5c03c --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_expires_after/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.responses.response_200.headers.header_x_expires_after.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +str, datetime.datetime | str | value must conform to RFC-3339 date-time diff --git a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/content/application_json/schema.md new file mode 100644 index 00000000000..5d295fba63e --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_login.get.responses.response_200.headers.header_x_rate_limit.content.application_json.schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int | int | value must be a 32 bit integer diff --git a/samples/client/petstore/python/docs/paths/user_logout/get.md b/samples/client/petstore/python/docs/paths/user_logout/get.md index 18dcf4d2026..8001b251746 100644 --- a/samples/client/petstore/python/docs/paths/user_logout/get.md +++ b/samples/client/petstore/python/docs/paths/user_logout/get.md @@ -35,7 +35,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -default | [RefSuccessDescriptionOnly.response_cls](../../components/responses/response_ref_success_description_only.md#response_ref_success_description_onlyresponse_cls) | Success +default | [RefSuccessDescriptionOnly.ApiResponse](../../components/responses/response_ref_success_description_only.md#apiresponse) | Success ## Servers diff --git a/samples/client/petstore/python/docs/paths/user_username/delete.md b/samples/client/petstore/python/docs/paths/user_username/delete.md index d3732a3e9f1..f11b8a4f3fa 100644 --- a/samples/client/petstore/python/docs/paths/user_username/delete.md +++ b/samples/client/petstore/python/docs/paths/user_username/delete.md @@ -26,35 +26,64 @@ petstore_api.paths.user_username.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -username | [RefPathUserName.schema](../../../components/parameters/parameter_ref_path_user_name.md#schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | + +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | str | | + +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**username** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**username** | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [SuccessDescriptionOnly.response_cls](../../components/responses/response_success_description_only.md#response_success_description_onlyresponse_cls) | Success -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | User not found +200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found ## ResponseFor404 ### Description User not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/get.md b/samples/client/petstore/python/docs/paths/user_username/get.md index 254e78f9ef6..9646f4c8a47 100644 --- a/samples/client/petstore/python/docs/paths/user_username/get.md +++ b/samples/client/petstore/python/docs/paths/user_username/get.md @@ -25,41 +25,70 @@ petstore_api.paths.user_username.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | accept_content_types | typing.Tuple[str] | default is ("application/xml", "application/json", ) | Tells the server the content type(s) that are accepted by the client server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -username | [PathUserName.schema](../../../components/parameters/parameter_path_user_name.md#schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | + +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | str | | + +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**username** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**username** | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.response_cls](#responsefor200-response_cls) | successful operation -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid username supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | User not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found ## ResponseFor200 ### Description successful operation -### ResponseFor200 response_cls +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[content.application_xml.schema](#responsefor200-content-applicationxml-schema), [content.application_json.schema](#responsefor200-content-applicationjson-schema)] | | +[body](#responsefor200-body) | typing.Union[[user.UserDict](../../components/schema/user.md#userdict), [user.UserDict](../../components/schema/user.md#userdict)] | | headers | Unset | headers were not defined | ### ResponseFor200 Body @@ -70,24 +99,32 @@ Content-Type | Schema ### Body Details #### ResponseFor200 content ApplicationXml Schema +petstore_api.paths.user_username.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[User](../../components/schema/user.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) #### ResponseFor200 content ApplicationJson Schema +petstore_api.paths.user_username.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[User](../../components/schema/user.md) | dict, schemas.immutabledict | schemas.immutabledict | +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) ## ResponseFor400 ### Description Invalid username supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -99,7 +136,7 @@ headers | Unset | headers were not defined | ### Description User not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..766ac749dee --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_username.get.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md new file mode 100644 index 00000000000..11283bfdcd2 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_username.get.responses.response_200.content.application_xml.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/docs/paths/user_username/put.md b/samples/client/petstore/python/docs/paths/user_username/put.md index dd54b369b64..9b49b1f69fd 100644 --- a/samples/client/petstore/python/docs/paths/user_username/put.md +++ b/samples/client/petstore/python/docs/paths/user_username/put.md @@ -26,9 +26,9 @@ petstore_api.paths.user_username.operation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[RequestBody.content.application_json.schema](#RequestBody-content-applicationjson-schema), dict, schemas.immutabledict] | required | -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body +[body](#requestbody) | typing.Union[[user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict)] | required | +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0, 1, 2] stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client @@ -45,35 +45,68 @@ Content-Type | Schema "application/json" | [content.application_json.Schema](#requestbody-content-applicationjson-schema) #### RequestBody content ApplicationJson Schema +petstore_api.paths.user_username.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` -##### Type Info -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[User](../../components/schema/user.md) | dict, schemas.immutabledict | schemas.immutabledict | - +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) ### path_params -#### RequestPathParameters.Params -This is a TypedDict +### PathParameters +``` +type: schemas.Schema +``` -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- -username | [PathUserName.schema](../../../components/parameters/parameter_path_user_name.md#schema), str | | +#### validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | + +#### PathParameters PathParametersDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | str | | + +#### PathParameters PathParametersDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +##### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**username** | str | | + +##### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**username** | str | | +##### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | [PathParametersDict](#pathparameters-pathparametersdict) | a constructor ## Return Types HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.response_cls](#responsefor400-response_cls) | Invalid user supplied -404 | [ResponseFor404.response_cls](#responsefor404-response_cls) | User not found +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid user supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found ## ResponseFor400 ### Description Invalid user supplied -### ResponseFor400 response_cls +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | @@ -85,7 +118,7 @@ headers | Unset | headers were not defined | ### Description User not found -### ResponseFor404 response_cls +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/put/request_body/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user_username/put/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..61b0e8ff717 --- /dev/null +++ b/samples/client/petstore/python/docs/paths/user_username/put/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema +petstore_api.paths.user_username.put.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**user.User**](../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/migration_other_python_generators.md b/samples/client/petstore/python/migration_other_python_generators.md index db57f718d75..e9dea7cbad7 100644 --- a/samples/client/petstore/python/migration_other_python_generators.md +++ b/samples/client/petstore/python/migration_other_python_generators.md @@ -20,12 +20,10 @@ When switching from other python client generators you will need to make some ch 6. String + Number types with formats - String type data is stored as a string and if you need to access types based on its format like date, date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ - - type number + format: See .as_float_, .as_int_ + - type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid - this was done because openapi/json-schema defines constraints. string data may be type string with no format keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_/as_datetime_/as_decimal_/as_uuid_ - - So if you need to access a number format based type, use as_int_/as_float_ + - So if you need to access a string format based type, use as_date/as_datetime/as_decimal/as_uuid 7. Property access on AnyType(type unset) or object(dict) schemas - Only required keys with valid python names are properties like .someProp and have type hints - All optional keys may not exist, so properties are not defined for them diff --git a/samples/client/petstore/python/src/petstore_api/api_client.py b/samples/client/petstore/python/src/petstore_api/api_client.py index c249e5593f5..81da5151272 100644 --- a/samples/client/petstore/python/src/petstore_api/api_client.py +++ b/samples/client/petstore/python/src/petstore_api/api_client.py @@ -1145,7 +1145,7 @@ def update_params_for_auth( return for security_scheme_component_name, scope_names in security_requirement_object.items(): scope_names = typing.cast(typing.Tuple[str, ...], scope_names) - security_scheme_component_name = typing.cast(typing_extensions.Literal[ + security_scheme_component_name = typing.cast(typing.Literal[ 'api_key', 'api_key_query', 'bearer_test', @@ -1274,7 +1274,7 @@ def _verify_response_status(response: api_response.ApiResponse): ) -class SerializedRequestBody(typing_extensions.TypedDict, total=False): +class SerializedRequestBody(typing.TypedDict, total=False): body: typing.Union[str, bytes] fields: typing.Tuple[rest.RequestField, ...] diff --git a/samples/client/petstore/python/src/petstore_api/apis/path_to_api.py b/samples/client/petstore/python/src/petstore_api/apis/path_to_api.py index 2e1298a7065..c979b8e5caa 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/path_to_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/path_to_api.py @@ -15,6 +15,7 @@ from petstore_api.apis.paths.fake_json_form_data import FakeJsonFormData from petstore_api.apis.paths.fake_json_patch import FakeJsonPatch from petstore_api.apis.paths.fake_json_with_charset import FakeJsonWithCharset +from petstore_api.apis.paths.fake_multiple_request_body_content_types import FakeMultipleRequestBodyContentTypes from petstore_api.apis.paths.fake_multiple_response_bodies import FakeMultipleResponseBodies from petstore_api.apis.paths.fake_multiple_securities import FakeMultipleSecurities from petstore_api.apis.paths.fake_obj_in_query import FakeObjInQuery @@ -55,7 +56,7 @@ from petstore_api.apis.paths.user_logout import UserLogout from petstore_api.apis.paths.user_username import UserUsername -PathToApi = typing_extensions.TypedDict( +PathToApi = typing.TypedDict( 'PathToApi', { "/": typing.Type[Solidus], @@ -72,6 +73,7 @@ "/fake/jsonFormData": typing.Type[FakeJsonFormData], "/fake/jsonPatch": typing.Type[FakeJsonPatch], "/fake/jsonWithCharset": typing.Type[FakeJsonWithCharset], + "/fake/multipleRequestBodyContentTypes/": typing.Type[FakeMultipleRequestBodyContentTypes], "/fake/multipleResponseBodies": typing.Type[FakeMultipleResponseBodies], "/fake/multipleSecurities": typing.Type[FakeMultipleSecurities], "/fake/objInQuery": typing.Type[FakeObjInQuery], @@ -130,6 +132,7 @@ "/fake/jsonFormData": FakeJsonFormData, "/fake/jsonPatch": FakeJsonPatch, "/fake/jsonWithCharset": FakeJsonWithCharset, + "/fake/multipleRequestBodyContentTypes/": FakeMultipleRequestBodyContentTypes, "/fake/multipleResponseBodies": FakeMultipleResponseBodies, "/fake/multipleSecurities": FakeMultipleSecurities, "/fake/objInQuery": FakeObjInQuery, diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py new file mode 100644 index 00000000000..bda840a64f9 --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from petstore_api.paths.fake_multiple_request_body_content_types.post.operation import ApiForPost + + +class FakeMultipleRequestBodyContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/petstore/python/src/petstore_api/apis/tag_to_api.py b/samples/client/petstore/python/src/petstore_api/apis/tag_to_api.py index ed161a6b7f0..243aaeeea64 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tag_to_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tag_to_api.py @@ -9,7 +9,7 @@ from petstore_api.apis.tags.fake_classname_tags123_api import FakeClassnameTags123Api from petstore_api.apis.tags.another_fake_api import AnotherFakeApi -TagToApi = typing_extensions.TypedDict( +TagToApi = typing.TypedDict( 'TagToApi', { "pet": typing.Type[PetApi], diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py index 8b13521a899..f89a039f768 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py @@ -39,6 +39,7 @@ from petstore_api.paths.fake_delete_coffee_id.delete.operation import DeleteCoffee from petstore_api.paths.fake_refs_enum.post.operation import StringEnum from petstore_api.paths.fake_refs_number.post.operation import NumberWithValidations +from petstore_api.paths.fake_multiple_request_body_content_types.post.operation import MultipleRequestBodyContentTypes from petstore_api.paths.fake_upload_file.post.operation import UploadFile from petstore_api.paths.fake_body_with_file_schema.put.operation import BodyWithFileSchema from petstore_api.paths.fake_upload_download_file.post.operation import UploadDownloadFile @@ -80,6 +81,7 @@ class FakeApi( DeleteCoffee, StringEnum, NumberWithValidations, + MultipleRequestBodyContentTypes, UploadFile, BodyWithFileSchema, UploadDownloadFile, diff --git a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/content/application_json/schema.py index 62587dae745..b378816f5cf 100644 --- a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/content/application_json/schema.py +++ b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/content/application_json/schema.py @@ -21,7 +21,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/content/application_json/schema.py index 2ac28264cd3..bb08b5c01de 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/content/application_json/schema.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/content/application_json/schema.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: SchemaDictInput, + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> SchemaDict: return Schema.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[int, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/header_parameters.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/header_parameters.py index 8b201f308eb..a0665e8cbe0 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/header_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.components.responses.response_success_inline_content_and_header.headers.header_some_header import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someHeader": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class HeadersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "someHeader", }) - @staticmethod - def from_dict_( - arg: HeadersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeadersDict: - return Headers.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeadersDictInput, arg_) return Headers.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeadersDictInput, + HeadersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeadersDict: + return Headers.validate(arg, configuration=configuration) @property def someHeader(self) -> typing.Union[str, schemas.Unset]: @@ -64,7 +67,7 @@ def someHeader(self) -> typing.Union[str, schemas.Unset]: str, val ) -HeadersDictInput = typing_extensions.TypedDict( +HeadersDictInput = typing.TypedDict( 'HeadersDictInput', { "someHeader": str, diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/header_parameters.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/header_parameters.py index 5b7ee1c96d7..ac8f739b871 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/header_parameters.py @@ -16,7 +16,7 @@ from petstore_api.components.headers.header_number_header import schema as schema_3 from petstore_api.components.headers.header_string_header import schema as schema_2 from petstore_api.components.schema import string_with_validation -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "ref-schema-header": typing.Type[string_with_validation.StringWithValidation], @@ -26,7 +26,7 @@ "numberHeader": typing.Type[schema_3.Schema], } ) -HeadersRequiredDictInput = typing_extensions.TypedDict( +HeadersRequiredDictInput = typing.TypedDict( 'HeadersRequiredDictInput', { "int32": int, @@ -35,7 +35,7 @@ "stringHeader": str, } ) -HeadersOptionalDictInput = typing_extensions.TypedDict( +HeadersOptionalDictInput = typing.TypedDict( 'HeadersOptionalDictInput', { "numberHeader": str, @@ -55,12 +55,6 @@ class HeadersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "numberHeader", }) - @staticmethod - def from_dict_( - arg: HeadersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeadersDict: - return Headers.validate(arg, configuration=configuration) def __new__( cls, @@ -85,7 +79,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeadersDictInput, arg_) return Headers.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeadersDictInput, + HeadersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeadersDict: + return Headers.validate(arg, configuration=configuration) @property def int32(self) -> int: diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.py index e0956b2af9a..44083fec1c5 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.py @@ -21,7 +21,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.py index 922a63f3545..6c63ae08014 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.py @@ -21,7 +21,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/_200_response.py b/samples/client/petstore/python/src/petstore_api/components/schema/_200_response.py index 86d2f28b9ba..33d6b1d655f 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/_200_response.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/_200_response.py @@ -12,7 +12,7 @@ Name: typing_extensions.TypeAlias = schemas.Int32Schema _Class: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name], @@ -29,12 +29,6 @@ class _200ResponseDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "name", "class", }) - @staticmethod - def from_dict_( - arg: _200ResponseDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _200ResponseDict: - return _200Response.validate(arg, configuration=configuration) def __new__( cls, @@ -56,7 +50,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_200ResponseDictInput, arg_) return _200Response.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _200ResponseDictInput, + _200ResponseDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _200ResponseDict: + return _200Response.validate(arg, configuration=configuration) @property def name(self) -> typing.Union[int, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/_return.py b/samples/client/petstore/python/src/petstore_api/components/schema/_return.py index 98df2d70d4a..4402dcb7b7c 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/_return.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/_return.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Return2: typing_extensions.TypeAlias = schemas.Int32Schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "return": typing.Type[Return2], @@ -26,12 +26,6 @@ class ReturnDict(schemas.immutabledict[str, int]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "return", }) - @staticmethod - def from_dict_( - arg: ReturnDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ReturnDict: - return _Return.validate(arg, configuration=configuration) def __new__( cls, @@ -43,7 +37,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ReturnDictInput, arg_) return _Return.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ReturnDictInput, + ReturnDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ReturnDict: + return _Return.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/abstract_step_message.py b/samples/client/petstore/python/src/petstore_api/components/schema/abstract_step_message.py index 22c85803906..68cc85e185e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/abstract_step_message.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/abstract_step_message.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Discriminator: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "discriminator": typing.Type[Discriminator], @@ -28,12 +28,6 @@ class AbstractStepMessageDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: AbstractStepMessageDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AbstractStepMessageDict: - return AbstractStepMessage.validate(arg, configuration=configuration) def __new__( cls, @@ -58,7 +52,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AbstractStepMessageDictInput, arg_) return AbstractStepMessage.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AbstractStepMessageDictInput, + AbstractStepMessageDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AbstractStepMessageDict: + return AbstractStepMessage.validate(arg, configuration=configuration) @property def description(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_class.py b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_class.py index 1a17e23ee52..7bc9e90fbfb 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_class.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_class.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapPropertyDictInput, + arg: typing.Union[ + MapPropertyDictInput, + MapPropertyDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapPropertyDict: return MapProperty.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[str, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -98,11 +100,13 @@ def __new__( @staticmethod def from_dict_( - arg: AdditionalPropertiesDictInput, + arg: typing.Union[ + AdditionalPropertiesDictInput, + AdditionalPropertiesDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AdditionalPropertiesDict: return AdditionalProperties2.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[str, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -169,11 +173,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapOfMapPropertyDictInput, + arg: typing.Union[ + MapOfMapPropertyDictInput, + MapOfMapPropertyDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapOfMapPropertyDict: return MapOfMapProperty.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[AdditionalPropertiesDict, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -244,11 +250,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapWithUndeclaredPropertiesAnytype3DictInput, + arg: typing.Union[ + MapWithUndeclaredPropertiesAnytype3DictInput, + MapWithUndeclaredPropertiesAnytype3Dict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapWithUndeclaredPropertiesAnytype3Dict: return MapWithUndeclaredPropertiesAnytype3.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -309,11 +317,13 @@ def __new__( @staticmethod def from_dict_( - arg: EmptyMapDictInput, + arg: typing.Union[ + EmptyMapDictInput, + EmptyMapDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> EmptyMapDict: return EmptyMap.validate(arg, configuration=configuration) - EmptyMapDictInput = typing.Mapping # mapping must be empty @@ -365,11 +375,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapWithUndeclaredPropertiesStringDictInput, + arg: typing.Union[ + MapWithUndeclaredPropertiesStringDictInput, + MapWithUndeclaredPropertiesStringDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapWithUndeclaredPropertiesStringDict: return MapWithUndeclaredPropertiesString.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[str, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -415,7 +427,7 @@ def validate( configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "map_property": typing.Type[MapProperty], @@ -444,12 +456,6 @@ class AdditionalPropertiesClassDict(schemas.immutabledict[str, schemas.immutable "empty_map", "map_with_undeclared_properties_string", }) - @staticmethod - def from_dict_( - arg: AdditionalPropertiesClassDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionalPropertiesClassDict: - return AdditionalPropertiesClass.validate(arg, configuration=configuration) def __new__( cls, @@ -514,7 +520,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AdditionalPropertiesClassDictInput, arg_) return AdditionalPropertiesClass.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AdditionalPropertiesClassDictInput, + AdditionalPropertiesClassDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionalPropertiesClassDict: + return AdditionalPropertiesClass.validate(arg, configuration=configuration) @property def map_property(self) -> typing.Union[MapPropertyDict, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_validator.py b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_validator.py index 713721499ee..aef5f88f9f2 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_validator.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_validator.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: _0DictInput, + arg: typing.Union[ + _0DictInput, + _0Dict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> _0Dict: return _0.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -106,11 +108,13 @@ def __new__( @staticmethod def from_dict_( - arg: _1DictInput, + arg: typing.Union[ + _1DictInput, + _1Dict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> _1Dict: return _1.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -189,11 +193,13 @@ def __new__( @staticmethod def from_dict_( - arg: _2DictInput, + arg: typing.Union[ + _2DictInput, + _2Dict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> _2Dict: return _2.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_with_array_of_enums.py b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_with_array_of_enums.py index 8152331a7a1..26da6a614c3 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_with_array_of_enums.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/additional_properties_with_array_of_enums.py @@ -16,16 +16,16 @@ class AdditionalPropertiesTuple( typing.Tuple[ - typing_extensions.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"], + typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"], ... ] ): - def __new__(cls, arg: AdditionalPropertiesTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[AdditionalPropertiesTupleInput, AdditionalPropertiesTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return AdditionalProperties.validate(arg, configuration=configuration) AdditionalPropertiesTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ "_abc", "-efg", "(xyz)", @@ -34,7 +34,7 @@ def __new__(cls, arg: AdditionalPropertiesTupleInput, configuration: typing.Opti ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ "_abc", "-efg", "(xyz)", @@ -95,11 +95,13 @@ def __new__( @staticmethod def from_dict_( - arg: AdditionalPropertiesWithArrayOfEnumsDictInput, + arg: typing.Union[ + AdditionalPropertiesWithArrayOfEnumsDictInput, + AdditionalPropertiesWithArrayOfEnumsDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AdditionalPropertiesWithArrayOfEnumsDict: return AdditionalPropertiesWithArrayOfEnums.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[AdditionalPropertiesTuple, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/address.py b/samples/client/petstore/python/src/petstore_api/components/schema/address.py index 83e6bfa3457..ba231426045 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/address.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/address.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: AddressDictInput, + arg: typing.Union[ + AddressDictInput, + AddressDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AddressDict: return Address.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[int, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/animal.py b/samples/client/petstore/python/src/petstore_api/components/schema/animal.py index 7acf6a64850..b8fdd633204 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/animal.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/animal.py @@ -20,8 +20,8 @@ class Color( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["red"] = "red" -Properties = typing_extensions.TypedDict( + default: typing.Literal["red"] = "red" +Properties = typing.TypedDict( 'Properties', { "className": typing.Type[ClassName], @@ -38,12 +38,6 @@ class AnimalDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "color", }) - @staticmethod - def from_dict_( - arg: AnimalDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AnimalDict: - return Animal.validate(arg, configuration=configuration) def __new__( cls, @@ -68,7 +62,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AnimalDictInput, arg_) return Animal.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AnimalDictInput, + AnimalDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AnimalDict: + return Animal.validate(arg, configuration=configuration) @property def className(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/animal_farm.py b/samples/client/petstore/python/src/petstore_api/components/schema/animal_farm.py index f7c046ee94d..a85bea2ff61 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/animal_farm.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/animal_farm.py @@ -21,7 +21,7 @@ class AnimalFarmTuple( ] ): - def __new__(cls, arg: AnimalFarmTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[AnimalFarmTupleInput, AnimalFarmTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return AnimalFarm.validate(arg, configuration=configuration) AnimalFarmTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/any_type_and_format.py b/samples/client/petstore/python/src/petstore_api/components/schema/any_type_and_format.py index 872ca6f0e40..460c9f911e2 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/any_type_and_format.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/any_type_and_format.py @@ -91,7 +91,7 @@ class _Float( # any type format: str = 'float' -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "uuid": typing.Type[Uuid], @@ -122,12 +122,6 @@ class AnyTypeAndFormatDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] "double", "float", }) - @staticmethod - def from_dict_( - arg: AnyTypeAndFormatDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AnyTypeAndFormatDict: - return AnyTypeAndFormat.validate(arg, configuration=configuration) def __new__( cls, @@ -186,7 +180,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AnyTypeAndFormatDictInput, arg_) return AnyTypeAndFormat.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AnyTypeAndFormatDictInput, + AnyTypeAndFormatDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AnyTypeAndFormatDict: + return AnyTypeAndFormat.validate(arg, configuration=configuration) @property def uuid(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/api_response.py b/samples/client/petstore/python/src/petstore_api/components/schema/api_response.py index 75371a5ba00..d319396aa54 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/api_response.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/api_response.py @@ -13,7 +13,7 @@ Code: typing_extensions.TypeAlias = schemas.Int32Schema Type: typing_extensions.TypeAlias = schemas.StrSchema Message: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "code": typing.Type[Code], @@ -32,12 +32,6 @@ class ApiResponseDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "type", "message", }) - @staticmethod - def from_dict_( - arg: ApiResponseDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ApiResponseDict: - return ApiResponse.validate(arg, configuration=configuration) def __new__( cls, @@ -69,7 +63,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ApiResponseDictInput, arg_) return ApiResponse.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ApiResponseDictInput, + ApiResponseDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ApiResponseDict: + return ApiResponse.validate(arg, configuration=configuration) @property def code(self) -> typing.Union[int, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/apple.py b/samples/client/petstore/python/src/petstore_api/components/schema/apple.py index 9a99bb38d06..a3fc65bb3fb 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/apple.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/apple.py @@ -35,7 +35,7 @@ class Origin( pattern=r'^[A-Z\s]*$', # noqa: E501 flags=re.I, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "cultivar": typing.Type[Cultivar], @@ -52,12 +52,6 @@ class AppleDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "origin", }) - @staticmethod - def from_dict_( - arg: AppleDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AppleDict: - return Apple.validate(arg, configuration=configuration) def __new__( cls, @@ -82,7 +76,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(AppleDictInput, arg_) return Apple.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AppleDictInput, + AppleDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AppleDict: + return Apple.validate(arg, configuration=configuration) @property def cultivar(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/apple_req.py b/samples/client/petstore/python/src/petstore_api/components/schema/apple_req.py index c2b47049911..b9b00b5153d 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/apple_req.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/apple_req.py @@ -13,20 +13,20 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema Cultivar: typing_extensions.TypeAlias = schemas.StrSchema Mealy: typing_extensions.TypeAlias = schemas.BoolSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "cultivar": typing.Type[Cultivar], "mealy": typing.Type[Mealy], } ) -AppleReqRequiredDictInput = typing_extensions.TypedDict( +AppleReqRequiredDictInput = typing.TypedDict( 'AppleReqRequiredDictInput', { "cultivar": str, } ) -AppleReqOptionalDictInput = typing_extensions.TypedDict( +AppleReqOptionalDictInput = typing.TypedDict( 'AppleReqOptionalDictInput', { "mealy": bool, @@ -43,12 +43,6 @@ class AppleReqDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "mealy", }) - @staticmethod - def from_dict_( - arg: AppleReqDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AppleReqDict: - return AppleReq.validate(arg, configuration=configuration) def __new__( cls, @@ -71,7 +65,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(AppleReqDictInput, arg_) return AppleReq.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + AppleReqDictInput, + AppleReqDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AppleReqDict: + return AppleReq.validate(arg, configuration=configuration) @property def cultivar(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_holding_any_type.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_holding_any_type.py index 8b18490067f..1a669d22169 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_holding_any_type.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_holding_any_type.py @@ -20,7 +20,7 @@ class ArrayHoldingAnyTypeTuple( ] ): - def __new__(cls, arg: ArrayHoldingAnyTypeTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayHoldingAnyTypeTupleInput, ArrayHoldingAnyTypeTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayHoldingAnyType.validate(arg, configuration=configuration) ArrayHoldingAnyTypeTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_array_of_number_only.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_array_of_number_only.py index e9f435dd0cc..af38dcc79ab 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_array_of_number_only.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_array_of_number_only.py @@ -20,7 +20,7 @@ class ItemsTuple( ] ): - def __new__(cls, arg: ItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput, ItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items.validate(arg, configuration=configuration) ItemsTupleInput = typing.Union[ typing.List[ @@ -76,7 +76,7 @@ class ArrayArrayNumberTuple( ] ): - def __new__(cls, arg: ArrayArrayNumberTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayArrayNumberTupleInput, ArrayArrayNumberTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayArrayNumber.validate(arg, configuration=configuration) ArrayArrayNumberTupleInput = typing.Union[ typing.List[ @@ -123,7 +123,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "ArrayArrayNumber": typing.Type[ArrayArrayNumber], @@ -138,12 +138,6 @@ class ArrayOfArrayOfNumberOnlyDict(schemas.immutabledict[str, typing.Tuple[schem __optional_keys__: typing.FrozenSet[str] = frozenset({ "ArrayArrayNumber", }) - @staticmethod - def from_dict_( - arg: ArrayOfArrayOfNumberOnlyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ArrayOfArrayOfNumberOnlyDict: - return ArrayOfArrayOfNumberOnly.validate(arg, configuration=configuration) def __new__( cls, @@ -166,7 +160,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ArrayOfArrayOfNumberOnlyDictInput, arg_) return ArrayOfArrayOfNumberOnly.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ArrayOfArrayOfNumberOnlyDictInput, + ArrayOfArrayOfNumberOnlyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ArrayOfArrayOfNumberOnlyDict: + return ArrayOfArrayOfNumberOnly.validate(arg, configuration=configuration) @property def ArrayArrayNumber(self) -> typing.Union[ArrayArrayNumberTuple, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_enums.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_enums.py index 4c2f91abf28..2fa84f938af 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_enums.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_enums.py @@ -18,19 +18,19 @@ class ArrayOfEnumsTuple( typing.Tuple[ typing.Union[ None, - typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], + typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], ], ... ] ): - def __new__(cls, arg: ArrayOfEnumsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayOfEnumsTupleInput, ArrayOfEnumsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayOfEnums.validate(arg, configuration=configuration) ArrayOfEnumsTupleInput = typing.Union[ typing.List[ typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", @@ -43,7 +43,7 @@ def __new__(cls, arg: ArrayOfEnumsTupleInput, configuration: typing.Optional[sch typing.Tuple[ typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_number_only.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_number_only.py index cd952a01732..d877d645137 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_of_number_only.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_of_number_only.py @@ -20,7 +20,7 @@ class ArrayNumberTuple( ] ): - def __new__(cls, arg: ArrayNumberTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayNumberTupleInput, ArrayNumberTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayNumber.validate(arg, configuration=configuration) ArrayNumberTupleInput = typing.Union[ typing.List[ @@ -67,7 +67,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "ArrayNumber": typing.Type[ArrayNumber], @@ -82,12 +82,6 @@ class ArrayOfNumberOnlyDict(schemas.immutabledict[str, typing.Tuple[schemas.OUTP __optional_keys__: typing.FrozenSet[str] = frozenset({ "ArrayNumber", }) - @staticmethod - def from_dict_( - arg: ArrayOfNumberOnlyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ArrayOfNumberOnlyDict: - return ArrayOfNumberOnly.validate(arg, configuration=configuration) def __new__( cls, @@ -110,7 +104,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ArrayOfNumberOnlyDictInput, arg_) return ArrayOfNumberOnly.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ArrayOfNumberOnlyDictInput, + ArrayOfNumberOnlyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ArrayOfNumberOnlyDict: + return ArrayOfNumberOnly.validate(arg, configuration=configuration) @property def ArrayNumber(self) -> typing.Union[ArrayNumberTuple, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_test.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_test.py index db9c66ee0f0..053e74ac484 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_test.py @@ -20,7 +20,7 @@ class ArrayOfStringTuple( ] ): - def __new__(cls, arg: ArrayOfStringTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayOfStringTupleInput, ArrayOfStringTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayOfString.validate(arg, configuration=configuration) ArrayOfStringTupleInput = typing.Union[ typing.List[ @@ -71,7 +71,7 @@ class ItemsTuple( ] ): - def __new__(cls, arg: ItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput, ItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items2.validate(arg, configuration=configuration) ItemsTupleInput = typing.Union[ typing.List[ @@ -121,7 +121,7 @@ class ArrayArrayOfIntegerTuple( ] ): - def __new__(cls, arg: ArrayArrayOfIntegerTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayArrayOfIntegerTupleInput, ArrayArrayOfIntegerTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayArrayOfInteger.validate(arg, configuration=configuration) ArrayArrayOfIntegerTupleInput = typing.Union[ typing.List[ @@ -179,7 +179,7 @@ class ItemsTuple2( ] ): - def __new__(cls, arg: ItemsTupleInput2, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput2, ItemsTuple2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items4.validate(arg, configuration=configuration) ItemsTupleInput2 = typing.Union[ typing.List[ @@ -235,7 +235,7 @@ class ArrayArrayOfModelTuple( ] ): - def __new__(cls, arg: ArrayArrayOfModelTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayArrayOfModelTupleInput, ArrayArrayOfModelTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayArrayOfModel.validate(arg, configuration=configuration) ArrayArrayOfModelTupleInput = typing.Union[ typing.List[ @@ -282,7 +282,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "array_of_string": typing.Type[ArrayOfString], @@ -301,12 +301,6 @@ class ArrayTestDict(schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_ "array_array_of_integer", "array_array_of_model", }) - @staticmethod - def from_dict_( - arg: ArrayTestDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ArrayTestDict: - return ArrayTest.validate(arg, configuration=configuration) def __new__( cls, @@ -341,7 +335,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ArrayTestDictInput, arg_) return ArrayTest.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ArrayTestDictInput, + ArrayTestDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ArrayTestDict: + return ArrayTest.validate(arg, configuration=configuration) @property def array_of_string(self) -> typing.Union[ArrayOfStringTuple, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/array_with_validations_in_items.py b/samples/client/petstore/python/src/petstore_api/components/schema/array_with_validations_in_items.py index 750daf8053c..099539f851e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/array_with_validations_in_items.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/array_with_validations_in_items.py @@ -30,7 +30,7 @@ class ArrayWithValidationsInItemsTuple( ] ): - def __new__(cls, arg: ArrayWithValidationsInItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayWithValidationsInItemsTupleInput, ArrayWithValidationsInItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayWithValidationsInItems.validate(arg, configuration=configuration) ArrayWithValidationsInItemsTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/banana.py b/samples/client/petstore/python/src/petstore_api/components/schema/banana.py index 4951ff3968e..c0947fdc837 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/banana.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/banana.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] LengthCm: typing_extensions.TypeAlias = schemas.NumberSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "lengthCm": typing.Type[LengthCm], @@ -26,12 +26,6 @@ class BananaDict(schemas.immutabledict[str, typing.Union[int, float]]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: BananaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> BananaDict: - return Banana.validate(arg, configuration=configuration) def __new__( cls, @@ -49,7 +43,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(BananaDictInput, arg_) return Banana.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + BananaDictInput, + BananaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> BananaDict: + return Banana.validate(arg, configuration=configuration) @property def lengthCm(self) -> typing.Union[int, float]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/banana_req.py b/samples/client/petstore/python/src/petstore_api/components/schema/banana_req.py index 3313095b434..621a44532a1 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/banana_req.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/banana_req.py @@ -13,14 +13,14 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema LengthCm: typing_extensions.TypeAlias = schemas.NumberSchema Sweet: typing_extensions.TypeAlias = schemas.BoolSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "lengthCm": typing.Type[LengthCm], "sweet": typing.Type[Sweet], } ) -BananaReqRequiredDictInput = typing_extensions.TypedDict( +BananaReqRequiredDictInput = typing.TypedDict( 'BananaReqRequiredDictInput', { "lengthCm": typing.Union[ @@ -29,7 +29,7 @@ ], } ) -BananaReqOptionalDictInput = typing_extensions.TypedDict( +BananaReqOptionalDictInput = typing.TypedDict( 'BananaReqOptionalDictInput', { "sweet": bool, @@ -46,12 +46,6 @@ class BananaReqDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "sweet", }) - @staticmethod - def from_dict_( - arg: BananaReqDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> BananaReqDict: - return BananaReq.validate(arg, configuration=configuration) def __new__( cls, @@ -77,7 +71,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(BananaReqDictInput, arg_) return BananaReq.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + BananaReqDictInput, + BananaReqDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> BananaReqDict: + return BananaReq.validate(arg, configuration=configuration) @property def lengthCm(self) -> typing.Union[int, float]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/bar.py b/samples/client/petstore/python/src/petstore_api/components/schema/bar.py index 12b5ca2504f..5477c07fc2f 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/bar.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/bar.py @@ -24,4 +24,4 @@ class Bar( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["bar"] = "bar" + default: typing.Literal["bar"] = "bar" diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/basque_pig.py b/samples/client/petstore/python/src/petstore_api/components/schema/basque_pig.py index 8a5b57d61a8..f05754380d3 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/basque_pig.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/basque_pig.py @@ -15,7 +15,7 @@ class ClassNameEnums: @schemas.classproperty - def BASQUE_PIG(cls) -> typing_extensions.Literal["BasquePig"]: + def BASQUE_PIG(cls) -> typing.Literal["BasquePig"]: return ClassName.validate("BasquePig") @@ -37,34 +37,34 @@ class ClassName( @classmethod def validate( cls, - arg: typing_extensions.Literal["BasquePig"], + arg: typing.Literal["BasquePig"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["BasquePig"]: ... + ) -> typing.Literal["BasquePig"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["BasquePig",]: ... + ) -> typing.Literal["BasquePig",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "BasquePig", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "BasquePig", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "className": typing.Type[ClassName], @@ -79,17 +79,11 @@ class BasquePigDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: BasquePigDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> BasquePigDict: - return BasquePig.validate(arg, configuration=configuration) def __new__( cls, *, - className: typing_extensions.Literal[ + className: typing.Literal[ "BasquePig" ], configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, @@ -101,12 +95,21 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(BasquePigDictInput, arg_) return BasquePig.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + BasquePigDictInput, + BasquePigDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> BasquePigDict: + return BasquePig.validate(arg, configuration=configuration) @property - def className(self) -> typing_extensions.Literal["BasquePig"]: + def className(self) -> typing.Literal["BasquePig"]: return typing.cast( - typing_extensions.Literal["BasquePig"], + typing.Literal["BasquePig"], self.__getitem__("className") ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/boolean_enum.py b/samples/client/petstore/python/src/petstore_api/components/schema/boolean_enum.py index 96553aa55f3..f1599bf84c4 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/boolean_enum.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/boolean_enum.py @@ -15,7 +15,7 @@ class BooleanEnumEnums: @schemas.classproperty - def TRUE(cls) -> typing_extensions.Literal[True]: + def TRUE(cls) -> typing.Literal[True]: return BooleanEnum.validate(True) @@ -42,29 +42,29 @@ class BooleanEnum( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, arg: bool, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True,]: ... + ) -> typing.Literal[True,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ True, ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ True, ], validated_arg diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/capitalization.py b/samples/client/petstore/python/src/petstore_api/components/schema/capitalization.py index 13d9b663b44..69773c8e315 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/capitalization.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/capitalization.py @@ -16,7 +16,7 @@ CapitalSnake: typing_extensions.TypeAlias = schemas.StrSchema SCAETHFlowPoints: typing_extensions.TypeAlias = schemas.StrSchema ATTNAME: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "smallCamel": typing.Type[SmallCamel], @@ -41,12 +41,6 @@ class CapitalizationDict(schemas.immutabledict[str, str]): "SCA_ETH_Flow_Points", "ATT_NAME", }) - @staticmethod - def from_dict_( - arg: CapitalizationDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> CapitalizationDict: - return Capitalization.validate(arg, configuration=configuration) def __new__( cls, @@ -93,7 +87,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(CapitalizationDictInput, arg_) return Capitalization.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + CapitalizationDictInput, + CapitalizationDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> CapitalizationDict: + return Capitalization.validate(arg, configuration=configuration) @property def smallCamel(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/cat.py b/samples/client/petstore/python/src/petstore_api/components/schema/cat.py index 09e7d0a8978..b8bf4fad74e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/cat.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/cat.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Declawed: typing_extensions.TypeAlias = schemas.BoolSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "declawed": typing.Type[Declawed], @@ -26,12 +26,6 @@ class _1Dict(schemas.immutabledict[str, bool]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "declawed", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def declawed(self) -> typing.Union[bool, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/category.py b/samples/client/petstore/python/src/petstore_api/components/schema/category.py index c966d64d98f..e505f366578 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/category.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/category.py @@ -20,8 +20,8 @@ class Name( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["default-name"] = "default-name" -Properties = typing_extensions.TypedDict( + default: typing.Literal["default-name"] = "default-name" +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], @@ -38,12 +38,6 @@ class CategoryDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "id", }) - @staticmethod - def from_dict_( - arg: CategoryDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> CategoryDict: - return Category.validate(arg, configuration=configuration) def __new__( cls, @@ -68,7 +62,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(CategoryDictInput, arg_) return Category.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + CategoryDictInput, + CategoryDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> CategoryDict: + return Category.validate(arg, configuration=configuration) @property def name(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/child_cat.py b/samples/client/petstore/python/src/petstore_api/components/schema/child_cat.py index 8bd3cac1dfb..b84eeeb8b2b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/child_cat.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/child_cat.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Name: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name], @@ -26,12 +26,6 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "name", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def name(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/class_model.py b/samples/client/petstore/python/src/petstore_api/components/schema/class_model.py index bae4a9cd8e8..1bd26bd761b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/class_model.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/class_model.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] _Class: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "_class": typing.Type[_Class], @@ -26,12 +26,6 @@ class ClassModelDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "_class", }) - @staticmethod - def from_dict_( - arg: ClassModelDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ClassModelDict: - return ClassModel.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ClassModelDictInput, arg_) return ClassModel.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ClassModelDictInput, + ClassModelDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ClassModelDict: + return ClassModel.validate(arg, configuration=configuration) @property def _class(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/client.py b/samples/client/petstore/python/src/petstore_api/components/schema/client.py index 38dfdd7d94e..120f03eb074 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/client.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/client.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Client2: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "client": typing.Type[Client2], @@ -26,12 +26,6 @@ class ClientDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "client", }) - @staticmethod - def from_dict_( - arg: ClientDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ClientDict: - return Client.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ClientDictInput, arg_) return Client.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ClientDictInput, + ClientDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ClientDict: + return Client.validate(arg, configuration=configuration) @property def client(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/complex_quadrilateral.py b/samples/client/petstore/python/src/petstore_api/components/schema/complex_quadrilateral.py index e45d5f5493a..0cba0bb52a6 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/complex_quadrilateral.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/complex_quadrilateral.py @@ -15,7 +15,7 @@ class QuadrilateralTypeEnums: @schemas.classproperty - def COMPLEX_QUADRILATERAL(cls) -> typing_extensions.Literal["ComplexQuadrilateral"]: + def COMPLEX_QUADRILATERAL(cls) -> typing.Literal["ComplexQuadrilateral"]: return QuadrilateralType.validate("ComplexQuadrilateral") @@ -37,34 +37,34 @@ class QuadrilateralType( @classmethod def validate( cls, - arg: typing_extensions.Literal["ComplexQuadrilateral"], + arg: typing.Literal["ComplexQuadrilateral"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["ComplexQuadrilateral"]: ... + ) -> typing.Literal["ComplexQuadrilateral"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["ComplexQuadrilateral",]: ... + ) -> typing.Literal["ComplexQuadrilateral",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "ComplexQuadrilateral", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "ComplexQuadrilateral", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "quadrilateralType": typing.Type[QuadrilateralType], @@ -79,18 +79,12 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "quadrilateralType", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, *, quadrilateralType: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "ComplexQuadrilateral" ], schemas.Unset @@ -108,15 +102,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property - def quadrilateralType(self) -> typing.Union[typing_extensions.Literal["ComplexQuadrilateral"], schemas.Unset]: + def quadrilateralType(self) -> typing.Union[typing.Literal["ComplexQuadrilateral"], schemas.Unset]: val = self.get("quadrilateralType", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["ComplexQuadrilateral"], + typing.Literal["ComplexQuadrilateral"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/composed_any_of_different_types_no_validations.py b/samples/client/petstore/python/src/petstore_api/components/schema/composed_any_of_different_types_no_validations.py index 1ae03e22726..e8f4ea8dc00 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/composed_any_of_different_types_no_validations.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/composed_any_of_different_types_no_validations.py @@ -29,7 +29,7 @@ class _9Tuple( ] ): - def __new__(cls, arg: _9TupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[_9TupleInput, _9Tuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return _9.validate(arg, configuration=configuration) _9TupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/composed_array.py b/samples/client/petstore/python/src/petstore_api/components/schema/composed_array.py index 6bcff7341cf..81871a432ad 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/composed_array.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/composed_array.py @@ -20,7 +20,7 @@ class ComposedArrayTuple( ] ): - def __new__(cls, arg: ComposedArrayTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ComposedArrayTupleInput, ComposedArrayTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ComposedArray.validate(arg, configuration=configuration) ComposedArrayTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/composed_one_of_different_types.py b/samples/client/petstore/python/src/petstore_api/components/schema/composed_one_of_different_types.py index 513e5202df1..1183d6fd5fa 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/composed_one_of_different_types.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/composed_one_of_different_types.py @@ -43,7 +43,7 @@ class _5Tuple( ] ): - def __new__(cls, arg: _5TupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[_5TupleInput, _5Tuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return _5.validate(arg, configuration=configuration) _5TupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/currency.py b/samples/client/petstore/python/src/petstore_api/components/schema/currency.py index 9eaab500e12..0b5071d96c7 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/currency.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/currency.py @@ -15,11 +15,11 @@ class CurrencyEnums: @schemas.classproperty - def EUR(cls) -> typing_extensions.Literal["eur"]: + def EUR(cls) -> typing.Literal["eur"]: return Currency.validate("eur") @schemas.classproperty - def USD(cls) -> typing_extensions.Literal["usd"]: + def USD(cls) -> typing.Literal["usd"]: return Currency.validate("usd") @@ -47,29 +47,29 @@ class Currency( @classmethod def validate( cls, - arg: typing_extensions.Literal["eur"], + arg: typing.Literal["eur"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["eur"]: ... + ) -> typing.Literal["eur"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["usd"], + arg: typing.Literal["usd"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["usd"]: ... + ) -> typing.Literal["usd"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["eur","usd",]: ... + ) -> typing.Literal["eur","usd",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "eur", "usd", ]: @@ -77,7 +77,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "eur", "usd", ], diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/danish_pig.py b/samples/client/petstore/python/src/petstore_api/components/schema/danish_pig.py index a3397c1cae8..1ce91c1ad57 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/danish_pig.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/danish_pig.py @@ -15,7 +15,7 @@ class ClassNameEnums: @schemas.classproperty - def DANISH_PIG(cls) -> typing_extensions.Literal["DanishPig"]: + def DANISH_PIG(cls) -> typing.Literal["DanishPig"]: return ClassName.validate("DanishPig") @@ -37,34 +37,34 @@ class ClassName( @classmethod def validate( cls, - arg: typing_extensions.Literal["DanishPig"], + arg: typing.Literal["DanishPig"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["DanishPig"]: ... + ) -> typing.Literal["DanishPig"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["DanishPig",]: ... + ) -> typing.Literal["DanishPig",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "DanishPig", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "DanishPig", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "className": typing.Type[ClassName], @@ -79,17 +79,11 @@ class DanishPigDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: DanishPigDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> DanishPigDict: - return DanishPig.validate(arg, configuration=configuration) def __new__( cls, *, - className: typing_extensions.Literal[ + className: typing.Literal[ "DanishPig" ], configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, @@ -101,12 +95,21 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(DanishPigDictInput, arg_) return DanishPig.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + DanishPigDictInput, + DanishPigDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> DanishPigDict: + return DanishPig.validate(arg, configuration=configuration) @property - def className(self) -> typing_extensions.Literal["DanishPig"]: + def className(self) -> typing.Literal["DanishPig"]: return typing.cast( - typing_extensions.Literal["DanishPig"], + typing.Literal["DanishPig"], self.__getitem__("className") ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/dog.py b/samples/client/petstore/python/src/petstore_api/components/schema/dog.py index 69d827ee436..f280d3807c6 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/dog.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/dog.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Breed: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "breed": typing.Type[Breed], @@ -26,12 +26,6 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "breed", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def breed(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/drawing.py b/samples/client/petstore/python/src/petstore_api/components/schema/drawing.py index b671bbb3de2..8a7f007dd14 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/drawing.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/drawing.py @@ -24,7 +24,7 @@ class ShapesTuple( ] ): - def __new__(cls, arg: ShapesTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ShapesTupleInput, ShapesTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Shapes.validate(arg, configuration=configuration) ShapesTupleInput = typing.Union[ typing.List[ @@ -71,7 +71,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "mainShape": typing.Type[shape.Shape], @@ -92,12 +92,6 @@ class DrawingDict(schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TY "nullableShape", "shapes", }) - @staticmethod - def from_dict_( - arg: DrawingDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> DrawingDict: - return Drawing.validate(arg, configuration=configuration) def __new__( cls, @@ -141,7 +135,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(DrawingDictInput, arg_) return Drawing.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + DrawingDictInput, + DrawingDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> DrawingDict: + return Drawing.validate(arg, configuration=configuration) @property def mainShape(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/enum_arrays.py b/samples/client/petstore/python/src/petstore_api/components/schema/enum_arrays.py index 554929a4a6d..24f2df56e0a 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/enum_arrays.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/enum_arrays.py @@ -15,11 +15,11 @@ class JustSymbolEnums: @schemas.classproperty - def GREATER_THAN_SIGN_EQUALS_SIGN(cls) -> typing_extensions.Literal[">="]: + def GREATER_THAN_SIGN_EQUALS_SIGN(cls) -> typing.Literal[">="]: return JustSymbol.validate(">=") @schemas.classproperty - def DOLLAR_SIGN(cls) -> typing_extensions.Literal["$"]: + def DOLLAR_SIGN(cls) -> typing.Literal["$"]: return JustSymbol.validate("$") @@ -42,29 +42,29 @@ class JustSymbol( @classmethod def validate( cls, - arg: typing_extensions.Literal[">="], + arg: typing.Literal[">="], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">="]: ... + ) -> typing.Literal[">="]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["$"], + arg: typing.Literal["$"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["$"]: ... + ) -> typing.Literal["$"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">=","$",]: ... + ) -> typing.Literal[">=","$",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ ">=", "$", ]: @@ -72,7 +72,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ ">=", "$", ], @@ -83,11 +83,11 @@ def validate( class ItemsEnums: @schemas.classproperty - def FISH(cls) -> typing_extensions.Literal["fish"]: + def FISH(cls) -> typing.Literal["fish"]: return Items.validate("fish") @schemas.classproperty - def CRAB(cls) -> typing_extensions.Literal["crab"]: + def CRAB(cls) -> typing.Literal["crab"]: return Items.validate("crab") @@ -110,29 +110,29 @@ class Items( @classmethod def validate( cls, - arg: typing_extensions.Literal["fish"], + arg: typing.Literal["fish"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["fish"]: ... + ) -> typing.Literal["fish"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["crab"], + arg: typing.Literal["crab"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["crab"]: ... + ) -> typing.Literal["crab"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["fish","crab",]: ... + ) -> typing.Literal["fish","crab",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "fish", "crab", ]: @@ -140,7 +140,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "fish", "crab", ], @@ -150,22 +150,22 @@ def validate( class ArrayEnumTuple( typing.Tuple[ - typing_extensions.Literal["fish", "crab"], + typing.Literal["fish", "crab"], ... ] ): - def __new__(cls, arg: ArrayEnumTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayEnumTupleInput, ArrayEnumTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayEnum.validate(arg, configuration=configuration) ArrayEnumTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ "fish", "crab" ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ "fish", "crab" ], @@ -202,7 +202,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "just_symbol": typing.Type[JustSymbol], @@ -219,18 +219,12 @@ class EnumArraysDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "just_symbol", "array_enum", }) - @staticmethod - def from_dict_( - arg: EnumArraysDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> EnumArraysDict: - return EnumArrays.validate(arg, configuration=configuration) def __new__( cls, *, just_symbol: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ ">=", "$" ], @@ -255,15 +249,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(EnumArraysDictInput, arg_) return EnumArrays.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + EnumArraysDictInput, + EnumArraysDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> EnumArraysDict: + return EnumArrays.validate(arg, configuration=configuration) @property - def just_symbol(self) -> typing.Union[typing_extensions.Literal[">=", "$"], schemas.Unset]: + def just_symbol(self) -> typing.Union[typing.Literal[">=", "$"], schemas.Unset]: val = self.get("just_symbol", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[">=", "$"], + typing.Literal[">=", "$"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/enum_class.py b/samples/client/petstore/python/src/petstore_api/components/schema/enum_class.py index 2138bd1bfa9..2e5ad3e6045 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/enum_class.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/enum_class.py @@ -15,23 +15,23 @@ class EnumClassEnums: @schemas.classproperty - def _ABC(cls) -> typing_extensions.Literal["_abc"]: + def _ABC(cls) -> typing.Literal["_abc"]: return EnumClass.validate("_abc") @schemas.classproperty - def HYPHEN_MINUS_EFG(cls) -> typing_extensions.Literal["-efg"]: + def HYPHEN_MINUS_EFG(cls) -> typing.Literal["-efg"]: return EnumClass.validate("-efg") @schemas.classproperty - def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing_extensions.Literal["(xyz)"]: + def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing.Literal["(xyz)"]: return EnumClass.validate("(xyz)") @schemas.classproperty - def COUNT_1M(cls) -> typing_extensions.Literal["COUNT_1M"]: + def COUNT_1M(cls) -> typing.Literal["COUNT_1M"]: return EnumClass.validate("COUNT_1M") @schemas.classproperty - def COUNT_50M(cls) -> typing_extensions.Literal["COUNT_50M"]: + def COUNT_50M(cls) -> typing.Literal["COUNT_50M"]: return EnumClass.validate("COUNT_50M") @@ -47,7 +47,7 @@ class EnumClass( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["-efg"] = "-efg" + default: typing.Literal["-efg"] = "-efg" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "_abc": "_ABC", @@ -63,50 +63,50 @@ class EnumClass( @classmethod def validate( cls, - arg: typing_extensions.Literal["_abc"], + arg: typing.Literal["_abc"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc"]: ... + ) -> typing.Literal["_abc"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["-efg"], + arg: typing.Literal["-efg"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["-efg"]: ... + ) -> typing.Literal["-efg"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["(xyz)"], + arg: typing.Literal["(xyz)"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["(xyz)"]: ... + ) -> typing.Literal["(xyz)"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["COUNT_1M"], + arg: typing.Literal["COUNT_1M"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["COUNT_1M"]: ... + ) -> typing.Literal["COUNT_1M"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["COUNT_50M"], + arg: typing.Literal["COUNT_50M"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["COUNT_50M"]: ... + ) -> typing.Literal["COUNT_50M"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc","-efg","(xyz)","COUNT_1M","COUNT_50M",]: ... + ) -> typing.Literal["_abc","-efg","(xyz)","COUNT_1M","COUNT_50M",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "_abc", "-efg", "(xyz)", @@ -117,7 +117,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "_abc", "-efg", "(xyz)", diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/enum_test.py b/samples/client/petstore/python/src/petstore_api/components/schema/enum_test.py index 85e760ad034..f446e6dd551 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/enum_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/enum_test.py @@ -15,15 +15,15 @@ class EnumStringEnums: @schemas.classproperty - def UPPER(cls) -> typing_extensions.Literal["UPPER"]: + def UPPER(cls) -> typing.Literal["UPPER"]: return EnumString.validate("UPPER") @schemas.classproperty - def LOWER(cls) -> typing_extensions.Literal["lower"]: + def LOWER(cls) -> typing.Literal["lower"]: return EnumString.validate("lower") @schemas.classproperty - def EMPTY(cls) -> typing_extensions.Literal[""]: + def EMPTY(cls) -> typing.Literal[""]: return EnumString.validate("") @@ -47,36 +47,36 @@ class EnumString( @classmethod def validate( cls, - arg: typing_extensions.Literal["UPPER"], + arg: typing.Literal["UPPER"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER"]: ... + ) -> typing.Literal["UPPER"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["lower"], + arg: typing.Literal["lower"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["lower"]: ... + ) -> typing.Literal["lower"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[""], + arg: typing.Literal[""], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[""]: ... + ) -> typing.Literal[""]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER","lower","",]: ... + ) -> typing.Literal["UPPER","lower","",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "UPPER", "lower", "", @@ -85,7 +85,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "UPPER", "lower", "", @@ -97,15 +97,15 @@ def validate( class EnumStringRequiredEnums: @schemas.classproperty - def UPPER(cls) -> typing_extensions.Literal["UPPER"]: + def UPPER(cls) -> typing.Literal["UPPER"]: return EnumStringRequired.validate("UPPER") @schemas.classproperty - def LOWER(cls) -> typing_extensions.Literal["lower"]: + def LOWER(cls) -> typing.Literal["lower"]: return EnumStringRequired.validate("lower") @schemas.classproperty - def EMPTY(cls) -> typing_extensions.Literal[""]: + def EMPTY(cls) -> typing.Literal[""]: return EnumStringRequired.validate("") @@ -129,36 +129,36 @@ class EnumStringRequired( @classmethod def validate( cls, - arg: typing_extensions.Literal["UPPER"], + arg: typing.Literal["UPPER"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER"]: ... + ) -> typing.Literal["UPPER"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["lower"], + arg: typing.Literal["lower"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["lower"]: ... + ) -> typing.Literal["lower"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[""], + arg: typing.Literal[""], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[""]: ... + ) -> typing.Literal[""]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER","lower","",]: ... + ) -> typing.Literal["UPPER","lower","",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "UPPER", "lower", "", @@ -167,7 +167,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "UPPER", "lower", "", @@ -179,11 +179,11 @@ def validate( class EnumIntegerEnums: @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return EnumInteger.validate(1) @schemas.classproperty - def NEGATIVE_1(cls) -> typing_extensions.Literal[-1]: + def NEGATIVE_1(cls) -> typing.Literal[-1]: return EnumInteger.validate(-1) @@ -207,29 +207,29 @@ class EnumInteger( @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[-1], + arg: typing.Literal[-1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[-1]: ... + ) -> typing.Literal[-1]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1,-1,]: ... + ) -> typing.Literal[1,-1,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 1, -1, ]: @@ -237,7 +237,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 1, -1, ], @@ -290,7 +290,7 @@ def validate( from petstore_api.components.schema import integer_enum_with_default_value from petstore_api.components.schema import string_enum from petstore_api.components.schema import string_enum_with_default_value -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "enum_string": typing.Type[EnumString], @@ -320,23 +320,17 @@ class EnumTestDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", }) - @staticmethod - def from_dict_( - arg: EnumTestDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> EnumTestDict: - return EnumTest.validate(arg, configuration=configuration) def __new__( cls, *, - enum_string_required: typing_extensions.Literal[ + enum_string_required: typing.Literal[ "UPPER", "lower", "" ], enum_string: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "UPPER", "lower", "" @@ -344,7 +338,7 @@ def __new__( schemas.Unset ] = schemas.unset, enum_integer: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ 1, -1 ], @@ -357,7 +351,7 @@ def __new__( ] = schemas.unset, stringEnum: typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", @@ -368,7 +362,7 @@ def __new__( schemas.Unset ] = schemas.unset, IntegerEnum: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ 0, 1, 2 @@ -376,7 +370,7 @@ def __new__( schemas.Unset ] = schemas.unset, StringEnumWithDefaultValue: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered" @@ -384,7 +378,7 @@ def __new__( schemas.Unset ] = schemas.unset, IntegerEnumWithDefaultValue: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ 0, 1, 2 @@ -392,7 +386,7 @@ def __new__( schemas.Unset ] = schemas.unset, IntegerEnumOneValue: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ 0 ], schemas.Unset @@ -419,32 +413,41 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(EnumTestDictInput, arg_) return EnumTest.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + EnumTestDictInput, + EnumTestDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> EnumTestDict: + return EnumTest.validate(arg, configuration=configuration) @property - def enum_string_required(self) -> typing_extensions.Literal["UPPER", "lower", ""]: + def enum_string_required(self) -> typing.Literal["UPPER", "lower", ""]: return typing.cast( - typing_extensions.Literal["UPPER", "lower", ""], + typing.Literal["UPPER", "lower", ""], self.__getitem__("enum_string_required") ) @property - def enum_string(self) -> typing.Union[typing_extensions.Literal["UPPER", "lower", ""], schemas.Unset]: + def enum_string(self) -> typing.Union[typing.Literal["UPPER", "lower", ""], schemas.Unset]: val = self.get("enum_string", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["UPPER", "lower", ""], + typing.Literal["UPPER", "lower", ""], val ) @property - def enum_integer(self) -> typing.Union[typing_extensions.Literal[1, -1], schemas.Unset]: + def enum_integer(self) -> typing.Union[typing.Literal[1, -1], schemas.Unset]: val = self.get("enum_integer", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[1, -1], + typing.Literal[1, -1], val ) @@ -461,7 +464,7 @@ def enum_number(self) -> typing.Union[int, float, schemas.Unset]: @property def stringEnum(self) -> typing.Union[ typing.Union[None, schemas.Unset], - typing.Union[typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], schemas.Unset], + typing.Union[typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], schemas.Unset], ]: val = self.get("stringEnum", schemas.unset) if isinstance(val, schemas.Unset): @@ -469,48 +472,48 @@ def stringEnum(self) -> typing.Union[ return typing.cast( typing.Union[ None, - typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], + typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], ], val ) @property - def IntegerEnum(self) -> typing.Union[typing_extensions.Literal[0, 1, 2], schemas.Unset]: + def IntegerEnum(self) -> typing.Union[typing.Literal[0, 1, 2], schemas.Unset]: val = self.get("IntegerEnum", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[0, 1, 2], + typing.Literal[0, 1, 2], val ) @property - def StringEnumWithDefaultValue(self) -> typing.Union[typing_extensions.Literal["placed", "approved", "delivered"], schemas.Unset]: + def StringEnumWithDefaultValue(self) -> typing.Union[typing.Literal["placed", "approved", "delivered"], schemas.Unset]: val = self.get("StringEnumWithDefaultValue", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["placed", "approved", "delivered"], + typing.Literal["placed", "approved", "delivered"], val ) @property - def IntegerEnumWithDefaultValue(self) -> typing.Union[typing_extensions.Literal[0, 1, 2], schemas.Unset]: + def IntegerEnumWithDefaultValue(self) -> typing.Union[typing.Literal[0, 1, 2], schemas.Unset]: val = self.get("IntegerEnumWithDefaultValue", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[0, 1, 2], + typing.Literal[0, 1, 2], val ) @property - def IntegerEnumOneValue(self) -> typing.Union[typing_extensions.Literal[0], schemas.Unset]: + def IntegerEnumOneValue(self) -> typing.Union[typing.Literal[0], schemas.Unset]: val = self.get("IntegerEnumOneValue", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[0], + typing.Literal[0], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/equilateral_triangle.py b/samples/client/petstore/python/src/petstore_api/components/schema/equilateral_triangle.py index d9faf478345..9e0376e38ec 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/equilateral_triangle.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/equilateral_triangle.py @@ -15,7 +15,7 @@ class TriangleTypeEnums: @schemas.classproperty - def EQUILATERAL_TRIANGLE(cls) -> typing_extensions.Literal["EquilateralTriangle"]: + def EQUILATERAL_TRIANGLE(cls) -> typing.Literal["EquilateralTriangle"]: return TriangleType.validate("EquilateralTriangle") @@ -37,34 +37,34 @@ class TriangleType( @classmethod def validate( cls, - arg: typing_extensions.Literal["EquilateralTriangle"], + arg: typing.Literal["EquilateralTriangle"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["EquilateralTriangle"]: ... + ) -> typing.Literal["EquilateralTriangle"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["EquilateralTriangle",]: ... + ) -> typing.Literal["EquilateralTriangle",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "EquilateralTriangle", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "EquilateralTriangle", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "triangleType": typing.Type[TriangleType], @@ -79,18 +79,12 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "triangleType", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, *, triangleType: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "EquilateralTriangle" ], schemas.Unset @@ -108,15 +102,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property - def triangleType(self) -> typing.Union[typing_extensions.Literal["EquilateralTriangle"], schemas.Unset]: + def triangleType(self) -> typing.Union[typing.Literal["EquilateralTriangle"], schemas.Unset]: val = self.get("triangleType", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["EquilateralTriangle"], + typing.Literal["EquilateralTriangle"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/file.py b/samples/client/petstore/python/src/petstore_api/components/schema/file.py index 94afed611b5..35e7b2dcbeb 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/file.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/file.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] SourceURI: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "sourceURI": typing.Type[SourceURI], @@ -26,12 +26,6 @@ class FileDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "sourceURI", }) - @staticmethod - def from_dict_( - arg: FileDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FileDict: - return File.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FileDictInput, arg_) return File.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FileDictInput, + FileDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FileDict: + return File.validate(arg, configuration=configuration) @property def sourceURI(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/file_schema_test_class.py b/samples/client/petstore/python/src/petstore_api/components/schema/file_schema_test_class.py index 60f6dec9b01..a916311aed1 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/file_schema_test_class.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/file_schema_test_class.py @@ -21,7 +21,7 @@ class FilesTuple( ] ): - def __new__(cls, arg: FilesTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[FilesTupleInput, FilesTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Files.validate(arg, configuration=configuration) FilesTupleInput = typing.Union[ typing.List[ @@ -68,7 +68,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "file": typing.Type[file.File], @@ -85,12 +85,6 @@ class FileSchemaTestClassDict(schemas.immutabledict[str, typing.Tuple[schemas.OU "file", "files", }) - @staticmethod - def from_dict_( - arg: FileSchemaTestClassDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FileSchemaTestClassDict: - return FileSchemaTestClass.validate(arg, configuration=configuration) def __new__( cls, @@ -119,7 +113,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FileSchemaTestClassDictInput, arg_) return FileSchemaTestClass.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FileSchemaTestClassDictInput, + FileSchemaTestClassDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FileSchemaTestClassDict: + return FileSchemaTestClass.validate(arg, configuration=configuration) @property def file(self) -> typing.Union[file.FileDict, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/foo.py b/samples/client/petstore/python/src/petstore_api/components/schema/foo.py index a98df7c0247..d415ba35f50 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/foo.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/foo.py @@ -12,7 +12,7 @@ from petstore_api.components.schema import bar -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[bar.Bar], @@ -26,12 +26,6 @@ class FooDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "bar", }) - @staticmethod - def from_dict_( - arg: FooDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FooDict: - return Foo.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FooDictInput, arg_) return Foo.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FooDictInput, + FooDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FooDict: + return Foo.validate(arg, configuration=configuration) @property def bar(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/format_test.py b/samples/client/petstore/python/src/petstore_api/components/schema/format_test.py index 9b6a05cbd89..cc6fcbce87d 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/format_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/format_test.py @@ -88,7 +88,7 @@ class ArrayWithUniqueItemsTuple( ] ): - def __new__(cls, arg: ArrayWithUniqueItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayWithUniqueItemsTupleInput, ArrayWithUniqueItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayWithUniqueItems.validate(arg, configuration=configuration) ArrayWithUniqueItemsTupleInput = typing.Union[ typing.List[ @@ -193,7 +193,7 @@ class PatternWithDigitsAndDelimiter( flags=re.I, ) NoneProp: typing_extensions.TypeAlias = schemas.NoneSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "integer": typing.Type[Integer], @@ -248,12 +248,6 @@ class FormatTestDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "pattern_with_digits_and_delimiter", "noneProp", }) - @staticmethod - def from_dict_( - arg: FormatTestDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FormatTestDict: - return FormatTest.validate(arg, configuration=configuration) def __new__( cls, @@ -375,7 +369,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FormatTestDictInput, arg_) return FormatTest.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FormatTestDictInput, + FormatTestDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FormatTestDict: + return FormatTest.validate(arg, configuration=configuration) @property def byte(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/from_schema.py b/samples/client/petstore/python/src/petstore_api/components/schema/from_schema.py index a5797dc6709..89d43ee3f47 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/from_schema.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/from_schema.py @@ -12,7 +12,7 @@ Data: typing_extensions.TypeAlias = schemas.StrSchema Id: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "data": typing.Type[Data], @@ -29,12 +29,6 @@ class FromSchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "data", "id", }) - @staticmethod - def from_dict_( - arg: FromSchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FromSchemaDict: - return FromSchema.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FromSchemaDictInput, arg_) return FromSchema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FromSchemaDictInput, + FromSchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FromSchemaDict: + return FromSchema.validate(arg, configuration=configuration) @property def data(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/fruit.py b/samples/client/petstore/python/src/petstore_api/components/schema/fruit.py index 68e71340550..fa5ed7f8799 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/fruit.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/fruit.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Color: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "color": typing.Type[Color], @@ -26,12 +26,6 @@ class FruitDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "color", }) - @staticmethod - def from_dict_( - arg: FruitDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> FruitDict: - return Fruit.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(FruitDictInput, arg_) return Fruit.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + FruitDictInput, + FruitDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FruitDict: + return Fruit.validate(arg, configuration=configuration) @property def color(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/gm_fruit.py b/samples/client/petstore/python/src/petstore_api/components/schema/gm_fruit.py index 1863b7caf75..9bf0241ac55 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/gm_fruit.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/gm_fruit.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Color: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "color": typing.Type[Color], @@ -26,12 +26,6 @@ class GmFruitDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "color", }) - @staticmethod - def from_dict_( - arg: GmFruitDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> GmFruitDict: - return GmFruit.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(GmFruitDictInput, arg_) return GmFruit.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + GmFruitDictInput, + GmFruitDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> GmFruitDict: + return GmFruit.validate(arg, configuration=configuration) @property def color(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/grandparent_animal.py b/samples/client/petstore/python/src/petstore_api/components/schema/grandparent_animal.py index 9ac855dfdac..81d610a532b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/grandparent_animal.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/grandparent_animal.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] PetType: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "pet_type": typing.Type[PetType], @@ -26,12 +26,6 @@ class GrandparentAnimalDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: GrandparentAnimalDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> GrandparentAnimalDict: - return GrandparentAnimal.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(GrandparentAnimalDictInput, arg_) return GrandparentAnimal.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + GrandparentAnimalDictInput, + GrandparentAnimalDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> GrandparentAnimalDict: + return GrandparentAnimal.validate(arg, configuration=configuration) @property def pet_type(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/has_only_read_only.py b/samples/client/petstore/python/src/petstore_api/components/schema/has_only_read_only.py index 2502a555dd2..85ccbaed548 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/has_only_read_only.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/has_only_read_only.py @@ -12,7 +12,7 @@ Bar: typing_extensions.TypeAlias = schemas.StrSchema Foo: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -29,12 +29,6 @@ class HasOnlyReadOnlyDict(schemas.immutabledict[str, str]): "bar", "foo", }) - @staticmethod - def from_dict_( - arg: HasOnlyReadOnlyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HasOnlyReadOnlyDict: - return HasOnlyReadOnly.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(HasOnlyReadOnlyDictInput, arg_) return HasOnlyReadOnly.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HasOnlyReadOnlyDictInput, + HasOnlyReadOnlyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HasOnlyReadOnlyDict: + return HasOnlyReadOnly.validate(arg, configuration=configuration) @property def bar(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/health_check_result.py b/samples/client/petstore/python/src/petstore_api/components/schema/health_check_result.py index a34461ff505..156c96f68ef 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/health_check_result.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/health_check_result.py @@ -46,7 +46,7 @@ def validate( configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "NullableMessage": typing.Type[NullableMessage], @@ -64,12 +64,6 @@ class HealthCheckResultDict(schemas.immutabledict[str, typing.Union[ __optional_keys__: typing.FrozenSet[str] = frozenset({ "NullableMessage", }) - @staticmethod - def from_dict_( - arg: HealthCheckResultDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HealthCheckResultDict: - return HealthCheckResult.validate(arg, configuration=configuration) def __new__( cls, @@ -92,7 +86,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(HealthCheckResultDictInput, arg_) return HealthCheckResult.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HealthCheckResultDictInput, + HealthCheckResultDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HealthCheckResultDict: + return HealthCheckResult.validate(arg, configuration=configuration) @property def NullableMessage(self) -> typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum.py b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum.py index 638237ecf68..2d1a458c3ae 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum.py @@ -15,15 +15,15 @@ class IntegerEnumEnums: @schemas.classproperty - def POSITIVE_0(cls) -> typing_extensions.Literal[0]: + def POSITIVE_0(cls) -> typing.Literal[0]: return IntegerEnum.validate(0) @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return IntegerEnum.validate(1) @schemas.classproperty - def POSITIVE_2(cls) -> typing_extensions.Literal[2]: + def POSITIVE_2(cls) -> typing.Literal[2]: return IntegerEnum.validate(2) @@ -53,36 +53,36 @@ class IntegerEnum( @classmethod def validate( cls, - arg: typing_extensions.Literal[0], + arg: typing.Literal[0], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0]: ... + ) -> typing.Literal[0]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[2], + arg: typing.Literal[2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[2]: ... + ) -> typing.Literal[2]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0,1,2,]: ... + ) -> typing.Literal[0,1,2,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 0, 1, 2, @@ -91,7 +91,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 0, 1, 2, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_big.py b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_big.py index cd193132131..c6ae4ce33e7 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_big.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_big.py @@ -15,15 +15,15 @@ class IntegerEnumBigEnums: @schemas.classproperty - def POSITIVE_10(cls) -> typing_extensions.Literal[10]: + def POSITIVE_10(cls) -> typing.Literal[10]: return IntegerEnumBig.validate(10) @schemas.classproperty - def POSITIVE_11(cls) -> typing_extensions.Literal[11]: + def POSITIVE_11(cls) -> typing.Literal[11]: return IntegerEnumBig.validate(11) @schemas.classproperty - def POSITIVE_12(cls) -> typing_extensions.Literal[12]: + def POSITIVE_12(cls) -> typing.Literal[12]: return IntegerEnumBig.validate(12) @@ -53,36 +53,36 @@ class IntegerEnumBig( @classmethod def validate( cls, - arg: typing_extensions.Literal[10], + arg: typing.Literal[10], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[10]: ... + ) -> typing.Literal[10]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[11], + arg: typing.Literal[11], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[11]: ... + ) -> typing.Literal[11]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[12], + arg: typing.Literal[12], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[12]: ... + ) -> typing.Literal[12]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[10,11,12,]: ... + ) -> typing.Literal[10,11,12,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 10, 11, 12, @@ -91,7 +91,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 10, 11, 12, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_one_value.py b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_one_value.py index b80bd6143fb..bf073ffc28f 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_one_value.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_one_value.py @@ -15,7 +15,7 @@ class IntegerEnumOneValueEnums: @schemas.classproperty - def POSITIVE_0(cls) -> typing_extensions.Literal[0]: + def POSITIVE_0(cls) -> typing.Literal[0]: return IntegerEnumOneValue.validate(0) @@ -43,29 +43,29 @@ class IntegerEnumOneValue( @classmethod def validate( cls, - arg: typing_extensions.Literal[0], + arg: typing.Literal[0], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0]: ... + ) -> typing.Literal[0]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0,]: ... + ) -> typing.Literal[0,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 0, ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 0, ], validated_arg diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_with_default_value.py b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_with_default_value.py index 4a5e4ffb925..b762aae8735 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_with_default_value.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/integer_enum_with_default_value.py @@ -15,15 +15,15 @@ class IntegerEnumWithDefaultValueEnums: @schemas.classproperty - def POSITIVE_0(cls) -> typing_extensions.Literal[0]: + def POSITIVE_0(cls) -> typing.Literal[0]: return IntegerEnumWithDefaultValue.validate(0) @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return IntegerEnumWithDefaultValue.validate(1) @schemas.classproperty - def POSITIVE_2(cls) -> typing_extensions.Literal[2]: + def POSITIVE_2(cls) -> typing.Literal[2]: return IntegerEnumWithDefaultValue.validate(2) @@ -40,7 +40,7 @@ class IntegerEnumWithDefaultValue( int, }) format: str = 'int' - default: typing_extensions.Literal[0] = 0 + default: typing.Literal[0] = 0 enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { 0: "POSITIVE_0", @@ -54,36 +54,36 @@ class IntegerEnumWithDefaultValue( @classmethod def validate( cls, - arg: typing_extensions.Literal[0], + arg: typing.Literal[0], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0]: ... + ) -> typing.Literal[0]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[2], + arg: typing.Literal[2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[2]: ... + ) -> typing.Literal[2]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[0,1,2,]: ... + ) -> typing.Literal[0,1,2,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 0, 1, 2, @@ -92,7 +92,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 0, 1, 2, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/isosceles_triangle.py b/samples/client/petstore/python/src/petstore_api/components/schema/isosceles_triangle.py index dcd7638f6ff..d1467a5b412 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/isosceles_triangle.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/isosceles_triangle.py @@ -15,7 +15,7 @@ class TriangleTypeEnums: @schemas.classproperty - def ISOSCELES_TRIANGLE(cls) -> typing_extensions.Literal["IsoscelesTriangle"]: + def ISOSCELES_TRIANGLE(cls) -> typing.Literal["IsoscelesTriangle"]: return TriangleType.validate("IsoscelesTriangle") @@ -37,34 +37,34 @@ class TriangleType( @classmethod def validate( cls, - arg: typing_extensions.Literal["IsoscelesTriangle"], + arg: typing.Literal["IsoscelesTriangle"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["IsoscelesTriangle"]: ... + ) -> typing.Literal["IsoscelesTriangle"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["IsoscelesTriangle",]: ... + ) -> typing.Literal["IsoscelesTriangle",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "IsoscelesTriangle", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "IsoscelesTriangle", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "triangleType": typing.Type[TriangleType], @@ -79,18 +79,12 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "triangleType", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, *, triangleType: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "IsoscelesTriangle" ], schemas.Unset @@ -108,15 +102,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property - def triangleType(self) -> typing.Union[typing_extensions.Literal["IsoscelesTriangle"], schemas.Unset]: + def triangleType(self) -> typing.Union[typing.Literal["IsoscelesTriangle"], schemas.Unset]: val = self.get("triangleType", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["IsoscelesTriangle"], + typing.Literal["IsoscelesTriangle"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/items.py b/samples/client/petstore/python/src/petstore_api/components/schema/items.py index 0d2523b22f5..556a73fd037 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/items.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/items.py @@ -20,7 +20,7 @@ class ItemsTuple( ] ): - def __new__(cls, arg: ItemsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ItemsTupleInput, ItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Items.validate(arg, configuration=configuration) ItemsTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request.py b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request.py index ea69b2bcd84..95b2e0e0869 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request.py @@ -37,7 +37,7 @@ class JSONPatchRequestTuple( ] ): - def __new__(cls, arg: JSONPatchRequestTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[JSONPatchRequestTupleInput, JSONPatchRequestTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return JSONPatchRequest.validate(arg, configuration=configuration) JSONPatchRequestTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_add_replace_test.py b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_add_replace_test.py index 58cbea4dfc8..ce6277893d3 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_add_replace_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_add_replace_test.py @@ -18,15 +18,15 @@ class OpEnums: @schemas.classproperty - def ADD(cls) -> typing_extensions.Literal["add"]: + def ADD(cls) -> typing.Literal["add"]: return Op.validate("add") @schemas.classproperty - def REPLACE(cls) -> typing_extensions.Literal["replace"]: + def REPLACE(cls) -> typing.Literal["replace"]: return Op.validate("replace") @schemas.classproperty - def TEST(cls) -> typing_extensions.Literal["test"]: + def TEST(cls) -> typing.Literal["test"]: return Op.validate("test") @@ -50,36 +50,36 @@ class Op( @classmethod def validate( cls, - arg: typing_extensions.Literal["add"], + arg: typing.Literal["add"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["add"]: ... + ) -> typing.Literal["add"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["replace"], + arg: typing.Literal["replace"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["replace"]: ... + ) -> typing.Literal["replace"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["test"], + arg: typing.Literal["test"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["test"]: ... + ) -> typing.Literal["test"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["add","replace","test",]: ... + ) -> typing.Literal["add","replace","test",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "add", "replace", "test", @@ -88,14 +88,14 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "add", "replace", "test", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "path": typing.Type[Path], @@ -114,17 +114,11 @@ class JSONPatchRequestAddReplaceTestDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: JSONPatchRequestAddReplaceTestDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> JSONPatchRequestAddReplaceTestDict: - return JSONPatchRequestAddReplaceTest.validate(arg, configuration=configuration) def __new__( cls, *, - op: typing_extensions.Literal[ + op: typing.Literal[ "add", "replace", "test" @@ -143,12 +137,21 @@ def __new__( } used_arg_ = typing.cast(JSONPatchRequestAddReplaceTestDictInput, arg_) return JSONPatchRequestAddReplaceTest.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + JSONPatchRequestAddReplaceTestDictInput, + JSONPatchRequestAddReplaceTestDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> JSONPatchRequestAddReplaceTestDict: + return JSONPatchRequestAddReplaceTest.validate(arg, configuration=configuration) @property - def op(self) -> typing_extensions.Literal["add", "replace", "test"]: + def op(self) -> typing.Literal["add", "replace", "test"]: return typing.cast( - typing_extensions.Literal["add", "replace", "test"], + typing.Literal["add", "replace", "test"], self.__getitem__("op") ) @@ -165,10 +168,10 @@ def value(self) -> schemas.OUTPUT_BASE_TYPES: schemas.OUTPUT_BASE_TYPES, self.__getitem__("value") ) -JSONPatchRequestAddReplaceTestDictInput = typing_extensions.TypedDict( +JSONPatchRequestAddReplaceTestDictInput = typing.TypedDict( 'JSONPatchRequestAddReplaceTestDictInput', { - "op": typing_extensions.Literal[ + "op": typing.Literal[ "add", "replace", "test" diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_move_copy.py b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_move_copy.py index 1c0d982ed05..6e0e7a38c1e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_move_copy.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_move_copy.py @@ -18,11 +18,11 @@ class OpEnums: @schemas.classproperty - def MOVE(cls) -> typing_extensions.Literal["move"]: + def MOVE(cls) -> typing.Literal["move"]: return Op.validate("move") @schemas.classproperty - def COPY(cls) -> typing_extensions.Literal["copy"]: + def COPY(cls) -> typing.Literal["copy"]: return Op.validate("copy") @@ -45,29 +45,29 @@ class Op( @classmethod def validate( cls, - arg: typing_extensions.Literal["move"], + arg: typing.Literal["move"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["move"]: ... + ) -> typing.Literal["move"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["copy"], + arg: typing.Literal["copy"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["copy"]: ... + ) -> typing.Literal["copy"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["move","copy",]: ... + ) -> typing.Literal["move","copy",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "move", "copy", ]: @@ -75,13 +75,13 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "move", "copy", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "from": typing.Type[_From], @@ -100,17 +100,11 @@ class JSONPatchRequestMoveCopyDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: JSONPatchRequestMoveCopyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> JSONPatchRequestMoveCopyDict: - return JSONPatchRequestMoveCopy.validate(arg, configuration=configuration) def __new__( cls, *, - op: typing_extensions.Literal[ + op: typing.Literal[ "move", "copy" ], @@ -123,12 +117,21 @@ def __new__( } used_arg_ = typing.cast(JSONPatchRequestMoveCopyDictInput, arg_) return JSONPatchRequestMoveCopy.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + JSONPatchRequestMoveCopyDictInput, + JSONPatchRequestMoveCopyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> JSONPatchRequestMoveCopyDict: + return JSONPatchRequestMoveCopy.validate(arg, configuration=configuration) @property - def op(self) -> typing_extensions.Literal["move", "copy"]: + def op(self) -> typing.Literal["move", "copy"]: return typing.cast( - typing_extensions.Literal["move", "copy"], + typing.Literal["move", "copy"], self.__getitem__("op") ) @@ -138,11 +141,11 @@ def path(self) -> str: str, self.__getitem__("path") ) -JSONPatchRequestMoveCopyDictInput = typing_extensions.TypedDict( +JSONPatchRequestMoveCopyDictInput = typing.TypedDict( 'JSONPatchRequestMoveCopyDictInput', { "from": str, - "op": typing_extensions.Literal[ + "op": typing.Literal[ "move", "copy" ], diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_remove.py b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_remove.py index 8a2d4e11dbb..02fe3a3b436 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_remove.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/json_patch_request_remove.py @@ -17,7 +17,7 @@ class OpEnums: @schemas.classproperty - def REMOVE(cls) -> typing_extensions.Literal["remove"]: + def REMOVE(cls) -> typing.Literal["remove"]: return Op.validate("remove") @@ -39,34 +39,34 @@ class Op( @classmethod def validate( cls, - arg: typing_extensions.Literal["remove"], + arg: typing.Literal["remove"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["remove"]: ... + ) -> typing.Literal["remove"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["remove",]: ... + ) -> typing.Literal["remove",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "remove", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "remove", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "path": typing.Type[Path], @@ -83,17 +83,11 @@ class JSONPatchRequestRemoveDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: JSONPatchRequestRemoveDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> JSONPatchRequestRemoveDict: - return JSONPatchRequestRemove.validate(arg, configuration=configuration) def __new__( cls, *, - op: typing_extensions.Literal[ + op: typing.Literal[ "remove" ], path: str, @@ -105,12 +99,21 @@ def __new__( } used_arg_ = typing.cast(JSONPatchRequestRemoveDictInput, arg_) return JSONPatchRequestRemove.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + JSONPatchRequestRemoveDictInput, + JSONPatchRequestRemoveDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> JSONPatchRequestRemoveDict: + return JSONPatchRequestRemove.validate(arg, configuration=configuration) @property - def op(self) -> typing_extensions.Literal["remove"]: + def op(self) -> typing.Literal["remove"]: return typing.cast( - typing_extensions.Literal["remove"], + typing.Literal["remove"], self.__getitem__("op") ) @@ -120,10 +123,10 @@ def path(self) -> str: str, self.__getitem__("path") ) -JSONPatchRequestRemoveDictInput = typing_extensions.TypedDict( +JSONPatchRequestRemoveDictInput = typing.TypedDict( 'JSONPatchRequestRemoveDictInput', { - "op": typing_extensions.Literal[ + "op": typing.Literal[ "remove" ], "path": str, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/map_test.py b/samples/client/petstore/python/src/petstore_api/components/schema/map_test.py index 5326bb2bd98..2df13fa9efc 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/map_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/map_test.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: AdditionalPropertiesDictInput, + arg: typing.Union[ + AdditionalPropertiesDictInput, + AdditionalPropertiesDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> AdditionalPropertiesDict: return AdditionalProperties.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[str, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -100,11 +102,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapMapOfStringDictInput, + arg: typing.Union[ + MapMapOfStringDictInput, + MapMapOfStringDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapMapOfStringDict: return MapMapOfString.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[AdditionalPropertiesDict, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -158,11 +162,11 @@ def validate( class AdditionalPropertiesEnums: @schemas.classproperty - def UPPER(cls) -> typing_extensions.Literal["UPPER"]: + def UPPER(cls) -> typing.Literal["UPPER"]: return AdditionalProperties3.validate("UPPER") @schemas.classproperty - def LOWER(cls) -> typing_extensions.Literal["lower"]: + def LOWER(cls) -> typing.Literal["lower"]: return AdditionalProperties3.validate("lower") @@ -185,29 +189,29 @@ class AdditionalProperties3( @classmethod def validate( cls, - arg: typing_extensions.Literal["UPPER"], + arg: typing.Literal["UPPER"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER"]: ... + ) -> typing.Literal["UPPER"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["lower"], + arg: typing.Literal["lower"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["lower"]: ... + ) -> typing.Literal["lower"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["UPPER","lower",]: ... + ) -> typing.Literal["UPPER","lower",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "UPPER", "lower", ]: @@ -215,7 +219,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "UPPER", "lower", ], @@ -232,7 +236,7 @@ class MapOfEnumStringDict(schemas.immutabledict[str, str]): def __new__( cls, configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, - **kwargs: typing_extensions.Literal[ + **kwargs: typing.Literal[ "UPPER", "lower" ], @@ -242,24 +246,26 @@ def __new__( @staticmethod def from_dict_( - arg: MapOfEnumStringDictInput, + arg: typing.Union[ + MapOfEnumStringDictInput, + MapOfEnumStringDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapOfEnumStringDict: return MapOfEnumString.validate(arg, configuration=configuration) - - def get_additional_property_(self, name: str) -> typing.Union[typing_extensions.Literal["UPPER", "lower"], schemas.Unset]: + def get_additional_property_(self, name: str) -> typing.Union[typing.Literal["UPPER", "lower"], schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) val = self.get(name, schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["UPPER", "lower"], + typing.Literal["UPPER", "lower"], val ) MapOfEnumStringDictInput = typing.Mapping[ str, - typing_extensions.Literal[ + typing.Literal[ "UPPER", "lower" ], @@ -314,11 +320,13 @@ def __new__( @staticmethod def from_dict_( - arg: DirectMapDictInput, + arg: typing.Union[ + DirectMapDictInput, + DirectMapDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> DirectMapDict: return DirectMap.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[bool, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -366,7 +374,7 @@ def validate( from petstore_api.components.schema import string_boolean_map -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "map_map_of_string": typing.Type[MapMapOfString], @@ -386,12 +394,6 @@ class MapTestDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "direct_map", "indirect_map", }) - @staticmethod - def from_dict_( - arg: MapTestDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> MapTestDict: - return MapTest.validate(arg, configuration=configuration) def __new__( cls, @@ -432,7 +434,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(MapTestDictInput, arg_) return MapTest.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + MapTestDictInput, + MapTestDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> MapTestDict: + return MapTest.validate(arg, configuration=configuration) @property def map_map_of_string(self) -> typing.Union[MapMapOfStringDict, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python/src/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py index 61786fb739a..43cdf524e52 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py @@ -34,11 +34,13 @@ def __new__( @staticmethod def from_dict_( - arg: MapDictInput, + arg: typing.Union[ + MapDictInput, + MapDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> MapDict: return Map.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[animal.AnimalDict, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -87,7 +89,7 @@ def validate( configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "uuid": typing.Type[Uuid], @@ -106,12 +108,6 @@ class MixedPropertiesAndAdditionalPropertiesClassDict(schemas.immutabledict[str, "dateTime", "map", }) - @staticmethod - def from_dict_( - arg: MixedPropertiesAndAdditionalPropertiesClassDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> MixedPropertiesAndAdditionalPropertiesClassDict: - return MixedPropertiesAndAdditionalPropertiesClass.validate(arg, configuration=configuration) def __new__( cls, @@ -146,7 +142,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(MixedPropertiesAndAdditionalPropertiesClassDictInput, arg_) return MixedPropertiesAndAdditionalPropertiesClass.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + MixedPropertiesAndAdditionalPropertiesClassDictInput, + MixedPropertiesAndAdditionalPropertiesClassDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> MixedPropertiesAndAdditionalPropertiesClassDict: + return MixedPropertiesAndAdditionalPropertiesClass.validate(arg, configuration=configuration) @property def uuid(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/money.py b/samples/client/petstore/python/src/petstore_api/components/schema/money.py index 1d6bee9a3ce..fcdc1196e80 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/money.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/money.py @@ -14,7 +14,7 @@ Amount: typing_extensions.TypeAlias = schemas.DecimalSchema from petstore_api.components.schema import currency -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "amount": typing.Type[Amount], @@ -30,18 +30,12 @@ class MoneyDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: MoneyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> MoneyDict: - return Money.validate(arg, configuration=configuration) def __new__( cls, *, amount: str, - currency: typing_extensions.Literal[ + currency: typing.Literal[ "eur", "usd" ], @@ -53,7 +47,16 @@ def __new__( } used_arg_ = typing.cast(MoneyDictInput, arg_) return Money.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + MoneyDictInput, + MoneyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> MoneyDict: + return Money.validate(arg, configuration=configuration) @property def amount(self) -> str: @@ -63,16 +66,16 @@ def amount(self) -> str: ) @property - def currency(self) -> typing_extensions.Literal["eur", "usd"]: + def currency(self) -> typing.Literal["eur", "usd"]: return typing.cast( - typing_extensions.Literal["eur", "usd"], + typing.Literal["eur", "usd"], self.__getitem__("currency") ) -MoneyDictInput = typing_extensions.TypedDict( +MoneyDictInput = typing.TypedDict( 'MoneyDictInput', { "amount": str, - "currency": typing_extensions.Literal[ + "currency": typing.Literal[ "eur", "usd" ], diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/name.py b/samples/client/petstore/python/src/petstore_api/components/schema/name.py index 372a438a6d4..7a116016838 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/name.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/name.py @@ -13,7 +13,7 @@ Name2: typing_extensions.TypeAlias = schemas.Int32Schema SnakeCase: typing_extensions.TypeAlias = schemas.Int32Schema _Property: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name2], @@ -32,12 +32,6 @@ class NameDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "snake_case", "property", }) - @staticmethod - def from_dict_( - arg: NameDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> NameDict: - return Name.validate(arg, configuration=configuration) def __new__( cls, @@ -62,7 +56,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(NameDictInput, arg_) return Name.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + NameDictInput, + NameDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NameDict: + return Name.validate(arg, configuration=configuration) @property def name(self) -> int: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/no_additional_properties.py b/samples/client/petstore/python/src/petstore_api/components/schema/no_additional_properties.py index 51d8c34609c..0ac69cb4630 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/no_additional_properties.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/no_additional_properties.py @@ -13,20 +13,20 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema Id: typing_extensions.TypeAlias = schemas.Int64Schema PetId: typing_extensions.TypeAlias = schemas.Int64Schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], "petId": typing.Type[PetId], } ) -NoAdditionalPropertiesRequiredDictInput = typing_extensions.TypedDict( +NoAdditionalPropertiesRequiredDictInput = typing.TypedDict( 'NoAdditionalPropertiesRequiredDictInput', { "id": int, } ) -NoAdditionalPropertiesOptionalDictInput = typing_extensions.TypedDict( +NoAdditionalPropertiesOptionalDictInput = typing.TypedDict( 'NoAdditionalPropertiesOptionalDictInput', { "petId": int, @@ -43,12 +43,6 @@ class NoAdditionalPropertiesDict(schemas.immutabledict[str, int]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "petId", }) - @staticmethod - def from_dict_( - arg: NoAdditionalPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> NoAdditionalPropertiesDict: - return NoAdditionalProperties.validate(arg, configuration=configuration) def __new__( cls, @@ -71,7 +65,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(NoAdditionalPropertiesDictInput, arg_) return NoAdditionalProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + NoAdditionalPropertiesDictInput, + NoAdditionalPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NoAdditionalPropertiesDict: + return NoAdditionalProperties.validate(arg, configuration=configuration) @property def id(self) -> int: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/nullable_class.py b/samples/client/petstore/python/src/petstore_api/components/schema/nullable_class.py index d40541d5341..fd8d80e0034 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/nullable_class.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/nullable_class.py @@ -276,7 +276,7 @@ class ArrayNullablePropTuple( ] ): - def __new__(cls, arg: ArrayNullablePropTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayNullablePropTupleInput, ArrayNullablePropTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayNullableProp.validate(arg, configuration=configuration) ArrayNullablePropTupleInput = typing.Union[ typing.List[ @@ -389,7 +389,7 @@ class ArrayAndItemsNullablePropTuple( ] ): - def __new__(cls, arg: ArrayAndItemsNullablePropTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayAndItemsNullablePropTupleInput, ArrayAndItemsNullablePropTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayAndItemsNullableProp.validate(arg, configuration=configuration) ArrayAndItemsNullablePropTupleInput = typing.Union[ typing.List[ @@ -508,7 +508,7 @@ class ArrayItemsNullableTuple( ] ): - def __new__(cls, arg: ArrayItemsNullableTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[ArrayItemsNullableTupleInput, ArrayItemsNullableTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return ArrayItemsNullable.validate(arg, configuration=configuration) ArrayItemsNullableTupleInput = typing.Union[ typing.List[ @@ -583,11 +583,13 @@ def __new__( @staticmethod def from_dict_( - arg: ObjectNullablePropDictInput, + arg: typing.Union[ + ObjectNullablePropDictInput, + ObjectNullablePropDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> ObjectNullablePropDict: return ObjectNullableProp.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) @@ -716,11 +718,13 @@ def __new__( @staticmethod def from_dict_( - arg: ObjectAndItemsNullablePropDictInput, + arg: typing.Union[ + ObjectAndItemsNullablePropDictInput, + ObjectAndItemsNullablePropDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> ObjectAndItemsNullablePropDict: return ObjectAndItemsNullableProp.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[ typing.Union[None, schemas.Unset], @@ -858,11 +862,13 @@ def __new__( @staticmethod def from_dict_( - arg: ObjectItemsNullableDictInput, + arg: typing.Union[ + ObjectItemsNullableDictInput, + ObjectItemsNullableDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> ObjectItemsNullableDict: return ObjectItemsNullable.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[ typing.Union[None, schemas.Unset], @@ -920,7 +926,7 @@ def validate( configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "integer_prop": typing.Type[IntegerProp], @@ -957,12 +963,6 @@ class NullableClassDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "object_and_items_nullable_prop", "object_items_nullable", }) - @staticmethod - def from_dict_( - arg: NullableClassDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> NullableClassDict: - return NullableClass.validate(arg, configuration=configuration) def __new__( cls, @@ -1078,7 +1078,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(NullableClassDictInput, arg_) return NullableClass.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + NullableClassDictInput, + NullableClassDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NullableClassDict: + return NullableClass.validate(arg, configuration=configuration) @property def integer_prop(self) -> typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/number_only.py b/samples/client/petstore/python/src/petstore_api/components/schema/number_only.py index 54b5762b4a9..b0bc6682f97 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/number_only.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/number_only.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] JustNumber: typing_extensions.TypeAlias = schemas.NumberSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "JustNumber": typing.Type[JustNumber], @@ -26,12 +26,6 @@ class NumberOnlyDict(schemas.immutabledict[str, typing.Union[int, float]]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "JustNumber", }) - @staticmethod - def from_dict_( - arg: NumberOnlyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> NumberOnlyDict: - return NumberOnly.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(NumberOnlyDictInput, arg_) return NumberOnly.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + NumberOnlyDictInput, + NumberOnlyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NumberOnlyDict: + return NumberOnly.validate(arg, configuration=configuration) @property def JustNumber(self) -> typing.Union[int, float, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props.py index bf1dfb9dbbd..ee297bf9a2d 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] A: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -26,12 +26,6 @@ class ObjWithRequiredPropsDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ObjWithRequiredPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjWithRequiredPropsDict: - return ObjWithRequiredProps.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjWithRequiredPropsDictInput, arg_) return ObjWithRequiredProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjWithRequiredPropsDictInput, + ObjWithRequiredPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjWithRequiredPropsDict: + return ObjWithRequiredProps.validate(arg, configuration=configuration) @property def a(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props_base.py b/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props_base.py index 52bb73c1385..b75d56dc9a6 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props_base.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/obj_with_required_props_base.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] B: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "b": typing.Type[B], @@ -26,12 +26,6 @@ class ObjWithRequiredPropsBaseDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ObjWithRequiredPropsBaseDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjWithRequiredPropsBaseDict: - return ObjWithRequiredPropsBase.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjWithRequiredPropsBaseDictInput, arg_) return ObjWithRequiredPropsBase.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjWithRequiredPropsBaseDictInput, + ObjWithRequiredPropsBaseDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjWithRequiredPropsBaseDict: + return ObjWithRequiredPropsBase.validate(arg, configuration=configuration) @property def b(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_arg_and_args_properties.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_arg_and_args_properties.py index 4d542ffd18b..b772b040b97 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_arg_and_args_properties.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_arg_and_args_properties.py @@ -12,7 +12,7 @@ Arg: typing_extensions.TypeAlias = schemas.StrSchema Args: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "arg": typing.Type[Arg], @@ -29,12 +29,6 @@ class ObjectModelWithArgAndArgsPropertiesDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ObjectModelWithArgAndArgsPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectModelWithArgAndArgsPropertiesDict: - return ObjectModelWithArgAndArgsProperties.validate(arg, configuration=configuration) def __new__( cls, @@ -51,7 +45,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectModelWithArgAndArgsPropertiesDictInput, arg_) return ObjectModelWithArgAndArgsProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectModelWithArgAndArgsPropertiesDictInput, + ObjectModelWithArgAndArgsPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectModelWithArgAndArgsPropertiesDict: + return ObjectModelWithArgAndArgsProperties.validate(arg, configuration=configuration) @property def arg(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_ref_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_ref_props.py index 1d3ba589065..e6d76a224ac 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_ref_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_model_with_ref_props.py @@ -14,7 +14,7 @@ from petstore_api.components.schema import boolean from petstore_api.components.schema import number_with_validations from petstore_api.components.schema import string -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "myNumber": typing.Type[number_with_validations.NumberWithValidations], @@ -32,12 +32,6 @@ class ObjectModelWithRefPropsDict(schemas.immutabledict[str, schemas.OUTPUT_BASE "myString", "myBoolean", }) - @staticmethod - def from_dict_( - arg: ObjectModelWithRefPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectModelWithRefPropsDict: - return ObjectModelWithRefProps.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectModelWithRefPropsDictInput, arg_) return ObjectModelWithRefProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectModelWithRefPropsDictInput, + ObjectModelWithRefPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectModelWithRefPropsDict: + return ObjectModelWithRefProps.validate(arg, configuration=configuration) @property def myNumber(self) -> typing.Union[int, float, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py index 70618c06ddc..7db5a0dfe3d 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Name: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name], @@ -27,12 +27,6 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "name", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, @@ -60,7 +54,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property def test(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_colliding_properties.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_colliding_properties.py index 6b21d6f9884..7100ff4701a 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_colliding_properties.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_colliding_properties.py @@ -12,7 +12,7 @@ SomeProp: typing_extensions.TypeAlias = schemas.DictSchema Someprop2: typing_extensions.TypeAlias = schemas.DictSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someProp": typing.Type[SomeProp], @@ -29,12 +29,6 @@ class ObjectWithCollidingPropertiesDict(schemas.immutabledict[str, schemas.immut "someProp", "someprop", }) - @staticmethod - def from_dict_( - arg: ObjectWithCollidingPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithCollidingPropertiesDict: - return ObjectWithCollidingProperties.validate(arg, configuration=configuration) def __new__( cls, @@ -63,7 +57,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithCollidingPropertiesDictInput, arg_) return ObjectWithCollidingProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithCollidingPropertiesDictInput, + ObjectWithCollidingPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithCollidingPropertiesDict: + return ObjectWithCollidingProperties.validate(arg, configuration=configuration) @property def someProp(self) -> typing.Union[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_decimal_properties.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_decimal_properties.py index db7265e0ad8..e0f050769c5 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_decimal_properties.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_decimal_properties.py @@ -14,7 +14,7 @@ from petstore_api.components.schema import decimal_payload from petstore_api.components.schema import money -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "length": typing.Type[decimal_payload.DecimalPayload], @@ -32,12 +32,6 @@ class ObjectWithDecimalPropertiesDict(schemas.immutabledict[str, schemas.OUTPUT_ "width", "cost", }) - @staticmethod - def from_dict_( - arg: ObjectWithDecimalPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithDecimalPropertiesDict: - return ObjectWithDecimalProperties.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithDecimalPropertiesDictInput, arg_) return ObjectWithDecimalProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithDecimalPropertiesDictInput, + ObjectWithDecimalPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithDecimalPropertiesDict: + return ObjectWithDecimalProperties.validate(arg, configuration=configuration) @property def length(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_difficultly_named_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_difficultly_named_props.py index 50147288e7f..829b71b08a9 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_difficultly_named_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_difficultly_named_props.py @@ -13,7 +13,7 @@ SpecialPropertyName: typing_extensions.TypeAlias = schemas.Int64Schema _123List: typing_extensions.TypeAlias = schemas.StrSchema _123Number: typing_extensions.TypeAlias = schemas.IntSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "$special[property.name]": typing.Type[SpecialPropertyName], @@ -32,12 +32,6 @@ class ObjectWithDifficultlyNamedPropsDict(schemas.immutabledict[str, schemas.OUT "$special[property.name]", "123Number", }) - @staticmethod - def from_dict_( - arg: ObjectWithDifficultlyNamedPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithDifficultlyNamedPropsDict: - return ObjectWithDifficultlyNamedProps.validate(arg, configuration=configuration) def __new__( cls, @@ -50,7 +44,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithDifficultlyNamedPropsDictInput, arg_) return ObjectWithDifficultlyNamedProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithDifficultlyNamedPropsDictInput, + ObjectWithDifficultlyNamedPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithDifficultlyNamedPropsDict: + return ObjectWithDifficultlyNamedProps.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_inline_composition_property.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_inline_composition_property.py index 903aa8b811b..f6faa663dda 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_inline_composition_property.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_inline_composition_property.py @@ -32,7 +32,7 @@ class SomeProp( # any type all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someProp": typing.Type[SomeProp], @@ -46,12 +46,6 @@ class ObjectWithInlineCompositionPropertyDict(schemas.immutabledict[str, schemas __optional_keys__: typing.FrozenSet[str] = frozenset({ "someProp", }) - @staticmethod - def from_dict_( - arg: ObjectWithInlineCompositionPropertyDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithInlineCompositionPropertyDict: - return ObjectWithInlineCompositionProperty.validate(arg, configuration=configuration) def __new__( cls, @@ -74,7 +68,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithInlineCompositionPropertyDictInput, arg_) return ObjectWithInlineCompositionProperty.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithInlineCompositionPropertyDictInput, + ObjectWithInlineCompositionPropertyDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithInlineCompositionPropertyDict: + return ObjectWithInlineCompositionProperty.validate(arg, configuration=configuration) @property def someProp(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_invalid_named_refed_properties.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_invalid_named_refed_properties.py index 1e7ea52179a..ff25b603107 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_invalid_named_refed_properties.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_invalid_named_refed_properties.py @@ -13,7 +13,7 @@ from petstore_api.components.schema import array_with_validations_in_items from petstore_api.components.schema import from_schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "from": typing.Type[from_schema.FromSchema], @@ -30,12 +30,6 @@ class ObjectWithInvalidNamedRefedPropertiesDict(schemas.immutabledict[str, schem }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ObjectWithInvalidNamedRefedPropertiesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithInvalidNamedRefedPropertiesDict: - return ObjectWithInvalidNamedRefedProperties.validate(arg, configuration=configuration) def __new__( cls, @@ -48,7 +42,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithInvalidNamedRefedPropertiesDictInput, arg_) return ObjectWithInvalidNamedRefedProperties.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithInvalidNamedRefedPropertiesDictInput, + ObjectWithInvalidNamedRefedPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithInvalidNamedRefedPropertiesDict: + return ObjectWithInvalidNamedRefedProperties.validate(arg, configuration=configuration) def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_non_intersecting_values.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_non_intersecting_values.py index 7585f620669..6fee391b717 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_non_intersecting_values.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_non_intersecting_values.py @@ -12,7 +12,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.StrSchema A: typing_extensions.TypeAlias = schemas.NumberSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -27,12 +27,6 @@ class ObjectWithNonIntersectingValuesDict(schemas.immutabledict[str, schemas.OUT __optional_keys__: typing.FrozenSet[str] = frozenset({ "a", }) - @staticmethod - def from_dict_( - arg: ObjectWithNonIntersectingValuesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithNonIntersectingValuesDict: - return ObjectWithNonIntersectingValues.validate(arg, configuration=configuration) def __new__( cls, @@ -55,7 +49,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithNonIntersectingValuesDictInput, arg_) return ObjectWithNonIntersectingValues.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithNonIntersectingValuesDictInput, + ObjectWithNonIntersectingValuesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithNonIntersectingValuesDict: + return ObjectWithNonIntersectingValues.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[int, float, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_only_optional_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_only_optional_props.py index 48b249fd970..5b6b672ef97 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_only_optional_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_only_optional_props.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema A: typing_extensions.TypeAlias = schemas.StrSchema B: typing_extensions.TypeAlias = schemas.NumberSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -30,12 +30,6 @@ class ObjectWithOnlyOptionalPropsDict(schemas.immutabledict[str, schemas.OUTPUT_ "a", "b", }) - @staticmethod - def from_dict_( - arg: ObjectWithOnlyOptionalPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithOnlyOptionalPropsDict: - return ObjectWithOnlyOptionalProps.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(ObjectWithOnlyOptionalPropsDictInput, arg_) return ObjectWithOnlyOptionalProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithOnlyOptionalPropsDictInput, + ObjectWithOnlyOptionalPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithOnlyOptionalPropsDict: + return ObjectWithOnlyOptionalProps.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[str, schemas.Unset]: @@ -82,7 +85,7 @@ def b(self) -> typing.Union[int, float, schemas.Unset]: typing.Union[int, float], val ) -ObjectWithOnlyOptionalPropsDictInput = typing_extensions.TypedDict( +ObjectWithOnlyOptionalPropsDictInput = typing.TypedDict( 'ObjectWithOnlyOptionalPropsDictInput', { "a": str, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_optional_test_prop.py b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_optional_test_prop.py index b4dc6bf185d..f60a9a46c4b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/object_with_optional_test_prop.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/object_with_optional_test_prop.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Test: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "test": typing.Type[Test], @@ -26,12 +26,6 @@ class ObjectWithOptionalTestPropDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "test", }) - @staticmethod - def from_dict_( - arg: ObjectWithOptionalTestPropDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ObjectWithOptionalTestPropDict: - return ObjectWithOptionalTestProp.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ObjectWithOptionalTestPropDictInput, arg_) return ObjectWithOptionalTestProp.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ObjectWithOptionalTestPropDictInput, + ObjectWithOptionalTestPropDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ObjectWithOptionalTestPropDict: + return ObjectWithOptionalTestProp.validate(arg, configuration=configuration) @property def test(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/order.py b/samples/client/petstore/python/src/petstore_api/components/schema/order.py index 118f27581d5..5fb8f8f1e17 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/order.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/order.py @@ -19,15 +19,15 @@ class StatusEnums: @schemas.classproperty - def PLACED(cls) -> typing_extensions.Literal["placed"]: + def PLACED(cls) -> typing.Literal["placed"]: return Status.validate("placed") @schemas.classproperty - def APPROVED(cls) -> typing_extensions.Literal["approved"]: + def APPROVED(cls) -> typing.Literal["approved"]: return Status.validate("approved") @schemas.classproperty - def DELIVERED(cls) -> typing_extensions.Literal["delivered"]: + def DELIVERED(cls) -> typing.Literal["delivered"]: return Status.validate("delivered") @@ -51,36 +51,36 @@ class Status( @classmethod def validate( cls, - arg: typing_extensions.Literal["placed"], + arg: typing.Literal["placed"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed"]: ... + ) -> typing.Literal["placed"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["approved"], + arg: typing.Literal["approved"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["approved"]: ... + ) -> typing.Literal["approved"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["delivered"], + arg: typing.Literal["delivered"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["delivered"]: ... + ) -> typing.Literal["delivered"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed","approved","delivered",]: ... + ) -> typing.Literal["placed","approved","delivered",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "placed", "approved", "delivered", @@ -89,7 +89,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "placed", "approved", "delivered", @@ -105,8 +105,8 @@ class Complete( types: typing.FrozenSet[typing.Type] = frozenset({ schemas.Bool, }) - default: typing_extensions.Literal[False] = False -Properties = typing_extensions.TypedDict( + default: typing.Literal[False] = False +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], @@ -131,12 +131,6 @@ class OrderDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "status", "complete", }) - @staticmethod - def from_dict_( - arg: OrderDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> OrderDict: - return Order.validate(arg, configuration=configuration) def __new__( cls, @@ -159,7 +153,7 @@ def __new__( schemas.Unset ] = schemas.unset, status: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered" @@ -188,7 +182,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(OrderDictInput, arg_) return Order.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + OrderDictInput, + OrderDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> OrderDict: + return Order.validate(arg, configuration=configuration) @property def id(self) -> typing.Union[int, schemas.Unset]: @@ -231,12 +234,12 @@ def shipDate(self) -> typing.Union[str, schemas.Unset]: ) @property - def status(self) -> typing.Union[typing_extensions.Literal["placed", "approved", "delivered"], schemas.Unset]: + def status(self) -> typing.Union[typing.Literal["placed", "approved", "delivered"], schemas.Unset]: val = self.get("status", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["placed", "approved", "delivered"], + typing.Literal["placed", "approved", "delivered"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/pet.py b/samples/client/petstore/python/src/petstore_api/components/schema/pet.py index b6d98338f4d..0cc83a3357b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/pet.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/pet.py @@ -22,7 +22,7 @@ class PhotoUrlsTuple( ] ): - def __new__(cls, arg: PhotoUrlsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[PhotoUrlsTupleInput, PhotoUrlsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return PhotoUrls.validate(arg, configuration=configuration) PhotoUrlsTupleInput = typing.Union[ typing.List[ @@ -68,15 +68,15 @@ def validate( class StatusEnums: @schemas.classproperty - def AVAILABLE(cls) -> typing_extensions.Literal["available"]: + def AVAILABLE(cls) -> typing.Literal["available"]: return Status.validate("available") @schemas.classproperty - def PENDING(cls) -> typing_extensions.Literal["pending"]: + def PENDING(cls) -> typing.Literal["pending"]: return Status.validate("pending") @schemas.classproperty - def SOLD(cls) -> typing_extensions.Literal["sold"]: + def SOLD(cls) -> typing.Literal["sold"]: return Status.validate("sold") @@ -100,36 +100,36 @@ class Status( @classmethod def validate( cls, - arg: typing_extensions.Literal["available"], + arg: typing.Literal["available"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["available"]: ... + ) -> typing.Literal["available"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["pending"], + arg: typing.Literal["pending"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["pending"]: ... + ) -> typing.Literal["pending"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["sold"], + arg: typing.Literal["sold"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["sold"]: ... + ) -> typing.Literal["sold"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["available","pending","sold",]: ... + ) -> typing.Literal["available","pending","sold",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "available", "pending", "sold", @@ -138,7 +138,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "available", "pending", "sold", @@ -157,7 +157,7 @@ class TagsTuple( ] ): - def __new__(cls, arg: TagsTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[TagsTupleInput, TagsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Tags.validate(arg, configuration=configuration) TagsTupleInput = typing.Union[ typing.List[ @@ -204,7 +204,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], @@ -229,12 +229,6 @@ class PetDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "tags", "status", }) - @staticmethod - def from_dict_( - arg: PetDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PetDict: - return Pet.validate(arg, configuration=configuration) def __new__( cls, @@ -259,7 +253,7 @@ def __new__( schemas.Unset ] = schemas.unset, status: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "available", "pending", "sold" @@ -285,7 +279,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(PetDictInput, arg_) return Pet.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PetDictInput, + PetDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PetDict: + return Pet.validate(arg, configuration=configuration) @property def name(self) -> str: @@ -332,12 +335,12 @@ def tags(self) -> typing.Union[TagsTuple, schemas.Unset]: ) @property - def status(self) -> typing.Union[typing_extensions.Literal["available", "pending", "sold"], schemas.Unset]: + def status(self) -> typing.Union[typing.Literal["available", "pending", "sold"], schemas.Unset]: val = self.get("status", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["available", "pending", "sold"], + typing.Literal["available", "pending", "sold"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/player.py b/samples/client/petstore/python/src/petstore_api/components/schema/player.py index 824ae91b0ca..ca13e2b2b85 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/player.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/player.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Name: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name], @@ -27,12 +27,6 @@ class PlayerDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "name", "enemyPlayer", }) - @staticmethod - def from_dict_( - arg: PlayerDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PlayerDict: - return Player.validate(arg, configuration=configuration) def __new__( cls, @@ -60,7 +54,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(PlayerDictInput, arg_) return Player.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PlayerDictInput, + PlayerDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PlayerDict: + return Player.validate(arg, configuration=configuration) @property def name(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/quadrilateral_interface.py b/samples/client/petstore/python/src/petstore_api/components/schema/quadrilateral_interface.py index 49a757f2b2b..0edfae070cb 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/quadrilateral_interface.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/quadrilateral_interface.py @@ -15,7 +15,7 @@ class ShapeTypeEnums: @schemas.classproperty - def QUADRILATERAL(cls) -> typing_extensions.Literal["Quadrilateral"]: + def QUADRILATERAL(cls) -> typing.Literal["Quadrilateral"]: return ShapeType.validate("Quadrilateral") @@ -37,35 +37,35 @@ class ShapeType( @classmethod def validate( cls, - arg: typing_extensions.Literal["Quadrilateral"], + arg: typing.Literal["Quadrilateral"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["Quadrilateral"]: ... + ) -> typing.Literal["Quadrilateral"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["Quadrilateral",]: ... + ) -> typing.Literal["Quadrilateral",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "Quadrilateral", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "Quadrilateral", ], validated_arg ) QuadrilateralType: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "shapeType": typing.Type[ShapeType], @@ -82,18 +82,12 @@ class QuadrilateralInterfaceDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QuadrilateralInterfaceDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QuadrilateralInterfaceDict: - return QuadrilateralInterface.validate(arg, configuration=configuration) def __new__( cls, *, quadrilateralType: str, - shapeType: typing_extensions.Literal[ + shapeType: typing.Literal[ "Quadrilateral" ], configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, @@ -106,7 +100,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(QuadrilateralInterfaceDictInput, arg_) return QuadrilateralInterface.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QuadrilateralInterfaceDictInput, + QuadrilateralInterfaceDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QuadrilateralInterfaceDict: + return QuadrilateralInterface.validate(arg, configuration=configuration) @property def quadrilateralType(self) -> str: @@ -116,9 +119,9 @@ def quadrilateralType(self) -> str: ) @property - def shapeType(self) -> typing_extensions.Literal["Quadrilateral"]: + def shapeType(self) -> typing.Literal["Quadrilateral"]: return typing.cast( - typing_extensions.Literal["Quadrilateral"], + typing.Literal["Quadrilateral"], self.__getitem__("shapeType") ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/read_only_first.py b/samples/client/petstore/python/src/petstore_api/components/schema/read_only_first.py index 5c14c1d4d1e..625bc5e9eab 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/read_only_first.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/read_only_first.py @@ -12,7 +12,7 @@ Bar: typing_extensions.TypeAlias = schemas.StrSchema Baz: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "bar": typing.Type[Bar], @@ -29,12 +29,6 @@ class ReadOnlyFirstDict(schemas.immutabledict[str, str]): "bar", "baz", }) - @staticmethod - def from_dict_( - arg: ReadOnlyFirstDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ReadOnlyFirstDict: - return ReadOnlyFirst.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ReadOnlyFirstDictInput, arg_) return ReadOnlyFirst.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ReadOnlyFirstDictInput, + ReadOnlyFirstDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ReadOnlyFirstDict: + return ReadOnlyFirst.validate(arg, configuration=configuration) @property def bar(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_explicit_add_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_explicit_add_props.py index 0af55604059..fc413e256e1 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_explicit_add_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_explicit_add_props.py @@ -21,12 +21,6 @@ class ReqPropsFromExplicitAddPropsDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ReqPropsFromExplicitAddPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ReqPropsFromExplicitAddPropsDict: - return ReqPropsFromExplicitAddProps.validate(arg, configuration=configuration) def __new__( cls, @@ -41,7 +35,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ReqPropsFromExplicitAddPropsDictInput, arg_) return ReqPropsFromExplicitAddProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ReqPropsFromExplicitAddPropsDictInput, + ReqPropsFromExplicitAddPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ReqPropsFromExplicitAddPropsDict: + return ReqPropsFromExplicitAddProps.validate(arg, configuration=configuration) @property def validName(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_true_add_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_true_add_props.py index daedbb38f83..26f39ecaa17 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_true_add_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_true_add_props.py @@ -21,12 +21,6 @@ class ReqPropsFromTrueAddPropsDict(schemas.immutabledict[str, schemas.OUTPUT_BAS }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ReqPropsFromTrueAddPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ReqPropsFromTrueAddPropsDict: - return ReqPropsFromTrueAddProps.validate(arg, configuration=configuration) def __new__( cls, @@ -44,7 +38,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ReqPropsFromTrueAddPropsDictInput, arg_) return ReqPropsFromTrueAddProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ReqPropsFromTrueAddPropsDictInput, + ReqPropsFromTrueAddPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ReqPropsFromTrueAddPropsDict: + return ReqPropsFromTrueAddProps.validate(arg, configuration=configuration) @property def validName(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_unset_add_props.py b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_unset_add_props.py index 05feb6b90f9..8975ba37a1e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_unset_add_props.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/req_props_from_unset_add_props.py @@ -19,12 +19,6 @@ class ReqPropsFromUnsetAddPropsDict(schemas.immutabledict[str, schemas.OUTPUT_BA }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: ReqPropsFromUnsetAddPropsDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ReqPropsFromUnsetAddPropsDict: - return ReqPropsFromUnsetAddProps.validate(arg, configuration=configuration) def __new__( cls, @@ -42,7 +36,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ReqPropsFromUnsetAddPropsDictInput, arg_) return ReqPropsFromUnsetAddProps.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ReqPropsFromUnsetAddPropsDictInput, + ReqPropsFromUnsetAddPropsDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ReqPropsFromUnsetAddPropsDict: + return ReqPropsFromUnsetAddProps.validate(arg, configuration=configuration) @property def validName(self) -> schemas.OUTPUT_BASE_TYPES: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/scalene_triangle.py b/samples/client/petstore/python/src/petstore_api/components/schema/scalene_triangle.py index 88b1b328be3..539fd00490c 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/scalene_triangle.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/scalene_triangle.py @@ -15,7 +15,7 @@ class TriangleTypeEnums: @schemas.classproperty - def SCALENE_TRIANGLE(cls) -> typing_extensions.Literal["ScaleneTriangle"]: + def SCALENE_TRIANGLE(cls) -> typing.Literal["ScaleneTriangle"]: return TriangleType.validate("ScaleneTriangle") @@ -37,34 +37,34 @@ class TriangleType( @classmethod def validate( cls, - arg: typing_extensions.Literal["ScaleneTriangle"], + arg: typing.Literal["ScaleneTriangle"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["ScaleneTriangle"]: ... + ) -> typing.Literal["ScaleneTriangle"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["ScaleneTriangle",]: ... + ) -> typing.Literal["ScaleneTriangle",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "ScaleneTriangle", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "ScaleneTriangle", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "triangleType": typing.Type[TriangleType], @@ -79,18 +79,12 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "triangleType", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, *, triangleType: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "ScaleneTriangle" ], schemas.Unset @@ -108,15 +102,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property - def triangleType(self) -> typing.Union[typing_extensions.Literal["ScaleneTriangle"], schemas.Unset]: + def triangleType(self) -> typing.Union[typing.Literal["ScaleneTriangle"], schemas.Unset]: val = self.get("triangleType", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["ScaleneTriangle"], + typing.Literal["ScaleneTriangle"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_array_model.py b/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_array_model.py index 8bed6cf756b..77d292aac58 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_array_model.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_array_model.py @@ -19,7 +19,7 @@ class SelfReferencingArrayModelTuple( ] ): - def __new__(cls, arg: SelfReferencingArrayModelTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SelfReferencingArrayModelTupleInput, SelfReferencingArrayModelTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return SelfReferencingArrayModel.validate(arg, configuration=configuration) SelfReferencingArrayModelTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_object_model.py b/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_object_model.py index 8702e748d1f..64278fff0e2 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_object_model.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/self_referencing_object_model.py @@ -10,7 +10,7 @@ from __future__ import annotations from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "selfRef": typing.Type['SelfReferencingObjectModel'], @@ -25,12 +25,6 @@ class SelfReferencingObjectModelDict(schemas.immutabledict[str, schemas.OUTPUT_B __optional_keys__: typing.FrozenSet[str] = frozenset({ "selfRef", }) - @staticmethod - def from_dict_( - arg: SelfReferencingObjectModelDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SelfReferencingObjectModelDict: - return SelfReferencingObjectModel.validate(arg, configuration=configuration) def __new__( cls, @@ -56,7 +50,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SelfReferencingObjectModelDictInput, arg_) return SelfReferencingObjectModel.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SelfReferencingObjectModelDictInput, + SelfReferencingObjectModelDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SelfReferencingObjectModelDict: + return SelfReferencingObjectModel.validate(arg, configuration=configuration) @property def selfRef(self) -> typing.Union[SelfReferencingObjectModelDict, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/simple_quadrilateral.py b/samples/client/petstore/python/src/petstore_api/components/schema/simple_quadrilateral.py index 5f5d5f3d729..fd0a932fbdf 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/simple_quadrilateral.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/simple_quadrilateral.py @@ -15,7 +15,7 @@ class QuadrilateralTypeEnums: @schemas.classproperty - def SIMPLE_QUADRILATERAL(cls) -> typing_extensions.Literal["SimpleQuadrilateral"]: + def SIMPLE_QUADRILATERAL(cls) -> typing.Literal["SimpleQuadrilateral"]: return QuadrilateralType.validate("SimpleQuadrilateral") @@ -37,34 +37,34 @@ class QuadrilateralType( @classmethod def validate( cls, - arg: typing_extensions.Literal["SimpleQuadrilateral"], + arg: typing.Literal["SimpleQuadrilateral"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["SimpleQuadrilateral"]: ... + ) -> typing.Literal["SimpleQuadrilateral"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["SimpleQuadrilateral",]: ... + ) -> typing.Literal["SimpleQuadrilateral",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "SimpleQuadrilateral", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "SimpleQuadrilateral", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "quadrilateralType": typing.Type[QuadrilateralType], @@ -79,18 +79,12 @@ class _1Dict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "quadrilateralType", }) - @staticmethod - def from_dict_( - arg: _1DictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> _1Dict: - return _1.validate(arg, configuration=configuration) def __new__( cls, *, quadrilateralType: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "SimpleQuadrilateral" ], schemas.Unset @@ -108,15 +102,24 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(_1DictInput, arg_) return _1.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + _1DictInput, + _1Dict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> _1Dict: + return _1.validate(arg, configuration=configuration) @property - def quadrilateralType(self) -> typing.Union[typing_extensions.Literal["SimpleQuadrilateral"], schemas.Unset]: + def quadrilateralType(self) -> typing.Union[typing.Literal["SimpleQuadrilateral"], schemas.Unset]: val = self.get("quadrilateralType", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["SimpleQuadrilateral"], + typing.Literal["SimpleQuadrilateral"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/special_model_name.py b/samples/client/petstore/python/src/petstore_api/components/schema/special_model_name.py index 505bbf5ecd9..42e6bb1344f 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/special_model_name.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/special_model_name.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] A: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "a": typing.Type[A], @@ -26,12 +26,6 @@ class SpecialModelNameDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "a", }) - @staticmethod - def from_dict_( - arg: SpecialModelNameDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SpecialModelNameDict: - return SpecialModelName.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SpecialModelNameDictInput, arg_) return SpecialModelName.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SpecialModelNameDictInput, + SpecialModelNameDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SpecialModelNameDict: + return SpecialModelName.validate(arg, configuration=configuration) @property def a(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/string_boolean_map.py b/samples/client/petstore/python/src/petstore_api/components/schema/string_boolean_map.py index 2899720ea1b..29f2b353967 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/string_boolean_map.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/string_boolean_map.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: StringBooleanMapDictInput, + arg: typing.Union[ + StringBooleanMapDictInput, + StringBooleanMapDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> StringBooleanMapDict: return StringBooleanMap.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[bool, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/string_enum.py b/samples/client/petstore/python/src/petstore_api/components/schema/string_enum.py index 242a7012dc8..1975c76cd0c 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/string_enum.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/string_enum.py @@ -15,31 +15,31 @@ class StringEnumEnums: @schemas.classproperty - def PLACED(cls) -> typing_extensions.Literal["placed"]: + def PLACED(cls) -> typing.Literal["placed"]: return StringEnum.validate("placed") @schemas.classproperty - def APPROVED(cls) -> typing_extensions.Literal["approved"]: + def APPROVED(cls) -> typing.Literal["approved"]: return StringEnum.validate("approved") @schemas.classproperty - def DELIVERED(cls) -> typing_extensions.Literal["delivered"]: + def DELIVERED(cls) -> typing.Literal["delivered"]: return StringEnum.validate("delivered") @schemas.classproperty - def SINGLE_QUOTED(cls) -> typing_extensions.Literal["single quoted"]: + def SINGLE_QUOTED(cls) -> typing.Literal["single quoted"]: return StringEnum.validate("single quoted") @schemas.classproperty - def MULTIPLE_LINE_FEED_LF_LINES(cls) -> typing_extensions.Literal["multiple\nlines"]: + def MULTIPLE_LINE_FEED_LF_LINES(cls) -> typing.Literal["multiple\nlines"]: return StringEnum.validate("multiple\nlines") @schemas.classproperty - def DOUBLE_QUOTE_LINE_FEED_LF_WITH_NEWLINE(cls) -> typing_extensions.Literal["double quote \n with newline"]: + def DOUBLE_QUOTE_LINE_FEED_LF_WITH_NEWLINE(cls) -> typing.Literal["double quote \n with newline"]: return StringEnum.validate("double quote \n with newline") @schemas.classproperty - def NONE(cls) -> typing_extensions.Literal[None]: + def NONE(cls) -> typing.Literal[None]: return StringEnum.validate(None) @@ -80,51 +80,51 @@ def validate( @classmethod def validate( cls, - arg: typing_extensions.Literal["placed"], + arg: typing.Literal["placed"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed"]: ... + ) -> typing.Literal["placed"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["approved"], + arg: typing.Literal["approved"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["approved"]: ... + ) -> typing.Literal["approved"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["delivered"], + arg: typing.Literal["delivered"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["delivered"]: ... + ) -> typing.Literal["delivered"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["single quoted"], + arg: typing.Literal["single quoted"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["single quoted"]: ... + ) -> typing.Literal["single quoted"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["multiple\nlines"], + arg: typing.Literal["multiple\nlines"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["multiple\nlines"]: ... + ) -> typing.Literal["multiple\nlines"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["double quote \n with newline"], + arg: typing.Literal["double quote \n with newline"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["double quote \n with newline"]: ... + ) -> typing.Literal["double quote \n with newline"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed","approved","delivered","single quoted","multiple\nlines","double quote \n with newline",]: ... + ) -> typing.Literal["placed","approved","delivered","single quoted","multiple\nlines","double quote \n with newline",]: ... @classmethod def validate( cls, diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/string_enum_with_default_value.py b/samples/client/petstore/python/src/petstore_api/components/schema/string_enum_with_default_value.py index c086f0fdceb..3591c19b823 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/string_enum_with_default_value.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/string_enum_with_default_value.py @@ -15,15 +15,15 @@ class StringEnumWithDefaultValueEnums: @schemas.classproperty - def PLACED(cls) -> typing_extensions.Literal["placed"]: + def PLACED(cls) -> typing.Literal["placed"]: return StringEnumWithDefaultValue.validate("placed") @schemas.classproperty - def APPROVED(cls) -> typing_extensions.Literal["approved"]: + def APPROVED(cls) -> typing.Literal["approved"]: return StringEnumWithDefaultValue.validate("approved") @schemas.classproperty - def DELIVERED(cls) -> typing_extensions.Literal["delivered"]: + def DELIVERED(cls) -> typing.Literal["delivered"]: return StringEnumWithDefaultValue.validate("delivered") @@ -39,7 +39,7 @@ class StringEnumWithDefaultValue( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["placed"] = "placed" + default: typing.Literal["placed"] = "placed" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "placed": "PLACED", @@ -53,36 +53,36 @@ class StringEnumWithDefaultValue( @classmethod def validate( cls, - arg: typing_extensions.Literal["placed"], + arg: typing.Literal["placed"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed"]: ... + ) -> typing.Literal["placed"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["approved"], + arg: typing.Literal["approved"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["approved"]: ... + ) -> typing.Literal["approved"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["delivered"], + arg: typing.Literal["delivered"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["delivered"]: ... + ) -> typing.Literal["delivered"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["placed","approved","delivered",]: ... + ) -> typing.Literal["placed","approved","delivered",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "placed", "approved", "delivered", @@ -91,7 +91,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "placed", "approved", "delivered", diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/tag.py b/samples/client/petstore/python/src/petstore_api/components/schema/tag.py index 2b128f8c17b..de5ed1a152b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/tag.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/tag.py @@ -12,7 +12,7 @@ Id: typing_extensions.TypeAlias = schemas.Int64Schema Name: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], @@ -29,12 +29,6 @@ class TagDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "id", "name", }) - @staticmethod - def from_dict_( - arg: TagDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> TagDict: - return Tag.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(TagDictInput, arg_) return Tag.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + TagDictInput, + TagDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> TagDict: + return Tag.validate(arg, configuration=configuration) @property def id(self) -> typing.Union[int, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/triangle_interface.py b/samples/client/petstore/python/src/petstore_api/components/schema/triangle_interface.py index 63dde9af9ad..a58f4d9c70d 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/triangle_interface.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/triangle_interface.py @@ -15,7 +15,7 @@ class ShapeTypeEnums: @schemas.classproperty - def TRIANGLE(cls) -> typing_extensions.Literal["Triangle"]: + def TRIANGLE(cls) -> typing.Literal["Triangle"]: return ShapeType.validate("Triangle") @@ -37,35 +37,35 @@ class ShapeType( @classmethod def validate( cls, - arg: typing_extensions.Literal["Triangle"], + arg: typing.Literal["Triangle"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["Triangle"]: ... + ) -> typing.Literal["Triangle"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["Triangle",]: ... + ) -> typing.Literal["Triangle",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "Triangle", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "Triangle", ], validated_arg ) TriangleType: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "shapeType": typing.Type[ShapeType], @@ -82,17 +82,11 @@ class TriangleInterfaceDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: TriangleInterfaceDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> TriangleInterfaceDict: - return TriangleInterface.validate(arg, configuration=configuration) def __new__( cls, *, - shapeType: typing_extensions.Literal[ + shapeType: typing.Literal[ "Triangle" ], triangleType: str, @@ -106,12 +100,21 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(TriangleInterfaceDictInput, arg_) return TriangleInterface.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + TriangleInterfaceDictInput, + TriangleInterfaceDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> TriangleInterfaceDict: + return TriangleInterface.validate(arg, configuration=configuration) @property - def shapeType(self) -> typing_extensions.Literal["Triangle"]: + def shapeType(self) -> typing.Literal["Triangle"]: return typing.cast( - typing_extensions.Literal["Triangle"], + typing.Literal["Triangle"], self.__getitem__("shapeType") ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/user.py b/samples/client/petstore/python/src/petstore_api/components/schema/user.py index ae601d432bb..e721eb01c6a 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/user.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/user.py @@ -67,7 +67,7 @@ class AnyTypeExceptNullProp( not_: typing.Type[_Not] = dataclasses.field(default_factory=lambda: _Not) # type: ignore AnyTypePropNullable: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[Id], @@ -106,12 +106,6 @@ class UserDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "anyTypeExceptNullProp", "anyTypePropNullable", }) - @staticmethod - def from_dict_( - arg: UserDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> UserDict: - return User.validate(arg, configuration=configuration) def __new__( cls, @@ -201,7 +195,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(UserDictInput, arg_) return User.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + UserDictInput, + UserDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> UserDict: + return User.validate(arg, configuration=configuration) @property def id(self) -> typing.Union[int, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/whale.py b/samples/client/petstore/python/src/petstore_api/components/schema/whale.py index 5a97bf68f00..ba6e60cc961 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/whale.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/whale.py @@ -17,7 +17,7 @@ class ClassNameEnums: @schemas.classproperty - def WHALE(cls) -> typing_extensions.Literal["whale"]: + def WHALE(cls) -> typing.Literal["whale"]: return ClassName.validate("whale") @@ -39,34 +39,34 @@ class ClassName( @classmethod def validate( cls, - arg: typing_extensions.Literal["whale"], + arg: typing.Literal["whale"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["whale"]: ... + ) -> typing.Literal["whale"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["whale",]: ... + ) -> typing.Literal["whale",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "whale", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "whale", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "hasBaleen": typing.Type[HasBaleen], @@ -85,17 +85,11 @@ class WhaleDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "hasBaleen", "hasTeeth", }) - @staticmethod - def from_dict_( - arg: WhaleDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> WhaleDict: - return Whale.validate(arg, configuration=configuration) def __new__( cls, *, - className: typing_extensions.Literal[ + className: typing.Literal[ "whale" ], hasBaleen: typing.Union[ @@ -122,12 +116,21 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(WhaleDictInput, arg_) return Whale.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + WhaleDictInput, + WhaleDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> WhaleDict: + return Whale.validate(arg, configuration=configuration) @property - def className(self) -> typing_extensions.Literal["whale"]: + def className(self) -> typing.Literal["whale"]: return typing.cast( - typing_extensions.Literal["whale"], + typing.Literal["whale"], self.__getitem__("className") ) diff --git a/samples/client/petstore/python/src/petstore_api/components/schema/zebra.py b/samples/client/petstore/python/src/petstore_api/components/schema/zebra.py index 786c153e48c..596b35f673c 100644 --- a/samples/client/petstore/python/src/petstore_api/components/schema/zebra.py +++ b/samples/client/petstore/python/src/petstore_api/components/schema/zebra.py @@ -16,15 +16,15 @@ class TypeEnums: @schemas.classproperty - def PLAINS(cls) -> typing_extensions.Literal["plains"]: + def PLAINS(cls) -> typing.Literal["plains"]: return Type.validate("plains") @schemas.classproperty - def MOUNTAIN(cls) -> typing_extensions.Literal["mountain"]: + def MOUNTAIN(cls) -> typing.Literal["mountain"]: return Type.validate("mountain") @schemas.classproperty - def GREVYS(cls) -> typing_extensions.Literal["grevys"]: + def GREVYS(cls) -> typing.Literal["grevys"]: return Type.validate("grevys") @@ -48,36 +48,36 @@ class Type( @classmethod def validate( cls, - arg: typing_extensions.Literal["plains"], + arg: typing.Literal["plains"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["plains"]: ... + ) -> typing.Literal["plains"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["mountain"], + arg: typing.Literal["mountain"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["mountain"]: ... + ) -> typing.Literal["mountain"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["grevys"], + arg: typing.Literal["grevys"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["grevys"]: ... + ) -> typing.Literal["grevys"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["plains","mountain","grevys",]: ... + ) -> typing.Literal["plains","mountain","grevys",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "plains", "mountain", "grevys", @@ -86,7 +86,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "plains", "mountain", "grevys", @@ -98,7 +98,7 @@ def validate( class ClassNameEnums: @schemas.classproperty - def ZEBRA(cls) -> typing_extensions.Literal["zebra"]: + def ZEBRA(cls) -> typing.Literal["zebra"]: return ClassName.validate("zebra") @@ -120,34 +120,34 @@ class ClassName( @classmethod def validate( cls, - arg: typing_extensions.Literal["zebra"], + arg: typing.Literal["zebra"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["zebra"]: ... + ) -> typing.Literal["zebra"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["zebra",]: ... + ) -> typing.Literal["zebra",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "zebra", ]: validated_arg = super().validate_base( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "zebra", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "type": typing.Type[Type], @@ -164,21 +164,15 @@ class ZebraDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "type", }) - @staticmethod - def from_dict_( - arg: ZebraDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> ZebraDict: - return Zebra.validate(arg, configuration=configuration) def __new__( cls, *, - className: typing_extensions.Literal[ + className: typing.Literal[ "zebra" ], type: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "plains", "mountain", "grevys" @@ -200,22 +194,31 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(ZebraDictInput, arg_) return Zebra.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + ZebraDictInput, + ZebraDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ZebraDict: + return Zebra.validate(arg, configuration=configuration) @property - def className(self) -> typing_extensions.Literal["zebra"]: + def className(self) -> typing.Literal["zebra"]: return typing.cast( - typing_extensions.Literal["zebra"], + typing.Literal["zebra"], self.__getitem__("className") ) @property - def type(self) -> typing.Union[typing_extensions.Literal["plains", "mountain", "grevys"], schemas.Unset]: + def type(self) -> typing.Union[typing.Literal["plains", "mountain", "grevys"], schemas.Unset]: val = self.get("type", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["plains", "mountain", "grevys"], + typing.Literal["plains", "mountain", "grevys"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/configurations/api_configuration.py b/samples/client/petstore/python/src/petstore_api/configurations/api_configuration.py index a63ffaaa09e..95bae34522b 100644 --- a/samples/client/petstore/python/src/petstore_api/configurations/api_configuration.py +++ b/samples/client/petstore/python/src/petstore_api/configurations/api_configuration.py @@ -35,7 +35,7 @@ from petstore_api.paths.pet_find_by_status.servers import server_1 as pet_find_by_status_server_1 # security scheme key identifier to security scheme instance -SecuritySchemeInfo = typing_extensions.TypedDict( +SecuritySchemeInfo = typing.TypedDict( 'SecuritySchemeInfo', { "api_key": security_scheme_api_key.ApiKey, @@ -50,26 +50,26 @@ ) -class SecurityIndexInfoRequired(typing_extensions.TypedDict): +class SecurityIndexInfoRequired(typing.TypedDict): security: int -SecurityIndexInfoOptional = typing_extensions.TypedDict( +SecurityIndexInfoOptional = typing.TypedDict( 'SecurityIndexInfoOptional', { - "paths//fake/delete/security": typing_extensions.Literal[0], - "paths//fake/post/security": typing_extensions.Literal[0], - "paths//fake/multipleSecurities/get/security": typing_extensions.Literal[0, 1, 2], - "paths//fake/{petId}/uploadImageWithRequiredFile/post/security": typing_extensions.Literal[0], - "paths//fake_classname_test/patch/security": typing_extensions.Literal[0], - "paths//pet/post/security": typing_extensions.Literal[0, 1, 2], - "paths//pet/put/security": typing_extensions.Literal[0, 1], - "paths//pet/findByStatus/get/security": typing_extensions.Literal[0, 1, 2], - "paths//pet/findByTags/get/security": typing_extensions.Literal[0, 1], - "paths//pet/{petId}/delete/security": typing_extensions.Literal[0, 1], - "paths//pet/{petId}/get/security": typing_extensions.Literal[0], - "paths//pet/{petId}/post/security": typing_extensions.Literal[0, 1], - "paths//pet/{petId}/uploadImage/post/security": typing_extensions.Literal[0], - "paths//store/inventory/get/security": typing_extensions.Literal[0], + "paths//fake/delete/security": typing.Literal[0], + "paths//fake/post/security": typing.Literal[0], + "paths//fake/multipleSecurities/get/security": typing.Literal[0, 1, 2], + "paths//fake/{petId}/uploadImageWithRequiredFile/post/security": typing.Literal[0], + "paths//fake_classname_test/patch/security": typing.Literal[0], + "paths//pet/post/security": typing.Literal[0, 1, 2], + "paths//pet/put/security": typing.Literal[0, 1], + "paths//pet/findByStatus/get/security": typing.Literal[0, 1, 2], + "paths//pet/findByTags/get/security": typing.Literal[0, 1], + "paths//pet/{petId}/delete/security": typing.Literal[0, 1], + "paths//pet/{petId}/get/security": typing.Literal[0], + "paths//pet/{petId}/post/security": typing.Literal[0, 1], + "paths//pet/{petId}/uploadImage/post/security": typing.Literal[0], + "paths//store/inventory/get/security": typing.Literal[0], }, total=False ) @@ -82,7 +82,7 @@ class SecurityIndexInfo(SecurityIndexInfoRequired, SecurityIndexInfoOptional): """ # the server to use at each openapi document json path -ServerInfo = typing_extensions.TypedDict( +ServerInfo = typing.TypedDict( 'ServerInfo', { 'servers/0': server_0.Server0, @@ -97,14 +97,14 @@ class SecurityIndexInfo(SecurityIndexInfoRequired, SecurityIndexInfoOptional): ) -class ServerIndexInfoRequired(typing_extensions.TypedDict): - servers: typing_extensions.Literal[0, 1, 2] +class ServerIndexInfoRequired(typing.TypedDict): + servers: typing.Literal[0, 1, 2] -ServerIndexInfoOptional = typing_extensions.TypedDict( +ServerIndexInfoOptional = typing.TypedDict( 'ServerIndexInfoOptional', { - "paths//foo/get/servers": typing_extensions.Literal[0, 1], - "paths//pet/findByStatus/servers": typing_extensions.Literal[0, 1], + "paths//foo/get/servers": typing.Literal[0, 1], + "paths//pet/findByStatus/servers": typing.Literal[0, 1], }, total=False ) @@ -333,7 +333,7 @@ def to_debug_report(self): def get_server_url( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "servers", "paths//foo/get/servers", "paths//pet/findByStatus/servers", @@ -353,7 +353,7 @@ def get_server_url( # fallback and use the default index used_index = self.server_index_info.get("servers", 0) server_info_key = typing.cast( - typing_extensions.Literal[ + typing.Literal[ "servers/0", "servers/1", "servers/2", @@ -372,7 +372,7 @@ def get_server_url( def get_security_requirement_object( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "security", "paths//fake/delete/security", "paths//fake/post/security", diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py index ecf0ed3afeb..bf5682f39ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,8 +40,8 @@ def _call_123_test__special_tags( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -56,8 +56,8 @@ def _call_123_test__special_tags( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -72,7 +72,7 @@ def _call_123_test__special_tags( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -117,7 +117,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/header_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/header_parameters.py index 849c863e1cf..171656e9120 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/header_parameters.py @@ -14,26 +14,26 @@ from petstore_api.paths.fake.delete.parameters.parameter_1 import schema from petstore_api.paths.fake.delete.parameters.parameter_4 import schema as schema_2 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "required_boolean_group": typing.Type[schema.Schema], "boolean_group": typing.Type[schema_2.Schema], } ) -HeaderParametersRequiredDictInput = typing_extensions.TypedDict( +HeaderParametersRequiredDictInput = typing.TypedDict( 'HeaderParametersRequiredDictInput', { - "required_boolean_group": typing_extensions.Literal[ + "required_boolean_group": typing.Literal[ "true", "false" ], } ) -HeaderParametersOptionalDictInput = typing_extensions.TypedDict( +HeaderParametersOptionalDictInput = typing.TypedDict( 'HeaderParametersOptionalDictInput', { - "boolean_group": typing_extensions.Literal[ + "boolean_group": typing.Literal[ "true", "false" ], @@ -49,22 +49,16 @@ class HeaderParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] __optional_keys__: typing.FrozenSet[str] = frozenset({ "boolean_group", }) - @staticmethod - def from_dict_( - arg: HeaderParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeaderParametersDict: - return HeaderParameters.validate(arg, configuration=configuration) def __new__( cls, *, - required_boolean_group: typing_extensions.Literal[ + required_boolean_group: typing.Literal[ "true", "false" ], boolean_group: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "true", "false" ], @@ -83,22 +77,31 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeaderParametersDictInput, arg_) return HeaderParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeaderParametersDictInput, + HeaderParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeaderParametersDict: + return HeaderParameters.validate(arg, configuration=configuration) @property - def required_boolean_group(self) -> typing_extensions.Literal["true", "false"]: + def required_boolean_group(self) -> typing.Literal["true", "false"]: return typing.cast( - typing_extensions.Literal["true", "false"], + typing.Literal["true", "false"], self.__getitem__("required_boolean_group") ) @property - def boolean_group(self) -> typing.Union[typing_extensions.Literal["true", "false"], schemas.Unset]: + def boolean_group(self) -> typing.Union[typing.Literal["true", "false"], schemas.Unset]: val = self.get("boolean_group", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["true", "false"], + typing.Literal["true", "false"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py index 939f6a7a319..ca2347c9155 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -38,7 +36,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -65,7 +63,7 @@ def _group_parameters( HeaderParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -84,7 +82,7 @@ def _group_parameters( HeaderParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -156,7 +154,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/schema.py index ab39bd9bd7a..a6806bfad64 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/schema.py @@ -15,11 +15,11 @@ class SchemaEnums: @schemas.classproperty - def TRUE(cls) -> typing_extensions.Literal["true"]: + def TRUE(cls) -> typing.Literal["true"]: return Schema.validate("true") @schemas.classproperty - def FALSE(cls) -> typing_extensions.Literal["false"]: + def FALSE(cls) -> typing.Literal["false"]: return Schema.validate("false") @@ -42,29 +42,29 @@ class Schema( @classmethod def validate( cls, - arg: typing_extensions.Literal["true"], + arg: typing.Literal["true"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["true"]: ... + ) -> typing.Literal["true"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["false"], + arg: typing.Literal["false"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["false"]: ... + ) -> typing.Literal["false"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["true","false",]: ... + ) -> typing.Literal["true","false",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "true", "false", ]: @@ -72,7 +72,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "true", "false", ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/schema.py index ab39bd9bd7a..a6806bfad64 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/schema.py @@ -15,11 +15,11 @@ class SchemaEnums: @schemas.classproperty - def TRUE(cls) -> typing_extensions.Literal["true"]: + def TRUE(cls) -> typing.Literal["true"]: return Schema.validate("true") @schemas.classproperty - def FALSE(cls) -> typing_extensions.Literal["false"]: + def FALSE(cls) -> typing.Literal["false"]: return Schema.validate("false") @@ -42,29 +42,29 @@ class Schema( @classmethod def validate( cls, - arg: typing_extensions.Literal["true"], + arg: typing.Literal["true"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["true"]: ... + ) -> typing.Literal["true"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["false"], + arg: typing.Literal["false"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["false"]: ... + ) -> typing.Literal["false"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["true","false",]: ... + ) -> typing.Literal["true","false",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "true", "false", ]: @@ -72,7 +72,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "true", "false", ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/query_parameters.py index 2a23803f8b3..a6eea38cbce 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/query_parameters.py @@ -16,7 +16,7 @@ from petstore_api.paths.fake.delete.parameters.parameter_2 import schema as schema_4 from petstore_api.paths.fake.delete.parameters.parameter_3 import schema as schema_3 from petstore_api.paths.fake.delete.parameters.parameter_5 import schema as schema_2 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "required_string_group": typing.Type[schema.Schema], @@ -25,14 +25,14 @@ "required_int64_group": typing.Type[schema_4.Schema], } ) -QueryParametersRequiredDictInput = typing_extensions.TypedDict( +QueryParametersRequiredDictInput = typing.TypedDict( 'QueryParametersRequiredDictInput', { "required_int64_group": int, "required_string_group": str, } ) -QueryParametersOptionalDictInput = typing_extensions.TypedDict( +QueryParametersOptionalDictInput = typing.TypedDict( 'QueryParametersOptionalDictInput', { "int64_group": int, @@ -51,12 +51,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) "int64_group", "string_group", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -86,7 +80,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def required_int64_group(self) -> int: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/header_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/header_parameters.py index d1dbb7e8d9d..7aaf17e66fe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/header_parameters.py @@ -14,7 +14,7 @@ from petstore_api.paths.fake.get.parameters.parameter_0 import schema as schema_2 from petstore_api.paths.fake.get.parameters.parameter_1 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "enum_header_string": typing.Type[schema.Schema], @@ -30,18 +30,12 @@ class HeaderParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] "enum_header_string", "enum_header_string_array", }) - @staticmethod - def from_dict_( - arg: HeaderParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeaderParametersDict: - return HeaderParameters.validate(arg, configuration=configuration) def __new__( cls, *, enum_header_string: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "_abc", "-efg", "(xyz)" @@ -65,15 +59,24 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeaderParametersDictInput, arg_) return HeaderParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeaderParametersDictInput, + HeaderParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeaderParametersDict: + return HeaderParameters.validate(arg, configuration=configuration) @property - def enum_header_string(self) -> typing.Union[typing_extensions.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: + def enum_header_string(self) -> typing.Union[typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: val = self.get("enum_header_string", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["_abc", "-efg", "(xyz)"], + typing.Literal["_abc", "-efg", "(xyz)"], val ) @@ -86,10 +89,10 @@ def enum_header_string_array(self) -> typing.Union[schema_2.SchemaTuple, schemas schema_2.SchemaTuple, val ) -HeaderParametersDictInput = typing_extensions.TypedDict( +HeaderParametersDictInput = typing.TypedDict( 'HeaderParametersDictInput', { - "enum_header_string": typing_extensions.Literal[ + "enum_header_string": typing.Literal[ "_abc", "-efg", "(xyz)" diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py index 91796aa7ab1..3d154ba2564 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.fake.get.request_body.content.application_x_www_form_urlencoded import schema @@ -38,7 +36,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -81,8 +79,8 @@ def _enum_parameters( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -108,8 +106,8 @@ def _enum_parameters( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -135,7 +133,7 @@ def _enum_parameters( ] = None, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -195,7 +193,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -204,7 +202,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '404', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/schema.py index 4bbbb97b3f0..a1a22baecb1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/schema.py @@ -15,11 +15,11 @@ class ItemsEnums: @schemas.classproperty - def GREATER_THAN_SIGN(cls) -> typing_extensions.Literal[">"]: + def GREATER_THAN_SIGN(cls) -> typing.Literal[">"]: return Items.validate(">") @schemas.classproperty - def DOLLAR_SIGN(cls) -> typing_extensions.Literal["$"]: + def DOLLAR_SIGN(cls) -> typing.Literal["$"]: return Items.validate("$") @@ -30,7 +30,7 @@ class Items( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["$"] = "$" + default: typing.Literal["$"] = "$" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { ">": "GREATER_THAN_SIGN", @@ -43,29 +43,29 @@ class Items( @classmethod def validate( cls, - arg: typing_extensions.Literal[">"], + arg: typing.Literal[">"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">"]: ... + ) -> typing.Literal[">"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["$"], + arg: typing.Literal["$"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["$"]: ... + ) -> typing.Literal["$"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">","$",]: ... + ) -> typing.Literal[">","$",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ ">", "$", ]: @@ -73,7 +73,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ ">", "$", ], @@ -83,22 +83,22 @@ def validate( class SchemaTuple( typing.Tuple[ - typing_extensions.Literal[">", "$"], + typing.Literal[">", "$"], ... ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/schema.py index a4476ad2258..b399c679e0d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/schema.py @@ -15,15 +15,15 @@ class SchemaEnums: @schemas.classproperty - def _ABC(cls) -> typing_extensions.Literal["_abc"]: + def _ABC(cls) -> typing.Literal["_abc"]: return Schema.validate("_abc") @schemas.classproperty - def HYPHEN_MINUS_EFG(cls) -> typing_extensions.Literal["-efg"]: + def HYPHEN_MINUS_EFG(cls) -> typing.Literal["-efg"]: return Schema.validate("-efg") @schemas.classproperty - def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing_extensions.Literal["(xyz)"]: + def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing.Literal["(xyz)"]: return Schema.validate("(xyz)") @@ -34,7 +34,7 @@ class Schema( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["-efg"] = "-efg" + default: typing.Literal["-efg"] = "-efg" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "_abc": "_ABC", @@ -48,36 +48,36 @@ class Schema( @classmethod def validate( cls, - arg: typing_extensions.Literal["_abc"], + arg: typing.Literal["_abc"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc"]: ... + ) -> typing.Literal["_abc"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["-efg"], + arg: typing.Literal["-efg"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["-efg"]: ... + ) -> typing.Literal["-efg"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["(xyz)"], + arg: typing.Literal["(xyz)"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["(xyz)"]: ... + ) -> typing.Literal["(xyz)"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc","-efg","(xyz)",]: ... + ) -> typing.Literal["_abc","-efg","(xyz)",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "_abc", "-efg", "(xyz)", @@ -86,7 +86,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "_abc", "-efg", "(xyz)", diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/schema.py index 4bbbb97b3f0..a1a22baecb1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/schema.py @@ -15,11 +15,11 @@ class ItemsEnums: @schemas.classproperty - def GREATER_THAN_SIGN(cls) -> typing_extensions.Literal[">"]: + def GREATER_THAN_SIGN(cls) -> typing.Literal[">"]: return Items.validate(">") @schemas.classproperty - def DOLLAR_SIGN(cls) -> typing_extensions.Literal["$"]: + def DOLLAR_SIGN(cls) -> typing.Literal["$"]: return Items.validate("$") @@ -30,7 +30,7 @@ class Items( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["$"] = "$" + default: typing.Literal["$"] = "$" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { ">": "GREATER_THAN_SIGN", @@ -43,29 +43,29 @@ class Items( @classmethod def validate( cls, - arg: typing_extensions.Literal[">"], + arg: typing.Literal[">"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">"]: ... + ) -> typing.Literal[">"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["$"], + arg: typing.Literal["$"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["$"]: ... + ) -> typing.Literal["$"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">","$",]: ... + ) -> typing.Literal[">","$",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ ">", "$", ]: @@ -73,7 +73,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ ">", "$", ], @@ -83,22 +83,22 @@ def validate( class SchemaTuple( typing.Tuple[ - typing_extensions.Literal[">", "$"], + typing.Literal[">", "$"], ... ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/schema.py index a4476ad2258..b399c679e0d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/schema.py @@ -15,15 +15,15 @@ class SchemaEnums: @schemas.classproperty - def _ABC(cls) -> typing_extensions.Literal["_abc"]: + def _ABC(cls) -> typing.Literal["_abc"]: return Schema.validate("_abc") @schemas.classproperty - def HYPHEN_MINUS_EFG(cls) -> typing_extensions.Literal["-efg"]: + def HYPHEN_MINUS_EFG(cls) -> typing.Literal["-efg"]: return Schema.validate("-efg") @schemas.classproperty - def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing_extensions.Literal["(xyz)"]: + def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing.Literal["(xyz)"]: return Schema.validate("(xyz)") @@ -34,7 +34,7 @@ class Schema( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["-efg"] = "-efg" + default: typing.Literal["-efg"] = "-efg" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "_abc": "_ABC", @@ -48,36 +48,36 @@ class Schema( @classmethod def validate( cls, - arg: typing_extensions.Literal["_abc"], + arg: typing.Literal["_abc"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc"]: ... + ) -> typing.Literal["_abc"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["-efg"], + arg: typing.Literal["-efg"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["-efg"]: ... + ) -> typing.Literal["-efg"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["(xyz)"], + arg: typing.Literal["(xyz)"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["(xyz)"]: ... + ) -> typing.Literal["(xyz)"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc","-efg","(xyz)",]: ... + ) -> typing.Literal["_abc","-efg","(xyz)",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "_abc", "-efg", "(xyz)", @@ -86,7 +86,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "_abc", "-efg", "(xyz)", diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/schema.py index c63444ad7bc..a1204e5c890 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/schema.py @@ -15,11 +15,11 @@ class SchemaEnums: @schemas.classproperty - def POSITIVE_1(cls) -> typing_extensions.Literal[1]: + def POSITIVE_1(cls) -> typing.Literal[1]: return Schema.validate(1) @schemas.classproperty - def NEGATIVE_2(cls) -> typing_extensions.Literal[-2]: + def NEGATIVE_2(cls) -> typing.Literal[-2]: return Schema.validate(-2) @@ -43,29 +43,29 @@ class Schema( @classmethod def validate( cls, - arg: typing_extensions.Literal[1], + arg: typing.Literal[1], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1]: ... + ) -> typing.Literal[1]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[-2], + arg: typing.Literal[-2], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[-2]: ... + ) -> typing.Literal[-2]: ... @typing.overload @classmethod def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[1,-2,]: ... + ) -> typing.Literal[1,-2,]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ 1, -2, ]: @@ -73,7 +73,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ 1, -2, ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/query_parameters.py index 4eaeca46022..990cfde1515 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/query_parameters.py @@ -16,7 +16,7 @@ from petstore_api.paths.fake.get.parameters.parameter_3 import schema as schema_2 from petstore_api.paths.fake.get.parameters.parameter_4 import schema as schema_3 from petstore_api.paths.fake.get.parameters.parameter_5 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "enum_query_double": typing.Type[schema.Schema], @@ -36,12 +36,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) "enum_query_integer", "enum_query_string_array", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -52,7 +46,7 @@ def __new__( schemas.Unset ] = schemas.unset, enum_query_string: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "_abc", "-efg", "(xyz)" @@ -60,7 +54,7 @@ def __new__( schemas.Unset ] = schemas.unset, enum_query_integer: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ 1, -2 ], @@ -85,7 +79,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def enum_query_double(self) -> typing.Union[int, float, schemas.Unset]: @@ -98,22 +101,22 @@ def enum_query_double(self) -> typing.Union[int, float, schemas.Unset]: ) @property - def enum_query_string(self) -> typing.Union[typing_extensions.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: + def enum_query_string(self) -> typing.Union[typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: val = self.get("enum_query_string", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["_abc", "-efg", "(xyz)"], + typing.Literal["_abc", "-efg", "(xyz)"], val ) @property - def enum_query_integer(self) -> typing.Union[typing_extensions.Literal[1, -2], schemas.Unset]: + def enum_query_integer(self) -> typing.Union[typing.Literal[1, -2], schemas.Unset]: val = self.get("enum_query_integer", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal[1, -2], + typing.Literal[1, -2], val ) @@ -126,19 +129,19 @@ def enum_query_string_array(self) -> typing.Union[schema_4.SchemaTuple, schemas. schema_4.SchemaTuple, val ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "enum_query_double": typing.Union[ int, float ], - "enum_query_string": typing_extensions.Literal[ + "enum_query_string": typing.Literal[ "_abc", "-efg", "(xyz)" ], - "enum_query_integer": typing_extensions.Literal[ + "enum_query_integer": typing.Literal[ 1, -2 ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.py index 5f980e6bcdf..b08f452d51e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/content/application_x_www_form_urlencoded/schema.py @@ -15,11 +15,11 @@ class ItemsEnums: @schemas.classproperty - def GREATER_THAN_SIGN(cls) -> typing_extensions.Literal[">"]: + def GREATER_THAN_SIGN(cls) -> typing.Literal[">"]: return Items.validate(">") @schemas.classproperty - def DOLLAR_SIGN(cls) -> typing_extensions.Literal["$"]: + def DOLLAR_SIGN(cls) -> typing.Literal["$"]: return Items.validate("$") @@ -30,7 +30,7 @@ class Items( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["$"] = "$" + default: typing.Literal["$"] = "$" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { ">": "GREATER_THAN_SIGN", @@ -43,29 +43,29 @@ class Items( @classmethod def validate( cls, - arg: typing_extensions.Literal[">"], + arg: typing.Literal[">"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">"]: ... + ) -> typing.Literal[">"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["$"], + arg: typing.Literal["$"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["$"]: ... + ) -> typing.Literal["$"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[">","$",]: ... + ) -> typing.Literal[">","$",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ ">", "$", ]: @@ -73,7 +73,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ ">", "$", ], @@ -83,22 +83,22 @@ def validate( class EnumFormStringArrayTuple( typing.Tuple[ - typing_extensions.Literal[">", "$"], + typing.Literal[">", "$"], ... ] ): - def __new__(cls, arg: EnumFormStringArrayTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[EnumFormStringArrayTupleInput, EnumFormStringArrayTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return EnumFormStringArray.validate(arg, configuration=configuration) EnumFormStringArrayTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ ">", "$" ], @@ -140,15 +140,15 @@ def validate( class EnumFormStringEnums: @schemas.classproperty - def _ABC(cls) -> typing_extensions.Literal["_abc"]: + def _ABC(cls) -> typing.Literal["_abc"]: return EnumFormString.validate("_abc") @schemas.classproperty - def HYPHEN_MINUS_EFG(cls) -> typing_extensions.Literal["-efg"]: + def HYPHEN_MINUS_EFG(cls) -> typing.Literal["-efg"]: return EnumFormString.validate("-efg") @schemas.classproperty - def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing_extensions.Literal["(xyz)"]: + def LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS(cls) -> typing.Literal["(xyz)"]: return EnumFormString.validate("(xyz)") @@ -159,7 +159,7 @@ class EnumFormString( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["-efg"] = "-efg" + default: typing.Literal["-efg"] = "-efg" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "_abc": "_ABC", @@ -173,36 +173,36 @@ class EnumFormString( @classmethod def validate( cls, - arg: typing_extensions.Literal["_abc"], + arg: typing.Literal["_abc"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc"]: ... + ) -> typing.Literal["_abc"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["-efg"], + arg: typing.Literal["-efg"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["-efg"]: ... + ) -> typing.Literal["-efg"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["(xyz)"], + arg: typing.Literal["(xyz)"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["(xyz)"]: ... + ) -> typing.Literal["(xyz)"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["_abc","-efg","(xyz)",]: ... + ) -> typing.Literal["_abc","-efg","(xyz)",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "_abc", "-efg", "(xyz)", @@ -211,14 +211,14 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "_abc", "-efg", "(xyz)", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "enum_form_string_array": typing.Type[EnumFormStringArray], @@ -235,12 +235,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "enum_form_string_array", "enum_form_string", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -251,7 +245,7 @@ def __new__( schemas.Unset ] = schemas.unset, enum_form_string: typing.Union[ - typing_extensions.Literal[ + typing.Literal[ "_abc", "-efg", "(xyz)" @@ -272,7 +266,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def enum_form_string_array(self) -> typing.Union[EnumFormStringArrayTuple, schemas.Unset]: @@ -285,12 +288,12 @@ def enum_form_string_array(self) -> typing.Union[EnumFormStringArrayTuple, schem ) @property - def enum_form_string(self) -> typing.Union[typing_extensions.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: + def enum_form_string(self) -> typing.Union[typing.Literal["_abc", "-efg", "(xyz)"], schemas.Unset]: val = self.get("enum_form_string", schemas.unset) if isinstance(val, schemas.Unset): return val return typing.cast( - typing_extensions.Literal["_abc", "-efg", "(xyz)"], + typing.Literal["_abc", "-efg", "(xyz)"], val ) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py index 88ef44d7452..1a65d5e3836 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,8 +40,8 @@ def _client_model( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -56,8 +56,8 @@ def _client_model( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -72,7 +72,7 @@ def _client_model( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -117,7 +117,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py index 8afac3c15cd..2c6f5e07cc9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py @@ -21,7 +21,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -50,8 +50,8 @@ def _endpoint_parameters( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -67,8 +67,8 @@ def _endpoint_parameters( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -84,7 +84,7 @@ def _endpoint_parameters( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -135,7 +135,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -144,7 +144,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '404', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.py index c7226faa1c9..a4cf9c6232e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/content/application_x_www_form_urlencoded/schema.py @@ -123,7 +123,7 @@ class Password( max_length: int = 64 min_length: int = 10 Callback: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "integer": typing.Type[Integer], @@ -164,12 +164,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "password", "callback", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -251,7 +245,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def byte(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py index 98c8bf4c6f1..144f2534b5f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _additional_properties_with_array_of_enums( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _additional_properties_with_array_of_enums( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _additional_properties_with_array_of_enums( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -120,7 +120,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py index 642bde1a0af..f97a9eee03f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _body_with_file_schema( file_schema_test_class.FileSchemaTestClassDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _body_with_file_schema( file_schema_test_class.FileSchemaTestClassDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _body_with_file_schema( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -109,7 +109,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py index eedec5f9cab..cf51b5325da 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.components.schema import user @@ -20,7 +18,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -47,8 +45,8 @@ def _body_with_query_params( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,8 +64,8 @@ def _body_with_query_params( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -85,7 +83,7 @@ def _body_with_query_params( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -135,7 +133,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/query_parameters.py index 09f6116cad4..b3219d444bb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.fake_body_with_query_params.put.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "query": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def query(self) -> str: @@ -54,7 +57,7 @@ def query(self) -> str: str, self.__getitem__("query") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "query": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py index 9e16798bb55..bc85d729416 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -24,7 +22,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -47,7 +45,7 @@ def _case_sensitive_params( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -61,7 +59,7 @@ def _case_sensitive_params( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -113,7 +111,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/query_parameters.py index 76ca9eb4093..02088972b28 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/query_parameters.py @@ -15,7 +15,7 @@ from petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_0 import schema from petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_1 import schema as schema_3 from petstore_api.paths.fake_case_sensitive_params.put.parameters.parameter_2 import schema as schema_2 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someVar": typing.Type[schema.Schema], @@ -34,12 +34,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -56,7 +50,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def SomeVar(self) -> str: @@ -78,7 +81,7 @@ def some_var(self) -> str: str, self.__getitem__("some_var") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "SomeVar": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py index baf289b8bdf..87decd532cc 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py @@ -18,7 +18,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -45,8 +45,8 @@ def _classname( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -62,8 +62,8 @@ def _classname( client.ClientDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -79,7 +79,7 @@ def _classname( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -131,7 +131,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py index 3fa2e424a6e..216d76b7f4b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -22,7 +20,7 @@ default_response = response_default.Default -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -45,7 +43,7 @@ def _delete_coffee( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -62,7 +60,7 @@ def _delete_coffee( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -114,7 +112,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/path_parameters.py index a20c8884523..3eabb5a7dab 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.fake_delete_coffee_id.delete.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "id": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def id(self) -> str: @@ -54,7 +57,7 @@ def id(self) -> str: str, self.__getitem__("id") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "id": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py index 96cb4a499c7..36c16754ea9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): def _fake_health_get( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -45,7 +45,7 @@ def _fake_health_get( def _fake_health_get( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -91,7 +91,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py index c90384bda91..b2eb3515bbe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -36,8 +36,8 @@ def _inline_additional_properties( schema.SchemaDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -51,8 +51,8 @@ def _inline_additional_properties( schema.SchemaDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -66,7 +66,7 @@ def _inline_additional_properties( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -110,7 +110,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.py index ff369ce1323..9b4c4f57963 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/content/application_json/schema.py @@ -29,11 +29,13 @@ def __new__( @staticmethod def from_dict_( - arg: SchemaDictInput, + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> SchemaDict: return Schema.validate(arg, configuration=configuration) - def get_additional_property_(self, name: str) -> typing.Union[str, schemas.Unset]: schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py index 118299911ac..14ee6b73106 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.fake_inline_composition.post.request_body.content.application_json import schema @@ -25,7 +23,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -59,8 +57,8 @@ def _inline_composition( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -81,8 +79,8 @@ def _inline_composition( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -103,8 +101,8 @@ def _inline_composition( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["multipart/form-data"], + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -125,8 +123,8 @@ def _inline_composition( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["multipart/form-data"], + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -153,7 +151,7 @@ def _inline_composition( ] = None, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal[ + content_type: typing.Literal[ "application/json", "multipart/form-data", ] = "application/json", @@ -209,7 +207,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/schema.py index 1fd0a9c2f53..f497700b043 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/schema.py @@ -32,7 +32,7 @@ class SomeProp( # any type all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someProp": typing.Type[SomeProp], @@ -46,12 +46,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "someProp", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -74,7 +68,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def someProp(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/query_parameters.py index 0dff722bab4..7553466cd5f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/query_parameters.py @@ -14,7 +14,7 @@ from petstore_api.paths.fake_inline_composition.post.parameters.parameter_0 import schema from petstore_api.paths.fake_inline_composition.post.parameters.parameter_1 import schema as schema_2 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "compositionAtRoot": typing.Type[schema.Schema], @@ -30,12 +30,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) "compositionAtRoot", "compositionInProperty", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -62,7 +56,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def compositionAtRoot(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: @@ -83,7 +86,7 @@ def compositionInProperty(self) -> typing.Union[schema_2.SchemaDict, schemas.Uns schema_2.SchemaDict, val ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "compositionAtRoot": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.py index 1fd0a9c2f53..f497700b043 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/content/multipart_form_data/schema.py @@ -32,7 +32,7 @@ class SomeProp( # any type all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someProp": typing.Type[SomeProp], @@ -46,12 +46,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "someProp", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -74,7 +68,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def someProp(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.py index 1fd0a9c2f53..f497700b043 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/content/multipart_form_data/schema.py @@ -32,7 +32,7 @@ class SomeProp( # any type all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someProp": typing.Type[SomeProp], @@ -46,12 +46,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "someProp", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -74,7 +68,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def someProp(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py index 7001be80265..8312ffc16ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -37,8 +37,8 @@ def _json_form_data( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -53,8 +53,8 @@ def _json_form_data( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -69,7 +69,7 @@ def _json_form_data( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -113,7 +113,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.py index 7f49a5b5713..1d5f07291c0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/content/application_x_www_form_urlencoded/schema.py @@ -12,7 +12,7 @@ Param: typing_extensions.TypeAlias = schemas.StrSchema Param2: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "param": typing.Type[Param], @@ -29,12 +29,6 @@ class SchemaDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -51,7 +45,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def param(self) -> str: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py index 58ff8ee8ec3..f8960b8944b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -37,8 +37,8 @@ def _json_patch( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json-patch+json"] = "application/json-patch+json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json-patch+json"] = "application/json-patch+json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -53,8 +53,8 @@ def _json_patch( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json-patch+json"] = "application/json-patch+json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json-patch+json"] = "application/json-patch+json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -69,7 +69,7 @@ def _json_patch( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json-patch+json"] = "application/json-patch+json", + content_type: typing.Literal["application/json-patch+json"] = "application/json-patch+json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -113,7 +113,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py index 0170f10f67c..5d76437a156 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _json_with_charset( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _json_with_charset( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _json_with_charset( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", + content_type: typing.Literal["application/json; charset=utf-8"] = "application/json; charset=utf-8", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -120,7 +120,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/__init__.py new file mode 100644 index 00000000000..0b6374dbccc --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from petstore_api.apis.paths.fake_multiple_request_body_content_types import FakeMultipleRequestBodyContentTypes + +path = "/fake/multipleRequestBodyContentTypes/" \ No newline at end of file diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py new file mode 100644 index 00000000000..23ad81313f1 --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from petstore_api import api_client +from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.application_json import schema +from petstore_api.paths.fake_multiple_request_body_content_types.post.request_body.content.multipart_form_data import schema as schema_2 + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _multiple_request_body_content_types( + self, + body: typing.Union[ + schema.SchemaDictInput, + schema.SchemaDict, + schemas.Unset + ] = schemas.unset, + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _multiple_request_body_content_types( + self, + body: typing.Union[ + schema.SchemaDictInput, + schema.SchemaDict, + schemas.Unset + ] = schemas.unset, + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + @typing.overload + def _multiple_request_body_content_types( + self, + body: typing.Union[ + schema_2.SchemaDictInput, + schema_2.SchemaDict, + schemas.Unset + ] = schemas.unset, + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _multiple_request_body_content_types( + self, + body: typing.Union[ + schema_2.SchemaDictInput, + schema_2.SchemaDict, + schemas.Unset + ] = schemas.unset, + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _multiple_request_body_content_types( + self, + body: typing.Union[ + typing.Union[ + schema.SchemaDictInput, + schema.SchemaDict, + ], + typing.Union[ + schema_2.SchemaDictInput, + schema_2.SchemaDict, + ], + schemas.Unset, + ] = schemas.unset, + *, + skip_deserialization: bool = False, + content_type: typing.Literal[ + "application/json", + "multipart/form-data", + ] = "application/json", + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + testing composed schemas at inline locations + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class MultipleRequestBodyContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + multiple_request_body_content_types = BaseApi._multiple_request_body_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._multiple_request_body_content_types diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py new file mode 100644 index 00000000000..82049f10f41 --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from petstore_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema +from .content.multipart_form_data import schema as multipart_form_data_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema + + + class MultipartFormDataMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = multipart_form_data_schema.Schema + content = { + 'application/json': ApplicationJsonMediaType, + 'multipart/form-data': MultipartFormDataMediaType, + } diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..3d9c7e6ba03 --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/application_json/schema.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + The version of the OpenAPI document: 1.0.0 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +A: typing_extensions.TypeAlias = schemas.StrSchema +Properties = typing.TypedDict( + 'Properties', + { + "a": typing.Type[A], + } +) + + +class SchemaDict(schemas.immutabledict[str, str]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "a", + }) + + def __new__( + cls, + *, + a: typing.Union[ + str, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("a", a), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(SchemaDictInput, arg_) + return Schema.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) + + @property + def a(self) -> typing.Union[str, schemas.Unset]: + val = self.get("a", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + str, + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + return self.get(name, schemas.unset) +SchemaDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] + + +@dataclasses.dataclass(frozen=True) +class Schema( + schemas.Schema[SchemaDict, tuple] +): + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: SchemaDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + SchemaDictInput, + SchemaDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.py new file mode 100644 index 00000000000..9a3686568cd --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/content/multipart_form_data/schema.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + The version of the OpenAPI document: 1.0.0 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +B: typing_extensions.TypeAlias = schemas.StrSchema +Properties = typing.TypedDict( + 'Properties', + { + "b": typing.Type[B], + } +) + + +class SchemaDict(schemas.immutabledict[str, str]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "b", + }) + + def __new__( + cls, + *, + b: typing.Union[ + str, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("b", b), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(SchemaDictInput, arg_) + return Schema.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) + + @property + def b(self) -> typing.Union[str, schemas.Unset]: + val = self.get("b", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + str, + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + return self.get(name, schemas.unset) +SchemaDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] + + +@dataclasses.dataclass(frozen=True) +class Schema( + schemas.Schema[SchemaDict, tuple] +): + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: SchemaDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + SchemaDictInput, + SchemaDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..d6ff30a0d15 --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from petstore_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..be8b504f67d --- /dev/null +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + The version of the OpenAPI document: 1.0.0 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +Schema: typing_extensions.TypeAlias = schemas.AnyTypeSchema diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py index 8095a0d7704..ac626266abe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -14,7 +14,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): def _multiple_response_bodies( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -54,7 +54,7 @@ def _multiple_response_bodies( def _multiple_response_bodies( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', '202', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py index 3b0f9243477..858d1e167c4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py @@ -22,7 +22,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -45,7 +45,7 @@ class BaseApi(api_client.Api): def _multiple_securities( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -57,7 +57,7 @@ def _multiple_securities( def _multiple_securities( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -111,7 +111,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py index dbcf0a8b5f0..0118db97991 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -18,7 +16,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -42,7 +40,7 @@ def _object_in_query( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +55,7 @@ def _object_in_query( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -112,7 +110,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/schema.py index 3328c3c3cf2..32082c9abe7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/schema.py @@ -11,7 +11,7 @@ from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] Keyword: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "keyword": typing.Type[Keyword], @@ -26,12 +26,6 @@ class SchemaDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "keyword", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def keyword(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/query_parameters.py index 46598007e6b..e6d119029c0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.fake_obj_in_query.get.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "mapBean": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) __optional_keys__: typing.FrozenSet[str] = frozenset({ "mapBean", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def mapBean(self) -> typing.Union[schema.SchemaDict, schemas.Unset]: @@ -65,7 +68,7 @@ def mapBean(self) -> typing.Union[schema.SchemaDict, schemas.Unset]: schema.SchemaDict, val ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "mapBean": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/cookie_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/cookie_parameters.py index cbe3e202b93..25898b45a05 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/cookie_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/cookie_parameters.py @@ -17,7 +17,7 @@ from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_16 import schema as schema_3 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_17 import schema as schema_5 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_18 import schema as schema_4 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "1": typing.Type[schema.Schema], @@ -40,12 +40,6 @@ class CookieParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] "A-B", "self", }) - @staticmethod - def from_dict_( - arg: CookieParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> CookieParametersDict: - return CookieParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(CookieParametersDictInput, arg_) return CookieParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + CookieParametersDictInput, + CookieParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> CookieParametersDict: + return CookieParameters.validate(arg, configuration=configuration) @property def aB(self) -> typing.Union[str, schemas.Unset]: @@ -91,7 +94,7 @@ def Ab(self) -> typing.Union[str, schemas.Unset]: str, val ) -CookieParametersDictInput = typing_extensions.TypedDict( +CookieParametersDictInput = typing.TypedDict( 'CookieParametersDictInput', { "1": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/header_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/header_parameters.py index 6849d1e3212..6b2ee6352ec 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/header_parameters.py @@ -16,7 +16,7 @@ from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_6 import schema as schema_2 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_7 import schema as schema_4 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_8 import schema as schema_3 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "1": typing.Type[schema.Schema], @@ -36,12 +36,6 @@ class HeaderParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] "A-B", "self", }) - @staticmethod - def from_dict_( - arg: HeaderParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeaderParametersDict: - return HeaderParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeaderParametersDictInput, arg_) return HeaderParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeaderParametersDictInput, + HeaderParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeaderParametersDict: + return HeaderParameters.validate(arg, configuration=configuration) @property def aB(self) -> typing.Union[str, schemas.Unset]: @@ -72,7 +75,7 @@ def aB(self) -> typing.Union[str, schemas.Unset]: str, val ) -HeaderParametersDictInput = typing_extensions.TypedDict( +HeaderParametersDictInput = typing.TypedDict( 'HeaderParametersDictInput', { "1": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py index fc4615f7919..df9a0f838e5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.request_body.content.application_json import schema @@ -67,7 +65,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -114,8 +112,8 @@ def _parameter_collisions( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -150,8 +148,8 @@ def _parameter_collisions( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -186,7 +184,7 @@ def _parameter_collisions( ] = None, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -251,7 +249,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/path_parameters.py index f1ac8da9e15..63ebc8d03cb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/path_parameters.py @@ -17,7 +17,7 @@ from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_12 import schema as schema_5 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_13 import schema as schema_4 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_9 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "1": typing.Type[schema.Schema], @@ -40,12 +40,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -60,7 +54,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def Ab(self) -> str: @@ -75,7 +78,7 @@ def aB(self) -> str: str, self.__getitem__("aB") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "1": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/query_parameters.py index e3d41b0b90f..65b29dedcee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/query_parameters.py @@ -17,7 +17,7 @@ from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_2 import schema as schema_3 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_3 import schema as schema_5 from petstore_api.paths.fake_parameter_collisions1_abab_self_ab.post.parameters.parameter_4 import schema as schema_4 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "1": typing.Type[schema.Schema], @@ -40,12 +40,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) "A-B", "self", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -70,7 +64,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def aB(self) -> typing.Union[str, schemas.Unset]: @@ -91,7 +94,7 @@ def Ab(self) -> typing.Union[str, schemas.Unset]: str, val ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "1": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py index a0ec3b2c873..db72290fe8d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.request_body.content.multipart_form_data import schema @@ -25,7 +23,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -57,8 +55,8 @@ def _upload_file_with_required_file( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -79,8 +77,8 @@ def _upload_file_with_required_file( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -101,7 +99,7 @@ def _upload_file_with_required_file( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -159,7 +157,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/path_parameters.py index e6c91e63eaa..fb036576cb6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.fake_pet_id_upload_image_with_required_file.post.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "petId": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def petId(self) -> int: @@ -54,7 +57,7 @@ def petId(self) -> int: int, self.__getitem__("petId") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "petId": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.py index 263685acaf3..f1c7f2687b5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/content/multipart_form_data/schema.py @@ -12,7 +12,7 @@ AdditionalMetadata: typing_extensions.TypeAlias = schemas.StrSchema RequiredFile: typing_extensions.TypeAlias = schemas.BinarySchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "additionalMetadata": typing.Type[AdditionalMetadata], @@ -29,12 +29,6 @@ class SchemaDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "additionalMetadata", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -64,7 +58,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def requiredFile(self) -> typing.Union[bytes, schemas.FileIO]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py index 88d5cd1986c..486ebfb4b8f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -18,7 +16,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -45,7 +43,7 @@ def _query_param_with_json_content_type( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -60,7 +58,7 @@ def _query_param_with_json_content_type( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -117,7 +115,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/query_parameters.py index 40e4e157dcd..a3cf1ad174b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.fake_query_param_with_json_content_type.get.parameters.parameter_0.content.application_json import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "someParam": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -49,7 +43,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def someParam(self) -> schemas.OUTPUT_BASE_TYPES: @@ -57,7 +60,7 @@ def someParam(self) -> schemas.OUTPUT_BASE_TYPES: schemas.OUTPUT_BASE_TYPES, self.__getitem__("someParam") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "someParam": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py index 1fb7d8372d4..108b1cd7688 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py @@ -14,7 +14,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '303': typing.Type[response_303.ResponseFor303], @@ -23,7 +23,7 @@ _status_code_to_response: __StatusCodeToResponse = { '303': response_303.ResponseFor303, } -__RangedStatusCodeToResponse = typing_extensions.TypedDict( +__RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { '3': typing.Type[response_3xx.ResponseFor3XX], @@ -45,7 +45,7 @@ class BaseApi(api_client.Api): def _redirection( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -58,7 +58,7 @@ def _redirection( def _redirection( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -100,7 +100,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '303', ], status @@ -111,7 +111,7 @@ class instances ranged_response_status_code = str(raw_response.status)[0] if ranged_response_status_code in _non_error_ranged_status_codes: ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '3', ], ranged_response_status_code diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py index 06416cdd025..f99a69d747f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -18,7 +16,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -42,7 +40,7 @@ def _ref_object_in_query( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -57,7 +55,7 @@ def _ref_object_in_query( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -112,7 +110,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/query_parameters.py index db66295bac9..efb82bfee75 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.components.schema import foo -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "mapBean": typing.Type[foo.Foo], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) __optional_keys__: typing.FrozenSet[str] = frozenset({ "mapBean", }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def mapBean(self) -> typing.Union[foo.FooDict, schemas.Unset]: @@ -65,7 +68,7 @@ def mapBean(self) -> typing.Union[foo.FooDict, schemas.Unset]: foo.FooDict, val ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "mapBean": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py index cffc454b6c0..ba428ee4d2d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _array_of_enums( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _array_of_enums( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _array_of_enums( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -120,7 +120,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py index af5069cf2f8..9584da9503d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _array_model( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _array_model( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _array_model( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -119,7 +119,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py index 9b57961a8d0..d5073c42db7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,8 +40,8 @@ def _boolean( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -56,8 +56,8 @@ def _boolean( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -72,7 +72,7 @@ def _boolean( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -116,7 +116,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py index bc606793b94..d1c95b602d2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _composed_one_of_different_types( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _composed_one_of_different_types( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _composed_one_of_different_types( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -119,7 +119,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py index 8b02c8995bd..cc3c2201371 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -37,7 +37,7 @@ def _string_enum( self, body: typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", @@ -48,8 +48,8 @@ def _string_enum( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -61,7 +61,7 @@ def _string_enum( self, body: typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", @@ -72,8 +72,8 @@ def _string_enum( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -84,7 +84,7 @@ def _string_enum( self, body: typing.Union[ None, - typing_extensions.Literal[ + typing.Literal[ "placed", "approved", "delivered", @@ -96,7 +96,7 @@ def _string_enum( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -140,7 +140,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py index fef46920f15..a93fe782b95 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py @@ -14,7 +14,7 @@ class ApiResponse(api_response.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ None, - typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], + typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"], ] headers: schemas.Unset = schemas.unset diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py index 3d3c905fb5e..33300ac9a7c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,8 +40,8 @@ def _mammal( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -56,8 +56,8 @@ def _mammal( schemas.OUTPUT_BASE_TYPES ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -72,7 +72,7 @@ def _mammal( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -116,7 +116,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py index cb8ae7dd283..c44194a4198 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _number_with_validations( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _number_with_validations( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _number_with_validations( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -119,7 +119,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py index 411ff441200..2af10fd75b5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _object_model_with_ref_props( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _object_model_with_ref_props( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _object_model_with_ref_props( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -119,7 +119,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py index a800d3fe5a8..b82679b7668 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -40,8 +40,8 @@ def _string( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -56,8 +56,8 @@ def _string( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -72,7 +72,7 @@ def _string( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -116,7 +116,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py index b206bc9265d..a39abc0841f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -35,7 +35,7 @@ class BaseApi(api_client.Api): def _response_without_schema( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -46,7 +46,7 @@ def _response_without_schema( def _response_without_schema( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -92,7 +92,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py index 8f13db020b2..e2dff6148f3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -30,7 +28,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -53,7 +51,7 @@ def _query_parameter_collection_format( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -67,7 +65,7 @@ def _query_parameter_collection_format( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -119,7 +117,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/query_parameters.py index 118e995f6a3..87ad26e47ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/query_parameters.py @@ -18,7 +18,7 @@ from petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_2 import schema as schema_3 from petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_3 import schema as schema_5 from petstore_api.paths.fake_test_query_paramters.put.parameters.parameter_4 import schema as schema_2 -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "refParam": typing.Type[string_with_validation.StringWithValidation], @@ -42,12 +42,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -85,7 +79,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def context(self) -> schema_2.SchemaTuple: @@ -128,7 +131,7 @@ def url(self) -> schema_5.SchemaTuple: schema_5.SchemaTuple, self.__getitem__("url") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "context": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py index b88d16b8a53..717e328e31a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -42,8 +42,8 @@ def _upload_download_file( schemas.FileIO ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/octet-stream"] = "application/octet-stream", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/octet-stream"] = "application/octet-stream", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -60,8 +60,8 @@ def _upload_download_file( schemas.FileIO ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/octet-stream"] = "application/octet-stream", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/octet-stream"] = "application/octet-stream", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -78,7 +78,7 @@ def _upload_download_file( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/octet-stream"] = "application/octet-stream", + content_type: typing.Literal["application/octet-stream"] = "application/octet-stream", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -123,7 +123,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py index 2db740f3f7d..f3d1334e629 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _upload_file( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _upload_file( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _upload_file( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -120,7 +120,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.py index 00e1d9cd716..cfbb859ad35 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/content/multipart_form_data/schema.py @@ -12,7 +12,7 @@ AdditionalMetadata: typing_extensions.TypeAlias = schemas.StrSchema File: typing_extensions.TypeAlias = schemas.BinarySchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "additionalMetadata": typing.Type[AdditionalMetadata], @@ -29,12 +29,6 @@ class SchemaDict(schemas.immutabledict[str, str]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "additionalMetadata", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -64,7 +58,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def file(self) -> typing.Union[bytes, schemas.FileIO]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py index 94fb7296c9a..7a72497cf60 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py @@ -13,7 +13,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -41,8 +41,8 @@ def _upload_files( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -58,8 +58,8 @@ def _upload_files( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -75,7 +75,7 @@ def _upload_files( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -120,7 +120,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.py index c85e5bf907c..e2195c42560 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/content/multipart_form_data/schema.py @@ -20,7 +20,7 @@ class FilesTuple( ] ): - def __new__(cls, arg: FilesTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[FilesTupleInput, FilesTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Files.validate(arg, configuration=configuration) FilesTupleInput = typing.Union[ typing.List[ @@ -71,7 +71,7 @@ def validate( arg, configuration=configuration, ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "files": typing.Type[Files], @@ -86,12 +86,6 @@ class SchemaDict(schemas.immutabledict[str, typing.Tuple[schemas.OUTPUT_BASE_TYP __optional_keys__: typing.FrozenSet[str] = frozenset({ "files", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -114,7 +108,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def files(self) -> typing.Union[FilesTuple, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py index 16e8852a11c..a27c7eedc68 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py @@ -18,7 +18,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -27,7 +27,7 @@ _status_code_to_response: __StatusCodeToResponse = { '200': response_200.ResponseFor200, } -__RangedStatusCodeToResponse = typing_extensions.TypedDict( +__RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { '1': typing.Type[response_1xx.ResponseFor1XX], @@ -67,7 +67,7 @@ class BaseApi(api_client.Api): def _wild_card_responses( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -82,7 +82,7 @@ def _wild_card_responses( def _wild_card_responses( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -128,7 +128,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -139,7 +139,7 @@ class instances ranged_response_status_code = str(raw_response.status)[0] if ranged_response_status_code in _non_error_ranged_status_codes: ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '1', '2', '3', @@ -150,7 +150,7 @@ class instances raw_response, self.api_client.schema_configuration) elif ranged_response_status_code in _error_ranged_status_codes: error_ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '4', '5', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py index b1e6f520711..d71c78e97fb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py @@ -23,7 +23,7 @@ class BaseApi(api_client.Api): def _foo_get( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -34,7 +34,7 @@ def _foo_get( def _foo_get( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/content/application_json/schema.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/content/application_json/schema.py index a1324043096..e33b99578e9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/content/application_json/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/content/application_json/schema.py @@ -12,7 +12,7 @@ from petstore_api.components.schema import foo -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "string": typing.Type[foo.Foo], @@ -26,12 +26,6 @@ class SchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): __optional_keys__: typing.FrozenSet[str] = frozenset({ "string", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -54,7 +48,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def string(self) -> typing.Union[foo.FooDict, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py index e09278c3f2f..d8f7bc67476 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py @@ -12,11 +12,11 @@ class VersionEnums: @schemas.classproperty - def V1(cls) -> typing_extensions.Literal["v1"]: + def V1(cls) -> typing.Literal["v1"]: return Version.validate("v1") @schemas.classproperty - def V2(cls) -> typing_extensions.Literal["v2"]: + def V2(cls) -> typing.Literal["v2"]: return Version.validate("v2") @@ -27,7 +27,7 @@ class Version( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["v1"] = "v1" + default: typing.Literal["v1"] = "v1" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "v1": "V1", @@ -40,29 +40,29 @@ class Version( @classmethod def validate( cls, - arg: typing_extensions.Literal["v1"], + arg: typing.Literal["v1"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1"]: ... + ) -> typing.Literal["v1"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["v2"], + arg: typing.Literal["v2"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v2"]: ... + ) -> typing.Literal["v2"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1","v2",]: ... + ) -> typing.Literal["v1","v2",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "v1", "v2", ]: @@ -70,13 +70,13 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "v1", "v2", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "version": typing.Type[Version], @@ -91,17 +91,11 @@ class VariablesDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: VariablesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> VariablesDict: - return Variables.validate(arg, configuration=configuration) def __new__( cls, *, - version: typing_extensions.Literal[ + version: typing.Literal[ "v1", "v2" ], @@ -112,18 +106,27 @@ def __new__( } used_arg_ = typing.cast(VariablesDictInput, arg_) return Variables.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + VariablesDictInput, + VariablesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> VariablesDict: + return Variables.validate(arg, configuration=configuration) @property - def version(self) -> typing_extensions.Literal["v1", "v2"]: + def version(self) -> typing.Literal["v1", "v2"]: return typing.cast( - typing_extensions.Literal["v1", "v2"], + typing.Literal["v1", "v2"], self.__getitem__("version") ) -VariablesDictInput = typing_extensions.TypedDict( +VariablesDictInput = typing.TypedDict( 'VariablesDictInput', { - "version": typing_extensions.Literal[ + "version": typing.Literal[ "v1", "v2" ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py index 47e5d7d7a15..9aef38d340c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py @@ -27,7 +27,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -55,8 +55,8 @@ def _add_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -71,8 +71,8 @@ def _add_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -87,8 +87,8 @@ def _add_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/xml"], + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/xml"], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -103,8 +103,8 @@ def _add_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/xml"], + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/xml"], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -125,7 +125,7 @@ def _add_pet( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal[ + content_type: typing.Literal[ "application/json", "application/xml", ] = "application/json", @@ -179,7 +179,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -188,7 +188,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '405', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py index 95cc5a27010..93fd7202e01 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py @@ -26,7 +26,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '400': typing.Type[response_400.ResponseFor400], @@ -55,8 +55,8 @@ def _update_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -70,8 +70,8 @@ def _update_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -86,8 +86,8 @@ def _update_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/xml"], + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/xml"], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -101,8 +101,8 @@ def _update_pet( pet.PetDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/xml"], + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/xml"], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -123,7 +123,7 @@ def _update_pet( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal[ + content_type: typing.Literal[ "application/json", "application/xml", ] = "application/json", @@ -177,7 +177,7 @@ class instances status = str(raw_response.status) if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', '405', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py index 545752791e2..f03881aa983 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -32,7 +30,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -65,7 +63,7 @@ def _find_pets_by_status( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -81,7 +79,7 @@ def _find_pets_by_status( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -146,7 +144,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -155,7 +153,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/schema.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/schema.py index a951147ab25..3603645a74a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/schema.py @@ -15,15 +15,15 @@ class ItemsEnums: @schemas.classproperty - def AVAILABLE(cls) -> typing_extensions.Literal["available"]: + def AVAILABLE(cls) -> typing.Literal["available"]: return Items.validate("available") @schemas.classproperty - def PENDING(cls) -> typing_extensions.Literal["pending"]: + def PENDING(cls) -> typing.Literal["pending"]: return Items.validate("pending") @schemas.classproperty - def SOLD(cls) -> typing_extensions.Literal["sold"]: + def SOLD(cls) -> typing.Literal["sold"]: return Items.validate("sold") @@ -34,7 +34,7 @@ class Items( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["available"] = "available" + default: typing.Literal["available"] = "available" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "available": "AVAILABLE", @@ -48,36 +48,36 @@ class Items( @classmethod def validate( cls, - arg: typing_extensions.Literal["available"], + arg: typing.Literal["available"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["available"]: ... + ) -> typing.Literal["available"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["pending"], + arg: typing.Literal["pending"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["pending"]: ... + ) -> typing.Literal["pending"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["sold"], + arg: typing.Literal["sold"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["sold"]: ... + ) -> typing.Literal["sold"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["available","pending","sold",]: ... + ) -> typing.Literal["available","pending","sold",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "available", "pending", "sold", @@ -86,7 +86,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "available", "pending", "sold", @@ -97,23 +97,23 @@ def validate( class SchemaTuple( typing.Tuple[ - typing_extensions.Literal["available", "pending", "sold"], + typing.Literal["available", "pending", "sold"], ... ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ - typing_extensions.Literal[ + typing.Literal[ "available", "pending", "sold" ], ], typing.Tuple[ - typing_extensions.Literal[ + typing.Literal[ "available", "pending", "sold" diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/query_parameters.py index f93e445be38..f9e4a706172 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_find_by_status.get.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "status": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -49,7 +43,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def status(self) -> schema.SchemaTuple: @@ -57,7 +60,7 @@ def status(self) -> schema.SchemaTuple: schema.SchemaTuple, self.__getitem__("status") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "status": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py index e09278c3f2f..d8f7bc67476 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py @@ -12,11 +12,11 @@ class VersionEnums: @schemas.classproperty - def V1(cls) -> typing_extensions.Literal["v1"]: + def V1(cls) -> typing.Literal["v1"]: return Version.validate("v1") @schemas.classproperty - def V2(cls) -> typing_extensions.Literal["v2"]: + def V2(cls) -> typing.Literal["v2"]: return Version.validate("v2") @@ -27,7 +27,7 @@ class Version( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["v1"] = "v1" + default: typing.Literal["v1"] = "v1" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "v1": "V1", @@ -40,29 +40,29 @@ class Version( @classmethod def validate( cls, - arg: typing_extensions.Literal["v1"], + arg: typing.Literal["v1"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1"]: ... + ) -> typing.Literal["v1"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["v2"], + arg: typing.Literal["v2"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v2"]: ... + ) -> typing.Literal["v2"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1","v2",]: ... + ) -> typing.Literal["v1","v2",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "v1", "v2", ]: @@ -70,13 +70,13 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "v1", "v2", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "version": typing.Type[Version], @@ -91,17 +91,11 @@ class VariablesDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: VariablesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> VariablesDict: - return Variables.validate(arg, configuration=configuration) def __new__( cls, *, - version: typing_extensions.Literal[ + version: typing.Literal[ "v1", "v2" ], @@ -112,18 +106,27 @@ def __new__( } used_arg_ = typing.cast(VariablesDictInput, arg_) return Variables.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + VariablesDictInput, + VariablesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> VariablesDict: + return Variables.validate(arg, configuration=configuration) @property - def version(self) -> typing_extensions.Literal["v1", "v2"]: + def version(self) -> typing.Literal["v1", "v2"]: return typing.cast( - typing_extensions.Literal["v1", "v2"], + typing.Literal["v1", "v2"], self.__getitem__("version") ) -VariablesDictInput = typing_extensions.TypedDict( +VariablesDictInput = typing.TypedDict( 'VariablesDictInput', { - "version": typing_extensions.Literal[ + "version": typing.Literal[ "v1", "v2" ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py index c00793ea99e..641ebe79d5b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -30,7 +28,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -58,7 +56,7 @@ def _find_pets_by_tags( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -73,7 +71,7 @@ def _find_pets_by_tags( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -134,7 +132,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -143,7 +141,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/schema.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/schema.py index ddf7591e187..3bb464f3982 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/schema.py @@ -20,7 +20,7 @@ class SchemaTuple( ] ): - def __new__(cls, arg: SchemaTupleInput, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + def __new__(cls, arg: typing.Union[SchemaTupleInput, SchemaTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return Schema.validate(arg, configuration=configuration) SchemaTupleInput = typing.Union[ typing.List[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/query_parameters.py index e006f0e4747..55b54940335 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/query_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_find_by_tags.get.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "tags": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -49,7 +43,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def tags(self) -> schema.SchemaTuple: @@ -57,7 +60,7 @@ def tags(self) -> schema.SchemaTuple: schema.SchemaTuple, self.__getitem__("tags") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "tags": typing.Union[ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/header_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/header_parameters.py index 5e8aa127763..570953aa5df 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/header_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_pet_id.delete.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "api_key": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class HeaderParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] __optional_keys__: typing.FrozenSet[str] = frozenset({ "api_key", }) - @staticmethod - def from_dict_( - arg: HeaderParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeaderParametersDict: - return HeaderParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -53,7 +47,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeaderParametersDictInput, arg_) return HeaderParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeaderParametersDictInput, + HeaderParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeaderParametersDict: + return HeaderParameters.validate(arg, configuration=configuration) @property def api_key(self) -> typing.Union[str, schemas.Unset]: @@ -64,7 +67,7 @@ def api_key(self) -> typing.Union[str, schemas.Unset]: str, val ) -HeaderParametersDictInput = typing_extensions.TypedDict( +HeaderParametersDictInput = typing.TypedDict( 'HeaderParametersDictInput', { "api_key": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py index b0c733382ee..c714fd94f05 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -34,7 +32,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '400': typing.Type[response_400.ResponseFor400], @@ -62,7 +60,7 @@ def _delete_pet( None ] = None, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -81,7 +79,7 @@ def _delete_pet( None ] = None, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -154,7 +152,7 @@ class instances status = str(raw_response.status) if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/path_parameters.py index 11efeaf19e6..e0e3d557543 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_pet_id.delete.parameters.parameter_1 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "petId": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def petId(self) -> int: @@ -54,7 +57,7 @@ def petId(self) -> int: int, self.__getitem__("petId") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "petId": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py index 415be56bb34..016b6ac90b2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -27,7 +25,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -63,7 +61,7 @@ def _get_pet_by_id( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -79,7 +77,7 @@ def _get_pet_by_id( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -143,7 +141,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -152,7 +150,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/path_parameters.py index b3aa036416b..74ce6aa8693 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_pet_id.get.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "petId": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def petId(self) -> int: @@ -54,7 +57,7 @@ def petId(self) -> int: int, self.__getitem__("petId") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "petId": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py index 6a4e68f7fa7..2a2e78e1f03 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.pet_pet_id.post.request_body.content.application_x_www_form_urlencoded import schema @@ -29,7 +27,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '405': typing.Type[response_405.ResponseFor405], @@ -57,8 +55,8 @@ def _update_pet_with_form( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -77,8 +75,8 @@ def _update_pet_with_form( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -98,7 +96,7 @@ def _update_pet_with_form( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", + content_type: typing.Literal["application/x-www-form-urlencoded"] = "application/x-www-form-urlencoded", security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, stream: bool = False, @@ -155,7 +153,7 @@ class instances status = str(raw_response.status) if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '405', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/path_parameters.py index a082df35091..f66da01cb27 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_pet_id.post.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "petId": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def petId(self) -> int: @@ -54,7 +57,7 @@ def petId(self) -> int: int, self.__getitem__("petId") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "petId": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.py index 77faaf4201f..c482de52f3e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/content/application_x_www_form_urlencoded/schema.py @@ -12,7 +12,7 @@ Name: typing_extensions.TypeAlias = schemas.StrSchema Status: typing_extensions.TypeAlias = schemas.StrSchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "name": typing.Type[Name], @@ -29,12 +29,6 @@ class SchemaDict(schemas.immutabledict[str, str]): "name", "status", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -61,7 +55,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def name(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py index c226146b585..35d509a3e32 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, security_schemes from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.paths.pet_pet_id_upload_image.post.request_body.content.multipart_form_data import schema @@ -25,7 +23,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -57,8 +55,8 @@ def _upload_image( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -79,8 +77,8 @@ def _upload_image( schemas.Unset ] = schemas.unset, *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -101,7 +99,7 @@ def _upload_image( ] = schemas.unset, *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["multipart/form-data"] = "multipart/form-data", + content_type: typing.Literal["multipart/form-data"] = "multipart/form-data", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -159,7 +157,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/path_parameters.py index c5b5c035fcc..fca5af43aed 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.pet_pet_id_upload_image.post.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "petId": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def petId(self) -> int: @@ -54,7 +57,7 @@ def petId(self) -> int: int, self.__getitem__("petId") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "petId": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.py index f71c2f63d71..b4f563ca568 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/content/multipart_form_data/schema.py @@ -12,7 +12,7 @@ AdditionalMetadata: typing_extensions.TypeAlias = schemas.StrSchema File: typing_extensions.TypeAlias = schemas.BinarySchema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "additionalMetadata": typing.Type[AdditionalMetadata], @@ -29,12 +29,6 @@ class SchemaDict(schemas.immutabledict[str, str]): "additionalMetadata", "file", }) - @staticmethod - def from_dict_( - arg: SchemaDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> SchemaDict: - return Schema.validate(arg, configuration=configuration) def __new__( cls, @@ -64,7 +58,16 @@ def __new__( arg_.update(kwargs) used_arg_ = typing.cast(SchemaDictInput, arg_) return Schema.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + SchemaDictInput, + SchemaDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> SchemaDict: + return Schema.validate(arg, configuration=configuration) @property def additionalMetadata(self) -> typing.Union[str, schemas.Unset]: diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py index 704c038b08c..16635b6cfc6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py @@ -11,7 +11,7 @@ from .responses import response_200 -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -30,7 +30,7 @@ class BaseApi(api_client.Api): def _slash_route( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -40,7 +40,7 @@ def _slash_route( def _slash_route( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -82,7 +82,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py index 1d9cd50ec70..54e1f7f5e55 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py @@ -16,7 +16,7 @@ ] -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): def _get_inventory( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -51,7 +51,7 @@ def _get_inventory( def _get_inventory( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, security_index: typing.Optional[int] = None, server_index: typing.Optional[int] = None, @@ -105,7 +105,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py index 25515bbb96d..215f6acebd0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py @@ -16,7 +16,7 @@ from . import request_body -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -49,8 +49,8 @@ def _place_order( order.OrderDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -65,8 +65,8 @@ def _place_order( order.OrderDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -81,7 +81,7 @@ def _place_order( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -126,7 +126,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -135,7 +135,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py index 9c3a7905ed1..fc21f074b84 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -21,7 +19,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '400': typing.Type[response_400.ResponseFor400], @@ -47,7 +45,7 @@ def _delete_order( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -60,7 +58,7 @@ def _delete_order( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -112,7 +110,7 @@ class instances status = str(raw_response.status) if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/path_parameters.py index cb8eb24ec27..0a04f33b447 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.store_order_order_id.delete.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "order_id": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def order_id(self) -> str: @@ -54,7 +57,7 @@ def order_id(self) -> str: str, self.__getitem__("order_id") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "order_id": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py index bf1e7c32b40..a6a85b696f6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -22,7 +20,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -58,7 +56,7 @@ def _get_order_by_id( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -73,7 +71,7 @@ def _get_order_by_id( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -129,7 +127,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -138,7 +136,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/path_parameters.py index 1c11547669a..50c23e31b4c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.paths.store_order_order_id.get.parameters.parameter_0 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "order_id": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def order_id(self) -> int: @@ -54,7 +57,7 @@ def order_id(self) -> int: int, self.__getitem__("order_id") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "order_id": int, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py index aa19e9e3cf1..42bce93f8b6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py @@ -25,8 +25,8 @@ def _create_user( user.UserDict, ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -40,8 +40,8 @@ def _create_user( user.UserDict, ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -55,7 +55,7 @@ def _create_user( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py index e4035866de0..5d6c5686d71 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py @@ -25,8 +25,8 @@ def _create_users_with_array_input( schema.SchemaTuple ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -40,8 +40,8 @@ def _create_users_with_array_input( schema.SchemaTuple ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -55,7 +55,7 @@ def _create_users_with_array_input( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py index 4a2cc9fa5e4..da4c3784254 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py @@ -25,8 +25,8 @@ def _create_users_with_list_input( schema.SchemaTuple ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -40,8 +40,8 @@ def _create_users_with_list_input( schema.SchemaTuple ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -55,7 +55,7 @@ def _create_users_with_list_input( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py index bd0dc93df86..3f9607476ae 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -25,7 +23,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -58,7 +56,7 @@ def _login_user( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -73,7 +71,7 @@ def _login_user( QueryParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -130,7 +128,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -139,7 +137,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/query_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/query_parameters.py index 5d58c146139..9f55018840c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/query_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/query_parameters.py @@ -14,7 +14,7 @@ from petstore_api.paths.user_login.get.parameters.parameter_0 import schema as schema_2 from petstore_api.paths.user_login.get.parameters.parameter_1 import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "password": typing.Type[schema.Schema], @@ -30,12 +30,6 @@ class QueryParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]) }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: QueryParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> QueryParametersDict: - return QueryParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -50,7 +44,16 @@ def __new__( } used_arg_ = typing.cast(QueryParametersDictInput, arg_) return QueryParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + QueryParametersDictInput, + QueryParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> QueryParametersDict: + return QueryParameters.validate(arg, configuration=configuration) @property def password(self) -> str: @@ -65,7 +68,7 @@ def username(self) -> str: str, self.__getitem__("username") ) -QueryParametersDictInput = typing_extensions.TypedDict( +QueryParametersDictInput = typing.TypedDict( 'QueryParametersDictInput', { "password": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/header_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/header_parameters.py index 53c427c4064..fe062a020a3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/header_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/header_parameters.py @@ -17,7 +17,7 @@ from petstore_api.components.schema import string_with_validation from petstore_api.paths.user_login.get.responses.response_200.headers.header_x_expires_after import schema as schema_3 from petstore_api.paths.user_login.get.responses.response_200.headers.header_x_rate_limit.content.application_json import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "X-Rate-Limit": typing.Type[schema.Schema], @@ -27,7 +27,7 @@ "numberHeader": typing.Type[schema_4.Schema], } ) -HeadersRequiredDictInput = typing_extensions.TypedDict( +HeadersRequiredDictInput = typing.TypedDict( 'HeadersRequiredDictInput', { "X-Rate-Limit": int, @@ -35,7 +35,7 @@ "ref-content-schema-header": str, } ) -HeadersOptionalDictInput = typing_extensions.TypedDict( +HeadersOptionalDictInput = typing.TypedDict( 'HeadersOptionalDictInput', { "X-Expires-After": typing.Union[ @@ -59,12 +59,6 @@ class HeadersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): "X-Expires-After", "numberHeader", }) - @staticmethod - def from_dict_( - arg: HeadersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> HeadersDict: - return Headers.validate(arg, configuration=configuration) def __new__( cls, @@ -87,7 +81,16 @@ def __new__( arg_[key] = val used_arg_ = typing.cast(HeadersDictInput, arg_) return Headers.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + HeadersDictInput, + HeadersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> HeadersDict: + return Headers.validate(arg, configuration=configuration) @property def int32(self) -> int: diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py index cad38701fe3..cf009a7f1b7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py @@ -19,7 +19,7 @@ class BaseApi(api_client.Api): def _logout_user( self, *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -29,7 +29,7 @@ def _logout_user( def _logout_user( self, *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py index 87de8ed0a41..10ed56477ff 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -21,7 +19,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -49,7 +47,7 @@ def _delete_user( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -63,7 +61,7 @@ def _delete_user( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -115,7 +113,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -124,7 +122,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '404', ], status diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/path_parameters.py index 532abd6b69b..01ba0fb53eb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.components.parameters.parameter_path_user_name import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "username": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def username(self) -> str: @@ -54,7 +57,7 @@ def username(self) -> str: str, self.__getitem__("username") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "username": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py index 56e5976ed31..18a27704e08 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] @@ -22,7 +20,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '200': typing.Type[response_200.ResponseFor200], @@ -58,7 +56,7 @@ def _get_user_by_name( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -73,7 +71,7 @@ def _get_user_by_name( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, server_index: typing.Optional[int] = None, stream: bool = False, @@ -129,7 +127,7 @@ class instances status = str(raw_response.status) if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '200', ], status @@ -138,7 +136,7 @@ class instances raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/path_parameters.py index 532abd6b69b..01ba0fb53eb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.components.parameters.parameter_path_user_name import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "username": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def username(self) -> str: @@ -54,7 +57,7 @@ def username(self) -> str: str, self.__getitem__("username") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "username": str, diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py index 5cb6c3414de..55d7852fbf9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py @@ -4,8 +4,6 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from __future__ import annotations -from petstore_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api import api_client, exceptions from petstore_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] from petstore_api.components.schema import user @@ -23,7 +21,7 @@ ) -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { '400': typing.Type[response_400.ResponseFor400], @@ -53,8 +51,8 @@ def _update_user( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[False] = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -71,8 +69,8 @@ def _update_user( PathParametersDict ], *, - skip_deserialization: typing_extensions.Literal[True], - content_type: typing_extensions.Literal["application/json"] = "application/json", + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -90,7 +88,7 @@ def _update_user( ], *, skip_deserialization: bool = False, - content_type: typing_extensions.Literal["application/json"] = "application/json", + content_type: typing.Literal["application/json"] = "application/json", server_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, @@ -140,7 +138,7 @@ class instances status = str(raw_response.status) if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ '400', '404', ], diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/path_parameters.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/path_parameters.py index 532abd6b69b..01ba0fb53eb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/path_parameters.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/path_parameters.py @@ -13,7 +13,7 @@ AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema from petstore_api.components.parameters.parameter_path_user_name import schema -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "username": typing.Type[schema.Schema], @@ -28,12 +28,6 @@ class PathParametersDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: PathParametersDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> PathParametersDict: - return PathParameters.validate(arg, configuration=configuration) def __new__( cls, @@ -46,7 +40,16 @@ def __new__( } used_arg_ = typing.cast(PathParametersDictInput, arg_) return PathParameters.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + PathParametersDictInput, + PathParametersDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PathParametersDict: + return PathParameters.validate(arg, configuration=configuration) @property def username(self) -> str: @@ -54,7 +57,7 @@ def username(self) -> str: str, self.__getitem__("username") ) -PathParametersDictInput = typing_extensions.TypedDict( +PathParametersDictInput = typing.TypedDict( 'PathParametersDictInput', { "username": str, diff --git a/samples/client/petstore/python/src/petstore_api/schemas/__init__.py b/samples/client/petstore/python/src/petstore_api/schemas/__init__.py index 1d689e8dbf4..b7697198685 100644 --- a/samples/client/petstore/python/src/petstore_api/schemas/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/schemas/__init__.py @@ -63,7 +63,7 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M for key, val in t_dict.__annotations__.items(): if isinstance(val, typing._GenericAlias): # type: ignore # typing.Type[W] -> W - val_cls = typing_extensions.get_args(val)[0] + val_cls = typing.get_args(val)[0] res[key] = val_cls return res @@ -71,10 +71,10 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M def tuple_to_instance(tup: typing.Type[X]) -> X: res = [] - for arg in typing_extensions.get_args(tup): + for arg in typing.get_args(tup): if isinstance(arg, typing._GenericAlias): # type: ignore # typing.Type[Schema] -> Schema - arg_cls = typing_extensions.get_args(arg)[0] + arg_cls = typing.get_args(arg)[0] res.append(arg_cls) return tuple(res) # type: ignore @@ -135,10 +135,10 @@ def raise_if_key_known( 'PatternInfo', 'ValidationMetadata', 'immutabledict', - 'as_date_', - 'as_datetime_', - 'as_decimal_', - 'as_uuid_', + 'as_date', + 'as_datetime', + 'as_decimal', + 'as_uuid', 'typed_dict_to_instance', 'tuple_to_instance', 'Unset', diff --git a/samples/client/petstore/python/src/petstore_api/schemas/schema.py b/samples/client/petstore/python/src/petstore_api/schemas/schema.py index 4008643c92c..c56fcbf0679 100644 --- a/samples/client/petstore/python/src/petstore_api/schemas/schema.py +++ b/samples/client/petstore/python/src/petstore_api/schemas/schema.py @@ -399,17 +399,17 @@ def validate_base( @classmethod def validate_base( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate_base( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod @@ -541,7 +541,7 @@ def get_class( ) -> typing.Type[Schema]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls @@ -574,17 +574,17 @@ def validate( @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/petstore/python/src/petstore_api/schemas/schemas.py b/samples/client/petstore/python/src/petstore_api/schemas/schemas.py index 4f06512ede0..fd639030045 100644 --- a/samples/client/petstore/python/src/petstore_api/schemas/schemas.py +++ b/samples/client/petstore/python/src/petstore_api/schemas/schemas.py @@ -287,17 +287,17 @@ class BoolSchema(schema.Schema): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/samples/client/petstore/python/src/petstore_api/schemas/validation.py b/samples/client/petstore/python/src/petstore_api/schemas/validation.py index 10792368798..ea1ff8ec02a 100644 --- a/samples/client/petstore/python/src/petstore_api/schemas/validation.py +++ b/samples/client/petstore/python/src/petstore_api/schemas/validation.py @@ -139,7 +139,7 @@ def _get_class( ) -> typing.Type[SchemaValidator]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls diff --git a/samples/client/petstore/python/src/petstore_api/security_schemes.py b/samples/client/petstore/python/src/petstore_api/security_schemes.py index da5e31ade7e..53e157a0c9e 100644 --- a/samples/client/petstore/python/src/petstore_api/security_schemes.py +++ b/samples/client/petstore/python/src/petstore_api/security_schemes.py @@ -242,7 +242,7 @@ def apply_auth( Key is the Security scheme class Value is the list of scopes """ -SecurityRequirementObject = typing_extensions.TypedDict( +SecurityRequirementObject = typing.TypedDict( 'SecurityRequirementObject', { 'api_key': typing.Tuple[str, ...], diff --git a/samples/client/petstore/python/src/petstore_api/servers/server_0.py b/samples/client/petstore/python/src/petstore_api/servers/server_0.py index 69b1c6a04ab..97eb16f60f3 100644 --- a/samples/client/petstore/python/src/petstore_api/servers/server_0.py +++ b/samples/client/petstore/python/src/petstore_api/servers/server_0.py @@ -12,15 +12,15 @@ class ServerEnums: @schemas.classproperty - def PETSTORE(cls) -> typing_extensions.Literal["petstore"]: + def PETSTORE(cls) -> typing.Literal["petstore"]: return Server.validate("petstore") @schemas.classproperty - def QA_HYPHEN_MINUS_PETSTORE(cls) -> typing_extensions.Literal["qa-petstore"]: + def QA_HYPHEN_MINUS_PETSTORE(cls) -> typing.Literal["qa-petstore"]: return Server.validate("qa-petstore") @schemas.classproperty - def DEV_HYPHEN_MINUS_PETSTORE(cls) -> typing_extensions.Literal["dev-petstore"]: + def DEV_HYPHEN_MINUS_PETSTORE(cls) -> typing.Literal["dev-petstore"]: return Server.validate("dev-petstore") @@ -31,7 +31,7 @@ class Server( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["petstore"] = "petstore" + default: typing.Literal["petstore"] = "petstore" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "petstore": "PETSTORE", @@ -45,36 +45,36 @@ class Server( @classmethod def validate( cls, - arg: typing_extensions.Literal["petstore"], + arg: typing.Literal["petstore"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["petstore"]: ... + ) -> typing.Literal["petstore"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["qa-petstore"], + arg: typing.Literal["qa-petstore"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["qa-petstore"]: ... + ) -> typing.Literal["qa-petstore"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["dev-petstore"], + arg: typing.Literal["dev-petstore"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["dev-petstore"]: ... + ) -> typing.Literal["dev-petstore"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["petstore","qa-petstore","dev-petstore",]: ... + ) -> typing.Literal["petstore","qa-petstore","dev-petstore",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "petstore", "qa-petstore", "dev-petstore", @@ -83,7 +83,7 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "petstore", "qa-petstore", "dev-petstore", @@ -95,11 +95,11 @@ def validate( class PortEnums: @schemas.classproperty - def POSITIVE_80(cls) -> typing_extensions.Literal["80"]: + def POSITIVE_80(cls) -> typing.Literal["80"]: return Port.validate("80") @schemas.classproperty - def POSITIVE_8080(cls) -> typing_extensions.Literal["8080"]: + def POSITIVE_8080(cls) -> typing.Literal["8080"]: return Port.validate("8080") @@ -110,7 +110,7 @@ class Port( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["80"] = "80" + default: typing.Literal["80"] = "80" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "80": "POSITIVE_80", @@ -123,29 +123,29 @@ class Port( @classmethod def validate( cls, - arg: typing_extensions.Literal["80"], + arg: typing.Literal["80"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["80"]: ... + ) -> typing.Literal["80"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["8080"], + arg: typing.Literal["8080"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["8080"]: ... + ) -> typing.Literal["8080"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["80","8080",]: ... + ) -> typing.Literal["80","8080",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "80", "8080", ]: @@ -153,13 +153,13 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "80", "8080", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "server": typing.Type[Server], @@ -176,21 +176,15 @@ class VariablesDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: VariablesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> VariablesDict: - return Variables.validate(arg, configuration=configuration) def __new__( cls, *, - port: typing_extensions.Literal[ + port: typing.Literal[ "80", "8080" ], - server: typing_extensions.Literal[ + server: typing.Literal[ "petstore", "qa-petstore", "dev-petstore" @@ -203,29 +197,38 @@ def __new__( } used_arg_ = typing.cast(VariablesDictInput, arg_) return Variables.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + VariablesDictInput, + VariablesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> VariablesDict: + return Variables.validate(arg, configuration=configuration) @property - def port(self) -> typing_extensions.Literal["80", "8080"]: + def port(self) -> typing.Literal["80", "8080"]: return typing.cast( - typing_extensions.Literal["80", "8080"], + typing.Literal["80", "8080"], self.__getitem__("port") ) @property - def server(self) -> typing_extensions.Literal["petstore", "qa-petstore", "dev-petstore"]: + def server(self) -> typing.Literal["petstore", "qa-petstore", "dev-petstore"]: return typing.cast( - typing_extensions.Literal["petstore", "qa-petstore", "dev-petstore"], + typing.Literal["petstore", "qa-petstore", "dev-petstore"], self.__getitem__("server") ) -VariablesDictInput = typing_extensions.TypedDict( +VariablesDictInput = typing.TypedDict( 'VariablesDictInput', { - "port": typing_extensions.Literal[ + "port": typing.Literal[ "80", "8080" ], - "server": typing_extensions.Literal[ + "server": typing.Literal[ "petstore", "qa-petstore", "dev-petstore" diff --git a/samples/client/petstore/python/src/petstore_api/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/servers/server_1.py index bd8031ee2ee..48b17a7c277 100644 --- a/samples/client/petstore/python/src/petstore_api/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/servers/server_1.py @@ -12,11 +12,11 @@ class VersionEnums: @schemas.classproperty - def V1(cls) -> typing_extensions.Literal["v1"]: + def V1(cls) -> typing.Literal["v1"]: return Version.validate("v1") @schemas.classproperty - def V2(cls) -> typing_extensions.Literal["v2"]: + def V2(cls) -> typing.Literal["v2"]: return Version.validate("v2") @@ -27,7 +27,7 @@ class Version( types: typing.FrozenSet[typing.Type] = frozenset({ str, }) - default: typing_extensions.Literal["v2"] = "v2" + default: typing.Literal["v2"] = "v2" enum_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( default_factory=lambda: { "v1": "V1", @@ -40,29 +40,29 @@ class Version( @classmethod def validate( cls, - arg: typing_extensions.Literal["v1"], + arg: typing.Literal["v1"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1"]: ... + ) -> typing.Literal["v1"]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal["v2"], + arg: typing.Literal["v2"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v2"]: ... + ) -> typing.Literal["v2"]: ... @typing.overload @classmethod def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal["v1","v2",]: ... + ) -> typing.Literal["v1","v2",]: ... @classmethod def validate( cls, arg, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[ + ) -> typing.Literal[ "v1", "v2", ]: @@ -70,13 +70,13 @@ def validate( arg, configuration=configuration, ) - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ "v1", "v2", ], validated_arg ) -Properties = typing_extensions.TypedDict( +Properties = typing.TypedDict( 'Properties', { "version": typing.Type[Version], @@ -91,17 +91,11 @@ class VariablesDict(schemas.immutabledict[str, str]): }) __optional_keys__: typing.FrozenSet[str] = frozenset({ }) - @staticmethod - def from_dict_( - arg: VariablesDictInput, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> VariablesDict: - return Variables.validate(arg, configuration=configuration) def __new__( cls, *, - version: typing_extensions.Literal[ + version: typing.Literal[ "v1", "v2" ], @@ -112,18 +106,27 @@ def __new__( } used_arg_ = typing.cast(VariablesDictInput, arg_) return Variables.validate(used_arg_, configuration=configuration_) - + + @staticmethod + def from_dict_( + arg: typing.Union[ + VariablesDictInput, + VariablesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> VariablesDict: + return Variables.validate(arg, configuration=configuration) @property - def version(self) -> typing_extensions.Literal["v1", "v2"]: + def version(self) -> typing.Literal["v1", "v2"]: return typing.cast( - typing_extensions.Literal["v1", "v2"], + typing.Literal["v1", "v2"], self.__getitem__("version") ) -VariablesDictInput = typing_extensions.TypedDict( +VariablesDictInput = typing.TypedDict( 'VariablesDictInput', { - "version": typing_extensions.Literal[ + "version": typing.Literal[ "v1", "v2" ], diff --git a/samples/client/petstore/python/test/test_paths/test_fake_multiple_request_body_content_types/__init__.py b/samples/client/petstore/python/test/test_paths/test_fake_multiple_request_body_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/petstore/python/test/test_paths/test_fake_multiple_request_body_content_types/test_post.py b/samples/client/petstore/python/test/test_paths/test_fake_multiple_request_body_content_types/test_post.py new file mode 100644 index 00000000000..fe0842813ce --- /dev/null +++ b/samples/client/petstore/python/test/test_paths/test_fake_multiple_request_body_content_types/test_post.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import petstore_api +from petstore_api.paths.fake_multiple_request_body_content_types.post import operation as post # noqa: E501 +from petstore_api import schemas, api_client +from petstore_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + testing composed schemas at inline locations # noqa: E501 + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration() + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index fa5aeada637..83a24c99dab 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -376,9 +376,15 @@ private void generateSchemaTests(List files, Map modelData } } - private void generateSchemaDocumentation(List files, Map modelData, String jsonPath) throws IOException { - modelData.put("headerSize", "#"); - generateXDocs(files, jsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.SCHEMA, CodegenConstants.MODEL_DOCS, modelData, generateModelDocumentation); + private void generateSchemaDocumentation(List files, CodegenSchema schema, String jsonPath, String docRoot) { + Map schemaData = new HashMap<>(); + schemaData.put("packageName", generator.packageName()); + schemaData.put("schema", schema); + schemaData.putAll(generator.additionalProperties()); + schemaData.put("docRoot", docRoot); + schemaData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); + schemaData.put("headerSize", "#"); + generateXDocs(files, jsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.SCHEMA, CodegenConstants.MODEL_DOCS, schemaData, generateModelDocumentation); } private void generateSchema(List files, CodegenSchema schema, String jsonPath) { @@ -468,16 +474,20 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI endpointMap.put("path", pathKey); generateXs(files, operationJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.OPERATION, CodegenConstants.APIS, endpointMap, true); if (operation.pathParameters != null) { - generateSchema(files, operation.pathParameters, operationJsonPath + "/" + "PathParameters"); + String objectJsonPath = operationJsonPath + "/" + "PathParameters"; + generateSchema(files, operation.pathParameters, objectJsonPath); } if (operation.queryParameters != null) { - generateSchema(files, operation.queryParameters, operationJsonPath + "/" + "QueryParameters"); + String objectJsonPath = operationJsonPath + "/" + "QueryParameters"; + generateSchema(files, operation.queryParameters, objectJsonPath); } if (operation.headerParameters != null) { - generateSchema(files, operation.headerParameters, operationJsonPath + "/" + "HeaderParameters"); + String objectJsonPath = operationJsonPath + "/" + "HeaderParameters"; + generateSchema(files, operation.headerParameters, objectJsonPath); } if (operation.cookieParameters != null) { - generateSchema(files, operation.cookieParameters, operationJsonPath + "/" + "CookieParameters"); + String objectJsonPath = operationJsonPath + "/" + "CookieParameters"; + generateSchema(files, operation.cookieParameters, objectJsonPath); } // operation docs @@ -491,8 +501,8 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI endpointInfo.put("packageName", generator.packageName()); endpointInfo.put("apiPackage", generator.apiPackage()); endpointInfo.put("headerSize", "#"); - endpointInfo.put("complexTypePrefix", "../../components/schema/"); endpointInfo.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); + endpointInfo.put("docRoot", "../../"); generateXDocs(files, operationJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.OPERATION, CodegenConstants.APIS, endpointInfo, true); // paths.some_path.security.security_requirement_0.py @@ -504,7 +514,7 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI // paths.some_path.post.request_body.py, only written if there is no refModule if (operation.requestBody != null) { String requestBodyJsonPath = operationJsonPath + "/requestBody"; - generateRequestBody(files, operation.requestBody, requestBodyJsonPath); + generateRequestBody(files, operation.requestBody, requestBodyJsonPath, "../../../../"); } if (operation.servers != null) { @@ -533,7 +543,7 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI String code = responseEntry.getKey(); CodegenResponse response = responseEntry.getValue(); String responseJsonPath = responsesJsonPath + "/" + code; - generateResponse(files, response, responseJsonPath); + generateResponse(files, response, responseJsonPath, "../../../../../"); } } @@ -578,7 +588,7 @@ private void generatePaths(List files, TreeMap files, LinkedHashMap content, String jsonPath) { + private void generateContent(List files, LinkedHashMap content, String jsonPath, String docRoot) { String contentJsonPath = jsonPath + "/content"; boolean schemaExists = false; @@ -594,6 +604,7 @@ private void generateContent(List files, LinkedHashMap contentTypeTemplateInfo = generator.jsonPathTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.CONTENT_TYPE); if (contentTypeTemplateInfo == null || contentTypeTemplateInfo.isEmpty()) { @@ -644,7 +655,7 @@ private void generateContent(List files, LinkedHashMap files, CodegenResponse response, String jsonPath) { + private void generateResponse(List files, CodegenResponse response, String jsonPath, String docRoot) { Map templateData = new HashMap<>(); templateData.put("packageName", generator.packageName()); templateData.put("response", response); @@ -658,14 +669,15 @@ private void generateResponse(List files, CodegenResponse response, String String headerName = headerInfo.getKey(); CodegenHeader header = headerInfo.getValue(); String headerJsonPath = headersJsonPath + "/" + headerName; - generateHeader(files, header, headerJsonPath); + generateHeader(files, header, headerJsonPath, docRoot + "../../"); } // synthetic json path - generateSchema(files, response.headersObjectSchema, jsonPath + "/" + "HeaderParameters"); + String headersObjectJsonPath = jsonPath + "/" + "HeaderParameters"; + generateSchema(files, response.headersObjectSchema, headersObjectJsonPath); } LinkedHashMap content = response.content; if (content != null && !content.isEmpty()) { - generateContent(files, content, jsonPath); + generateContent(files, content, jsonPath, docRoot + "../"); } } @@ -684,11 +696,11 @@ private TreeMap generateResponses(List files) { String sourceJsonPath = responsesJsonPath + "/" + componentName; CodegenResponse response = generator.fromResponse(apiResponse, sourceJsonPath); responses.put(componentName, response); - generateResponse(files, response, sourceJsonPath); + generateResponse(files, response, sourceJsonPath, "../../"); Map templateData = new HashMap<>(); templateData.put("packageName", generator.packageName()); - templateData.put("complexTypePrefix", "../../components/schema/"); + templateData.put("docRoot", "../../"); templateData.put("headerSize", "#"); templateData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); templateData.put("response", response); @@ -698,7 +710,7 @@ private TreeMap generateResponses(List files) { return responses; } - private void generateRequestBody(List files, CodegenRequestBody requestBody, String jsonPath) { + private void generateRequestBody(List files, CodegenRequestBody requestBody, String jsonPath, String docRoot) { Map templateData = new HashMap<>(); templateData.put("packageName", generator.packageName()); templateData.put("requestBody", requestBody); @@ -707,7 +719,7 @@ private void generateRequestBody(List files, CodegenRequestBody requestBod // schemas LinkedHashMap content = requestBody.content; if (content != null && !content.isEmpty()) { - generateContent(files, content, jsonPath); + generateContent(files, content, jsonPath, docRoot); } } @@ -742,7 +754,6 @@ private TreeMap generateSecuritySchemes(List())); - templateData.put("complexTypePrefix", "../../components/schema/"); // TODO add a flag to turn this off generateXDocs(files, sourceJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.SECURITY_SCHEME, CodegenConstants.SECURITY_SCHEME_DOCS, templateData, true); } @@ -767,7 +778,7 @@ private TreeMap generateRequestBodies(List fil CodegenRequestBody requestBody = generator.fromRequestBody(specRequestBody, sourceJsonPath); requestBodies.put(componentName, requestBody); - generateRequestBody(files, requestBody, sourceJsonPath); + generateRequestBody(files, requestBody, sourceJsonPath, "../../"); // doc generation Map templateData = new HashMap<>(); @@ -775,7 +786,7 @@ private TreeMap generateRequestBodies(List fil templateData.put("requestBody", requestBody); templateData.put("headerSize", "#"); templateData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); - templateData.put("complexTypePrefix", "../../components/schema/"); + templateData.put("docRoot", "../../"); // todo add flag to turn this off generateXDocs(files, sourceJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.REQUEST_BODY, CodegenConstants.REQUEST_BODY_DOCS, templateData, true); } @@ -795,10 +806,11 @@ private void generateParameter(List files, CodegenParameter parameter, Str if (schema != null) { String schemaJsonPath = parameter.getSetSchemaJsonPath(jsonPath); generateSchema(files, schema, schemaJsonPath); + generateSchemaDocumentation(files, schema, schemaJsonPath, "../../../"); } LinkedHashMap content = parameter.content; if (schema == null && content != null && !content.isEmpty()) { - generateContent(files, content, jsonPath); + generateContent(files, content, jsonPath, "../../../"); } } @@ -824,14 +836,14 @@ private TreeMap generateParameters(List files) { templateData.put("parameter", parameter); templateData.put("headerSize", "#"); templateData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); - templateData.put("complexTypePrefix", "../../components/schema/"); + templateData.put("docRoot", "../../"); // todo add flag to turn this off generateXDocs(files, parameterJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.PARAMETER, CodegenConstants.PARAMETER_DOCS, templateData, true); } return parameters; } - private void generateHeader(List files, CodegenHeader header, String jsonPath) { + private void generateHeader(List files, CodegenHeader header, String jsonPath, String docRoot) { Map headertTemplateData = new HashMap<>(); headertTemplateData.put("packageName", generator.packageName()); headertTemplateData.put("header", header); @@ -844,10 +856,11 @@ private void generateHeader(List files, CodegenHeader header, String jsonP if (schema != null) { String schemaJsonPath = header.getSetSchemaJsonPath(jsonPath); generateSchema(files, schema, schemaJsonPath); + generateSchemaDocumentation(files, schema, schemaJsonPath, docRoot + "../"); } LinkedHashMap content = header.content; if (schema == null && content != null && !content.isEmpty()) { - generateContent(files, content, jsonPath); + generateContent(files, content, jsonPath, docRoot + "../"); } } @@ -927,14 +940,13 @@ private TreeMap generateHeaders(List files) { CodegenHeader header = generator.fromHeader(specHeader, sourceJsonPath); headers.put(componentName, header); - generateHeader(files, header, sourceJsonPath); + generateHeader(files, header, sourceJsonPath, "../../"); // documentation Map templateData = new HashMap<>(); templateData.put("packageName", generator.packageName()); templateData.put("header", header); templateData.put("headerSize", "#"); - templateData.put("complexTypePrefix", "../../components/schema/"); templateData.put("docRoot", "../../"); templateData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); // TODO add flag to turn this off @@ -1006,15 +1018,13 @@ protected TreeMap generateSchemas(List files) { schemaData.put("packageName", generator.packageName()); schemaData.put("schema", schema); schemaData.putAll(generator.additionalProperties()); - schemaData.put("complexTypePrefix", ""); if (generateModelTests) { generateSchemaTests(files, schemaData, componentName); } // to generate model documentation files if (generateModelDocumentation) { - schemaData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); - generateSchemaDocumentation(files, schemaData, jsonPath); + generateSchemaDocumentation(files, schema, jsonPath, "../../"); } } catch (Exception e) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index f49f74437b9..63910aa0b06 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2212,6 +2212,10 @@ protected LinkedHashSet getTypes(Schema schema) { return types; } + private String schemaPathFromDocRoot(String moduleLocation) { + return moduleLocation.replace('.', File.separatorChar).substring(packageName.length()+1); + } + /** * Convert OAS Property object to Codegen Property object. *

@@ -2237,6 +2241,13 @@ public CodegenSchema fromSchema(Schema p, String sourceJsonPath, String currentJ CodegenSchema property = codegenSchemaCache.computeIfAbsent(ck, s -> new CodegenSchema()); property.instanceType = "schema"; property.jsonPath = currentJsonPath; + if (currentJsonPath != null) { + property.moduleLocation = getModuleLocation(sourceJsonPath); + property.pathFromDocRoot = schemaPathFromDocRoot(property.moduleLocation); + if (currentJsonPath != sourceJsonPath) { + property.isInline = true; + } + } String ref = p.get$ref(); // put toExampleValue in a try-catch block to log the error as example values are not critical @@ -2670,7 +2681,9 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath) { bodySchema.set$ref(bodySchemaRef); requestBodySchemaProperties.put(contentType, bodySchema); } - requestBodySchema = getXParametersSchema(requestBodySchemaProperties, new ArrayList(), jsonPath, jsonPath + "/RequestBodySchema"); + // current json path used because + // schemas are imported into a python file generated from that jsonPath + requestBodySchema = getXParametersSchema(requestBodySchemaProperties, new ArrayList(), jsonPath, jsonPath); } HashMap pathParametersProperties = new HashMap<>(); @@ -2837,6 +2850,19 @@ public List> fromSecurity(List< return securityRequirements; } + private String responsePathFromDocRoot(String sourceJsonPath) { + if (sourceJsonPath.startsWith("#/components/responses")) { + String moduleLocation = getModuleLocation(sourceJsonPath); + return moduleLocation.replace('.', File.separatorChar).substring(packageName.length()+1); + } + // otherwise response is inline and the operation file is the location + // #/paths/somePath/verb/responses/200 + int secondToLastSlashIndex = sourceJsonPath.lastIndexOf("/", sourceJsonPath.lastIndexOf("/")-1); + String sourceJsonPathSubstring = sourceJsonPath.substring(0, secondToLastSlashIndex); + String moduleLocation = getModuleLocation(sourceJsonPathSubstring); + return moduleLocation.replace('.', File.separatorChar).substring(packageName.length()+1); + } + /** * Convert OAS Response object to Codegen Response object * @@ -2905,7 +2931,8 @@ public CodegenResponse fromResponse(ApiResponse response, String sourceJsonPath) Map finalVendorExtensions = vendorExtensions; TreeSet finalImports = imports; CodegenSchema headersObjectSchema = getXParametersSchema(headersProperties, headersRequired, sourceJsonPath + "/" + "Headers", sourceJsonPath + "/" + "Headers"); - r = new CodegenResponse(jsonPathPiece, headers, headersObjectSchema, description, finalVendorExtensions, content, refInfo, finalImports, componentModule); + String pathFromDocRoot = responsePathFromDocRoot(sourceJsonPath); + r = new CodegenResponse(jsonPathPiece, headers, headersObjectSchema, description, finalVendorExtensions, content, refInfo, finalImports, componentModule, pathFromDocRoot); codegenResponseCache.put(sourceJsonPath, r); return r; } @@ -4467,6 +4494,13 @@ private void setSchemaLocationInfo(String ref, String sourceJsonPath, String cur } } + private String getModuleLocation(String ref) { + String filePath = getFilepath(ref); + String prefix = outputFolder + File.separatorChar + "src" + File.separatorChar; + String localFilepath = filePath.substring(prefix.length()); + return localFilepath.replaceAll(String.valueOf(File.separatorChar), "."); + } + private String getRefModuleLocation(String ref) { String filePath = getFilepath(ref); String prefix = outputFolder + File.separatorChar + "src" + File.separatorChar; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java index 80c6fa5c567..4aee926325b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java @@ -30,6 +30,7 @@ public class CodegenResponse { public final Map vendorExtensions; public final TreeSet imports; public final boolean componentModule; + public final String pathFromDocRoot; public CodegenResponse getSelfOrDeepestRef() { if (refInfo == null) { @@ -42,7 +43,7 @@ public CodegenResponse getSelfOrDeepestRef() { return refObject; } - public CodegenResponse(CodegenKey jsonPathPiece, Map headers, CodegenSchema headersObjectSchema, String description, Map vendorExtensions, LinkedHashMap content, CodegenRefInfo refInfo, TreeSet imports, boolean componentModule) { + public CodegenResponse(CodegenKey jsonPathPiece, Map headers, CodegenSchema headersObjectSchema, String description, Map vendorExtensions, LinkedHashMap content, CodegenRefInfo refInfo, TreeSet imports, boolean componentModule, String pathFromDocRoot) { this.jsonPathPiece = jsonPathPiece; this.headers = headers; this.headersObjectSchema = headersObjectSchema; @@ -52,6 +53,7 @@ public CodegenResponse(CodegenKey jsonPathPiece, Map head this.refInfo = refInfo; this.imports = imports; this.componentModule = componentModule; + this.pathFromDocRoot = pathFromDocRoot; } /** diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java index 6cdf15c5025..01e126ab7fd 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java @@ -81,6 +81,7 @@ public class CodegenSchema { public boolean isBooleanSchemaFalse; // supports boolean schemas // Extra needed fields + // stores the mapping value schema, used to provide a value type for the object output class public CodegenSchema mapValueSchema; public boolean componentModule; public TreeSet imports; @@ -100,6 +101,11 @@ public class CodegenSchema { public String instanceType; // used to store the expanded schemas that define a codegenschema in code file private ArrayList allSchemas = null; + // converts sourceJsonPath into code file moduleLocation for docs + public String moduleLocation = null; + // stores the location of the documentation file + public String pathFromDocRoot = null; + public boolean isInline = false; public boolean hasValidation() { return maxItems != null || minItems != null || minProperties != null || maxProperties != null || minLength != null || maxLength != null || multipleOf != null || patternInfo != null || minimum != null || maximum != null || exclusiveMinimum != null || exclusiveMaximum != null || uniqueItems != null; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/LinkedHashMapWithContext.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/LinkedHashMapWithContext.java index ec4ba42a4b8..689b0034469 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/LinkedHashMapWithContext.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/LinkedHashMapWithContext.java @@ -22,6 +22,18 @@ public boolean hasValidKey() { return false; } + public boolean hasInvalidKey() { + if (this.isEmpty()) { + return false; + } + for (CodegenKey key: this.keySet()) { + if (!key.isValid) { + return true; + } + } + return false; + } + public void setAllAreInline(boolean allAreInline) { this.internalallAreInline = allAreInline; } diff --git a/src/main/resources/python/README.hbs b/src/main/resources/python/README.hbs index 68812a8dfef..98408f78b38 100644 --- a/src/main/resources/python/README.hbs +++ b/src/main/resources/python/README.hbs @@ -120,7 +120,7 @@ N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. See te below accessors for string data: -- type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ +- type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -139,7 +139,7 @@ For example the string payload '2023-12-20' is validates to both of these schema format: date ``` Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data -is stored as a string, with a date accessor, instance.as_date_ +is stored as a string, with a date accessor, instance.as_date ## Getting Started diff --git a/src/main/resources/python/_helper_schema_python_types.hbs b/src/main/resources/python/_helper_schema_python_types.hbs index 69ad8717f68..23f6f5d622e 100644 --- a/src/main/resources/python/_helper_schema_python_types.hbs +++ b/src/main/resources/python/_helper_schema_python_types.hbs @@ -1 +1 @@ -{{#eq types null}}dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}list, tuple{{/eq}}{{#eq this "object"}}dict, schemas.immutabledict{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}str{{/neq}}{{#eq ../format "date"}}, datetime.date{{/eq}}{{#eq ../format "date-time"}}, datetime.datetime{{/eq}}{{#eq ../format "uuid"}}, uuid.UUID{{/eq}}{{#eq ../format "binary"}}bytes, io.FileIO, io.BufferedReader{{/eq}}{{/eq}}{{#eq this "integer"}}int{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}bool{{/eq}}{{/each}}{{/eq}} \ No newline at end of file +{{#eq types null}}dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}list, tuple{{/eq}}{{#eq this "object"}}dict, schemas.immutabledict{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}str{{/neq}}{{#eq ../format "date"}}, datetime.date{{/eq}}{{#eq ../format "date-time"}}, datetime.datetime{{/eq}}{{#eq ../format "uuid"}}, uuid.UUID{{/eq}}{{#eq ../format "binary"}}bytes, io.FileIO, io.BufferedReader{{/eq}}{{/eq}}{{#eq this "integer"}}int{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}bool{{/eq}}{{/each}}{{/eq}}{{#if optional}}, schemas.Unset{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/api_client.hbs b/src/main/resources/python/api_client.hbs index 1c20ab0fe4d..91f897d5eb2 100644 --- a/src/main/resources/python/api_client.hbs +++ b/src/main/resources/python/api_client.hbs @@ -1144,7 +1144,7 @@ class ApiClient: return for security_scheme_component_name, scope_names in security_requirement_object.items(): scope_names = typing.cast(typing.Tuple[str, ...], scope_names) - security_scheme_component_name = typing.cast(typing_extensions.Literal[ + security_scheme_component_name = typing.cast(typing.Literal[ {{#each securitySchemes}} '{{@key}}', {{/each}} @@ -1272,7 +1272,7 @@ class Api: ) -class SerializedRequestBody(typing_extensions.TypedDict, total=False): +class SerializedRequestBody(typing.TypedDict, total=False): body: typing.Union[str, bytes] fields: typing.Tuple[rest.RequestField, ...] diff --git a/src/main/resources/python/apis/apis_path_to_api.hbs b/src/main/resources/python/apis/apis_path_to_api.hbs index c369c2b0a55..bff526ea597 100644 --- a/src/main/resources/python/apis/apis_path_to_api.hbs +++ b/src/main/resources/python/apis/apis_path_to_api.hbs @@ -5,7 +5,7 @@ import typing_extensions from {{packageName}}.apis.paths.{{@key.snakeCase}} import {{@key.camelCase}} {{/each}} -PathToApi = typing_extensions.TypedDict( +PathToApi = typing.TypedDict( 'PathToApi', { {{#each paths}} diff --git a/src/main/resources/python/apis/apis_tag_to_api.hbs b/src/main/resources/python/apis/apis_tag_to_api.hbs index cb3f7c28b6b..31c0476292b 100644 --- a/src/main/resources/python/apis/apis_tag_to_api.hbs +++ b/src/main/resources/python/apis/apis_tag_to_api.hbs @@ -5,7 +5,7 @@ import typing_extensions from {{packageName}}.apis.tags.{{@key.moduleName}} import {{@key.className}} {{/each}} -TagToApi = typing_extensions.TypedDict( +TagToApi = typing.TypedDict( 'TagToApi', { {{#each tagToPathToOperations}} diff --git a/src/main/resources/python/components/_helper_content_schema_output_type.hbs b/src/main/resources/python/components/_helper_content_schema_output_type.hbs index 035e50dbdc3..a68f70e4b0e 100644 --- a/src/main/resources/python/components/_helper_content_schema_output_type.hbs +++ b/src/main/resources/python/components/_helper_content_schema_output_type.hbs @@ -1,13 +1,13 @@ {{#if paramName}} {{#if refInfo.refClass}} -{{> components/schemas/_helper_schema_output_ref_type mode="typehint" key=paramName fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") }} +{{> components/schemas/types/schema_output_type mode="typehint" key=paramName fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") }} {{else}} -{{> components/schemas/_helper_schema_output_type mode="typehint" key=paramName fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") }} +{{> components/schemas/types/schema_output_type mode="typehint" key=paramName fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") }} {{/if}} {{else}} {{#if refInfo.refClass}} -{{> components/schemas/_helper_schema_output_ref_type mode="unprefixed" fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") endChar="," }} +{{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") endChar="," }} {{else}} -{{> components/schemas/_helper_schema_output_type mode="unprefixed" fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") endChar="," }} +{{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule=(join modulePrefix jsonPathPiece.snakeCase "_") endChar="," }} {{/if}} {{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/responses/response_doc.hbs b/src/main/resources/python/components/responses/response_doc.hbs index 4f541add6b6..7ae65fcff22 100644 --- a/src/main/resources/python/components/responses/response_doc.hbs +++ b/src/main/resources/python/components/responses/response_doc.hbs @@ -13,22 +13,26 @@ {{description}} {{/if}} -{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "response_cls") }} +{{#if refInfo}} +{{headerSize}}# Ref Response Info +Ref Response | ApiResponse +------------ | ----------- +[{{refInfo.refModule}}.{{refInfo.refClass}}]({{#with refInfo.ref}}{{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.anchorPiece}}{{/with}}) | [{{refInfo.refModule}}.ApiResponse]({{#with refInfo.ref}}{{docRoot}}{{pathFromDocRoot}}.md#apiresponse{{/with}}) +{{else}} +{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "ApiResponse") }} Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -{{#if refInfo}} - {{#with getDeepestRef}} -body | {{#unless content}}Unset{{else}}{{#if hasContentSchema}}{{#gt content.size 1}}typing.Union[{{/gt}}{{#each content}}{{#if this.schema}}[{{../../refInfo.refClass}}.content.{{@key.snakeCase}}.schema](../../components/responses/{{../../refInfo.refModule}}.md#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "content" @key this.schema.jsonPathPiece) }}){{else}}Unset{{/if}}{{#unless @last}}, {{/unless}}{{/each}}{{#gt content.size 1}}]{{/gt}}{{else}}Unset{{/if}}{{/unless}} | {{#unless content}}body was not defined{{else}}{{#unless hasContentSchema}}body was not defined{{/unless}}{{/unless}} | -headers | {{#unless headers}}Unset{{else}}[{{../refInfo.refClass}}.Headers](../../components/responses/{{../refInfo.refModule}}.md#headers){{/unless}} | {{#unless headers}}headers were not defined{{/unless}} | - {{/with}} -{{else}} -{{#if content}} -[body](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "body") }}) | {{#if hasContentSchema}}{{#gt content.size 1}}typing.Union[{{/gt}}{{#each content}}{{#if this.schema}}[content.{{@key.snakeCase}}.schema](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "content" @key this.schema.jsonPathPiece) }}){{else}}Unset{{/if}}{{#unless @last}}, {{/unless}}{{/each}}{{#gt content.size 1}}]{{/gt}}{{else}}Unset{{/if}} | {{#unless hasContentSchema}}body was not defined{{/unless}} | -{{else}} + {{#if content}} +[body](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "body") }}) | {{#if hasContentSchema}}{{#gt content.size 1}}typing.Union[{{/gt}}{{#each content}}{{#with this.schema}}{{> components/schemas/types/docschema_output_types identifierPieces=(append identifierPieces "content" ../@key jsonPathPiece) }}{{else}}Unset{{/with}}{{#unless @last}}, {{/unless}}{{/each}}{{#gt content.size 1}}]{{/gt}}{{else}}Unset{{/if}} | {{#unless hasContentSchema}}body was not defined{{/unless}} | + {{else}} body | Unset | body was not defined | -{{/if}} -{{#if headers}}[headers](#headers){{else}}headers{{/if}} | {{#unless headers}}Unset{{else}}[Headers](#headers){{/unless}} | {{#unless headers}}headers were not defined{{/unless}} | + {{/if}} + {{#if headers}} +[headers](#headers) | [HeadersDict](#headers-headersdict) | | + {{else}} +headers | Unset | headers were not defined | + {{/if}} {{#if content}} {{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "Body") }} @@ -38,47 +42,6 @@ Content-Type | Schema "{{@key.original}}" | {{#if this.schema}}[content.{{@key.snakeCase}}.{{this.schema.jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "content" @key this.schema.jsonPathPiece) }}){{else}}no schema defined{{/if}} {{/each}} {{/if}} - {{#if headers}} - -{{headerSize}}# Headers -Key | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- - {{#each headers}} - {{#with this}} - {{#if refInfo}} - {{#with getDeepestRef}} - {{#if schema}} - {{#with schema}} -{{../@key}} | [{{../../refInfo.refClass}}.schema]({{#unless ../../../componentModule}}../{{/unless}}../../components/headers/{{../../refInfo.refModule}}.md#schema) | | {{#unless required}}optional{{/unless}} - {{/with}} - {{else}} - {{#each content}} - {{#with this}} - {{#with schema}} -{{../../@key}} | [{{../../../refInfo.refClass}}.content.{{../@key.snakeCase}}.{{jsonPathPiece.snakeCase}}]({{#unless ../../../../componentModule}}../{{/unless}}../../components/headers/{{../../../refInfo.refModule}}.md#content-{{../@key.anchorPiece}}-{{jsonPathPiece.anchorPiece}}) | | {{#unless required}}optional{{/unless}} - {{/with}} - {{/with}} - {{/each}} - {{/if}} - {{/with}} - {{else}} - {{#if schema}} - {{#with schema}} -{{../@key}} | [headers.{{../jsonPathPiece.snakeCase}}.schema](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "headers" ../jsonPathPiece jsonPathPiece) }}) | | {{#unless required}}optional{{/unless}} - {{/with}} - {{else}} - {{#each content}} - {{#with this}} - {{#with schema}} -{{../../@key}} | [headers.{{../../jsonPathPiece.snakeCase}}.content.{{../@key.snakeCase}}.{{jsonPathPiece.snakeCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "headers" ../../jsonPathPiece "content" ../@key jsonPathPiece) }}) | | {{#unless required}}optional{{/unless}} - {{/with}} - {{/with}} - {{/each}} - {{/if}} - {{/if}} - {{/with}} - {{/each}} - {{/if}} {{#and content hasContentSchema}} {{headerSize}}# Body Details @@ -88,6 +51,11 @@ Key | Accessed Type | Description | Notes {{/with}} {{/each}} {{/and}} + {{#with headersObjectSchema}} + +{{headerSize}}# Headers +{{> components/schemas/schema_doc schema=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} + {{/with}} {{#and headers hasInlineHeader}} {{headerSize}}# Header Details diff --git a/src/main/resources/python/components/schemas/_helper_new.hbs b/src/main/resources/python/components/schemas/__new__.hbs similarity index 75% rename from src/main/resources/python/components/schemas/_helper_new.hbs rename to src/main/resources/python/components/schemas/__new__.hbs index a188d0ea143..532fc5eee73 100644 --- a/src/main/resources/python/components/schemas/_helper_new.hbs +++ b/src/main/resources/python/components/schemas/__new__.hbs @@ -1,28 +1,22 @@ {{! array and object output classes need this new method to ensure that validation is run when making instances }} {{#eq instanceType "arrayOutputType" }} -def __new__(cls, arg: {{arrayInputJsonPathPiece.camelCase}}, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): +def __new__(cls, arg: typing.Union[{{arrayInputJsonPathPiece.camelCase}}, {{arrayOutputJsonPathPiece.camelCase}}], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): return {{jsonPathPiece.camelCase}}.validate(arg, configuration=configuration) {{else}} {{#eq instanceType "propertiesOutputType" }} {{#or requiredProperties optionalProperties}} -@staticmethod -def from_dict_( - arg: {{mapInputJsonPathPiece.camelCase}}, - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> {{mapOutputJsonPathPiece.camelCase}}: - return {{jsonPathPiece.camelCase}}.validate(arg, configuration=configuration) def __new__( cls, *, {{#each requiredProperties}} {{#if @key.isValid}} - {{> components/schemas/_helper_schema_io_type paramName=@key.original fullRefModule="" endChar="," }} + {{> components/schemas/types/schema_io_type paramName=@key.original fullRefModule="" endChar="," }} {{/if}} {{/each}} {{#each optionalProperties}} {{#if @key.isValid}} - {{> components/schemas/_helper_schema_io_type paramName=@key.original fullRefModule="" endChar="," optional=true }} + {{> components/schemas/types/schema_io_type paramName=@key.original fullRefModule="" endChar="," optional=true }} {{/if}} {{/each}} configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, @@ -33,7 +27,7 @@ def __new__( **kwargs: schemas.INPUT_TYPES_ALL, {{else}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName="**kwargs" fullRefModule="" endChar="," }} + {{> components/schemas/types/schema_io_type paramName="**kwargs" fullRefModule="" endChar="," }} {{/with}} {{/if}} {{/if}} @@ -87,7 +81,7 @@ def __new__( **kwargs: schemas.INPUT_TYPES_ALL, {{else}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName="**kwargs" fullRefModule="" endChar="," }} + {{> components/schemas/types/schema_io_type paramName="**kwargs" fullRefModule="" endChar="," }} {{/with}} {{/if}} {{/unless}} @@ -95,21 +89,30 @@ def __new__( **kwargs: schemas.INPUT_TYPES_ALL, {{/if}} ): - {{#if additionalProperties}} - {{#if additionalProperties.isBooleanSchemaFalse}} + {{#if additionalProperties}} + {{#if additionalProperties.isBooleanSchemaFalse}} return {{jsonPathPiece.camelCase}}.validate(arg, configuration=configuration_) - {{else}} + {{else}} used_kwargs = typing.cast({{mapInputJsonPathPiece.camelCase}}, kwargs) return {{jsonPathPiece.camelCase}}.validate(used_kwargs, configuration=configuration_) - {{/if}} - {{else}} + {{/if}} + {{else}} used_kwargs = typing.cast({{mapInputJsonPathPiece.camelCase}}, kwargs) return {{jsonPathPiece.camelCase}}.validate(used_kwargs, configuration=configuration_) - {{/if}} + {{/if}} + {{/or}} + {{#or mapInputJsonPathPiece mapOutputJsonPathPiece}} @staticmethod def from_dict_( - arg: {{mapInputJsonPathPiece.camelCase}}, + {{#and mapInputJsonPathPiece mapOutputJsonPathPiece}} + arg: typing.Union[ + {{mapInputJsonPathPiece.camelCase}}, + {{mapOutputJsonPathPiece.camelCase}} + ], + {{else}} + arg: {{#if mapInputJsonPathPiece}}{{mapInputJsonPathPiece.camelCase}}{{else}}{{mapOutputJsonPathPiece.camelCase}}{{/if}}, + {{/and}} configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None ) -> {{mapOutputJsonPathPiece.camelCase}}: return {{jsonPathPiece.camelCase}}.validate(arg, configuration=configuration) diff --git a/src/main/resources/python/components/schemas/__refclass_partial.hbs b/src/main/resources/python/components/schemas/__refclass_partial.hbs new file mode 100644 index 00000000000..f1c3f2d24fa --- /dev/null +++ b/src/main/resources/python/components/schemas/__refclass_partial.hbs @@ -0,0 +1 @@ +[**{{#neq refInfo.refModule null}}{{refInfo.refModule}}.{{/neq}}{{refInfo.refClass}}**]({{#eq refInfo.refModule null}}#top{{else}}{{#with refInfo.ref}}{{docRoot}}{{pathFromDocRoot}}.md{{/with}}{{/eq}}) \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_allof_type.hbs b/src/main/resources/python/components/schemas/_allof_type.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_allof_type.hbs rename to src/main/resources/python/components/schemas/_allof_type.hbs diff --git a/src/main/resources/python/components/schemas/_helper_anyof_type.hbs b/src/main/resources/python/components/schemas/_anyof_type.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_anyof_type.hbs rename to src/main/resources/python/components/schemas/_anyof_type.hbs diff --git a/src/main/resources/python/components/schemas/_array_input_type.hbs b/src/main/resources/python/components/schemas/_array_input_type.hbs new file mode 100644 index 00000000000..e7cdaca8c5a --- /dev/null +++ b/src/main/resources/python/components/schemas/_array_input_type.hbs @@ -0,0 +1,15 @@ +{{#if items}} +{{arrayInputJsonPathPiece.camelCase}} = typing.Union[ + typing.List[ + {{#with items}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} + {{/with}} + ], + typing.Tuple[ + {{#with items}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} + ... + {{/with}} + ] +] +{{/if}} diff --git a/src/main/resources/python/components/schemas/_array_output_type.hbs b/src/main/resources/python/components/schemas/_array_output_type.hbs new file mode 100644 index 00000000000..3c259e4385c --- /dev/null +++ b/src/main/resources/python/components/schemas/_array_output_type.hbs @@ -0,0 +1,21 @@ + + +class {{arrayOutputJsonPathPiece.camelCase}}( + typing.Tuple[ + {{#with items}} + {{#if refInfo.refClass}} + {{#eq refModule null}} + {{! self reference }} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," selfReference=true }} + {{else}} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} + {{/eq}} + {{else}} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} + {{/if}} + {{/with}} + ... + ] +): + + {{> components/schemas/__new__ }} diff --git a/src/main/resources/python/components/schemas/_helper_enum_class.hbs b/src/main/resources/python/components/schemas/_enum_class.hbs similarity index 74% rename from src/main/resources/python/components/schemas/_helper_enum_class.hbs rename to src/main/resources/python/components/schemas/_enum_class.hbs index 7a8a2cf8711..86148cfa6a3 100644 --- a/src/main/resources/python/components/schemas/_helper_enum_class.hbs +++ b/src/main/resources/python/components/schemas/_enum_class.hbs @@ -6,7 +6,7 @@ class {{enumInfo.jsonPathPiece.camelCase}}: @schemas.classproperty {{#eq @key.type "string"}} - def {{this}}(cls) -> typing_extensions.Literal["{{{@key.value}}}"]: + def {{this}}(cls) -> typing.Literal["{{{@key.value}}}"]: return {{jsonPathPiece.camelCase}}.validate("{{{@key.value}}}") {{/eq}} {{#eq @key.type "number"}} @@ -14,20 +14,20 @@ class {{enumInfo.jsonPathPiece.camelCase}}: return {{jsonPathPiece.camelCase}}.validate({{{@key.value}}}) {{/eq}} {{#eq @key.type "integer"}} - def {{this}}(cls) -> typing_extensions.Literal[{{{@key.value}}}]: + def {{this}}(cls) -> typing.Literal[{{{@key.value}}}]: return {{jsonPathPiece.camelCase}}.validate({{{@key.value}}}) {{/eq}} {{#eq @key.type "boolean"}} {{#if @key.value}} - def {{this}}(cls) -> typing_extensions.Literal[True]: + def {{this}}(cls) -> typing.Literal[True]: return {{jsonPathPiece.camelCase}}.validate(True) {{else}} - def {{this}}(cls) -> typing_extensions.Literal[False]: + def {{this}}(cls) -> typing.Literal[False]: return {{jsonPathPiece.camelCase}}.validate(False) {{/if}} {{/eq}} {{#eq @key.type "null"}} - def {{this}}(cls) -> typing_extensions.Literal[None]: + def {{this}}(cls) -> typing.Literal[None]: return {{jsonPathPiece.camelCase}}.validate(None) {{/eq}} {{/each}} diff --git a/src/main/resources/python/components/schemas/_helper_array_input_type.hbs b/src/main/resources/python/components/schemas/_helper_array_input_type.hbs deleted file mode 100644 index e39e92e43e4..00000000000 --- a/src/main/resources/python/components/schemas/_helper_array_input_type.hbs +++ /dev/null @@ -1,15 +0,0 @@ -{{#if items}} -{{arrayInputJsonPathPiece.camelCase}} = typing.Union[ - typing.List[ - {{#with items}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} - {{/with}} - ], - typing.Tuple[ - {{#with items}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} - ... - {{/with}} - ] -] -{{/if}} diff --git a/src/main/resources/python/components/schemas/_helper_array_output_type.hbs b/src/main/resources/python/components/schemas/_helper_array_output_type.hbs deleted file mode 100644 index 52c0f3d6e1b..00000000000 --- a/src/main/resources/python/components/schemas/_helper_array_output_type.hbs +++ /dev/null @@ -1,21 +0,0 @@ - - -class {{arrayOutputJsonPathPiece.camelCase}}( - typing.Tuple[ - {{#with items}} - {{#if refInfo.refClass}} - {{#eq refModule null}} - {{! self reference }} - {{> components/schemas/_helper_schema_output_ref_type mode="unprefixed" fullRefModule="" endChar="," selfReference=true }} - {{else}} - {{> components/schemas/_helper_schema_output_ref_type mode="unprefixed" fullRefModule="" endChar="," }} - {{/eq}} - {{else}} - {{> components/schemas/_helper_schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} - {{/if}} - {{/with}} - ... - ] -): - - {{> components/schemas/_helper_new }} diff --git a/src/main/resources/python/components/schemas/_helper_identifier_suffix.hbs b/src/main/resources/python/components/schemas/_helper_identifier_suffix.hbs deleted file mode 100644 index 44a22967ff0..00000000000 --- a/src/main/resources/python/components/schemas/_helper_identifier_suffix.hbs +++ /dev/null @@ -1 +0,0 @@ -{{identifierSuffix}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_object_get_property.hbs b/src/main/resources/python/components/schemas/_helper_object_get_property.hbs deleted file mode 100644 index 606454d0397..00000000000 --- a/src/main/resources/python/components/schemas/_helper_object_get_property.hbs +++ /dev/null @@ -1,22 +0,0 @@ -{{#if required}} -return typing.cast( -{{#if refInfo.refClass}} - {{> components/schemas/_helper_schema_output_ref_type fullRefModule="" mode="unprefixed" endChar="," }} -{{else}} - {{> components/schemas/_helper_schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} -{{/if}} - self.__getitem__("{{{@key.original}}}") -) -{{else}} -val = self.get("{{{@key.original}}}", schemas.unset) -if isinstance(val, schemas.Unset): - return val -return typing.cast( -{{#if refInfo.refClass}} - {{> components/schemas/_helper_schema_output_ref_type fullRefModule="" mode="unprefixed" endChar="," }} -{{else}} - {{> components/schemas/_helper_schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} -{{/if}} - val -) -{{/if}} diff --git a/src/main/resources/python/components/schemas/_helper_refclass_partial.hbs b/src/main/resources/python/components/schemas/_helper_refclass_partial.hbs deleted file mode 100644 index c21b330f81d..00000000000 --- a/src/main/resources/python/components/schemas/_helper_refclass_partial.hbs +++ /dev/null @@ -1 +0,0 @@ -[**{{refInfo.refClass}}**]({{#eq refInfo.refModule null}}#top{{else}}{{complexTypePrefix}}{{refInfo.refModule}}.md{{/eq}}) \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_output_type.hbs b/src/main/resources/python/components/schemas/_helper_schema_output_type.hbs deleted file mode 100644 index f8e17721bce..00000000000 --- a/src/main/resources/python/components/schemas/_helper_schema_output_type.hbs +++ /dev/null @@ -1,11 +0,0 @@ -{{#if types}} - {{#eq types.size 1}} -{{> components/schemas/_helper_schema_output_type_single }} - {{else}} -{{#eq mode "get_additional_property_"}}def get_additional_property_(self, name: str) -> {{else}}{{#eq mode "get_property"}}def {{@key.original}}(self) -> {{else}}{{#eq mode "typehint"}}{{key}}: {{#eq key "schema"}}typing_extensions.TypeAlias = {{/eq}}{{/eq}}{{/eq}}{{/eq}}typing.Union[ - {{> components/schemas/_helper_schema_output_type_base endChar="," }} -]{{endChar}} - {{/eq}} -{{else}} -{{> components/schemas/_helper_schema_output_type_single }} -{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_output_type_single.hbs b/src/main/resources/python/components/schemas/_helper_schema_output_type_single.hbs deleted file mode 100644 index c1b2e040477..00000000000 --- a/src/main/resources/python/components/schemas/_helper_schema_output_type_single.hbs +++ /dev/null @@ -1 +0,0 @@ -{{#eq mode "get_additional_property_"}}def get_additional_property_(self, name: str) -> {{else}}{{#eq mode "get_property"}}def {{@key.original}}(self) -> {{else}}{{#eq mode "typehint"}}{{key}}: {{#eq key "schema"}}typing_extensions.TypeAlias = {{/eq}}{{/eq}}{{/eq}}{{/eq}}{{> components/schemas/_helper_schema_output_type_base }} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_python_base_types.hbs b/src/main/resources/python/components/schemas/_helper_schema_python_base_types.hbs deleted file mode 100644 index 3c8aa700107..00000000000 --- a/src/main/resources/python/components/schemas/_helper_schema_python_base_types.hbs +++ /dev/null @@ -1 +0,0 @@ -{{#each types}}{{#eq this "array"}}tuple{{/eq}}{{#eq this "object"}}schemas.immutabledict{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#eq ../format null}}str{{else}}{{#eq ../format "binary"}}typing.Union[bytes, schemas.FileIO]{{else}}str{{/eq}}{{/eq}}{{/eq}}{{#eq this "integer"}}int{{/eq}}{{#eq this "number"}}typing.Union[int, float]{{/eq}}{{#eq this "boolean"}}bool{{/eq}}{{/each}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_python_base_types_newline.hbs b/src/main/resources/python/components/schemas/_helper_schema_python_base_types_newline.hbs deleted file mode 100644 index 2c7c735fcab..00000000000 --- a/src/main/resources/python/components/schemas/_helper_schema_python_base_types_newline.hbs +++ /dev/null @@ -1,45 +0,0 @@ -{{#eq types null}} -schemas.immutabledict, -str, -float, -int, -bool, -None, -tuple, -bytes, -schemas.FileIO -{{else}} - {{#each types}} - {{#eq this "array"}} -tuple{{#unless @last}},{{/unless}} - {{/eq}} - {{#eq this "object"}} -schemas.immutabledict{{#unless @last}},{{/unless}} - {{/eq}} - {{#eq this "null"}} -None{{#unless @last}},{{/unless}} - {{/eq}} - {{#eq this "string" }} - {{#eq ../format null}} -str{{#unless @last}},{{/unless}} - {{else}} - {{#eq ../format "binary"}} -bytes, -schemas.FileIO{{#unless @last}},{{/unless}} - {{else}} -str{{#unless @last}},{{/unless}} - {{/eq}} - {{/eq}} - {{/eq}} - {{#eq this "integer"}} -int{{#unless @last}},{{/unless}} - {{/eq}} - {{#eq this "number"}} -float, -int{{#unless @last}},{{/unless}} - {{/eq}} - {{#eq this "boolean"}} -bool{{#unless @last}},{{/unless}} - {{/eq}} - {{/each}} -{{/eq}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_types_all_accessed_oneline.hbs b/src/main/resources/python/components/schemas/_helper_types_all_accessed_oneline.hbs deleted file mode 100644 index 5a3cdf810a8..00000000000 --- a/src/main/resources/python/components/schemas/_helper_types_all_accessed_oneline.hbs +++ /dev/null @@ -1 +0,0 @@ -schemas.immutabledict, tuple, float, int, str, bytes, bool, None, FileIO \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_types_all_incl_schema_oneline.hbs b/src/main/resources/python/components/schemas/_helper_types_all_incl_schema_oneline.hbs deleted file mode 100644 index b6d784e44e3..00000000000 --- a/src/main/resources/python/components/schemas/_helper_types_all_incl_schema_oneline.hbs +++ /dev/null @@ -1 +0,0 @@ -dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.Schema \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_object_input_type.hbs b/src/main/resources/python/components/schemas/_object_input_type.hbs similarity index 68% rename from src/main/resources/python/components/schemas/_helper_object_input_type.hbs rename to src/main/resources/python/components/schemas/_object_input_type.hbs index c3c80b9618e..f81cf8a5dc5 100644 --- a/src/main/resources/python/components/schemas/_helper_object_input_type.hbs +++ b/src/main/resources/python/components/schemas/_object_input_type.hbs @@ -22,13 +22,13 @@ class {{mapInputJsonPathPiece.camelCase}}({{requiredProperties.jsonPathPiece.cam str, typing.Union[ {{#each requiredProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/each}} {{#each optionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/each}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/with}} ] ] @@ -40,10 +40,10 @@ class {{mapInputJsonPathPiece.camelCase}}({{requiredProperties.jsonPathPiece.cam str, typing.Union[ {{#each requiredProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/each}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/with}} ] ] @@ -54,10 +54,10 @@ class {{mapInputJsonPathPiece.camelCase}}({{requiredProperties.jsonPathPiece.cam str, typing.Union[ {{#each optionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/each}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/with}} ] ] @@ -66,7 +66,7 @@ class {{mapInputJsonPathPiece.camelCase}}({{requiredProperties.jsonPathPiece.cam {{mapInputJsonPathPiece.camelCase}} = typing.Mapping[ str, {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} {{/with}} ] {{/if}} diff --git a/src/main/resources/python/components/schemas/_object_output_get_property.hbs b/src/main/resources/python/components/schemas/_object_output_get_property.hbs new file mode 100644 index 00000000000..aeebcbe8ff5 --- /dev/null +++ b/src/main/resources/python/components/schemas/_object_output_get_property.hbs @@ -0,0 +1,22 @@ +{{#if required}} +return typing.cast( +{{#if refInfo.refClass}} + {{> components/schemas/types/schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} +{{else}} + {{> components/schemas/types/schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} +{{/if}} + self.__getitem__("{{{@key.original}}}") +) +{{else}} +val = self.get("{{{@key.original}}}", schemas.unset) +if isinstance(val, schemas.Unset): + return val +return typing.cast( +{{#if refInfo.refClass}} + {{> components/schemas/types/schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} +{{else}} + {{> components/schemas/types/schema_output_type fullRefModule="" mode="unprefixed" endChar="," }} +{{/if}} + val +) +{{/if}} diff --git a/src/main/resources/python/components/schemas/_helper_object_output_properties.hbs b/src/main/resources/python/components/schemas/_object_output_properties.hbs similarity index 55% rename from src/main/resources/python/components/schemas/_helper_object_output_properties.hbs rename to src/main/resources/python/components/schemas/_object_output_properties.hbs index a93295dac31..1f81158fa0f 100644 --- a/src/main/resources/python/components/schemas/_helper_object_output_properties.hbs +++ b/src/main/resources/python/components/schemas/_object_output_properties.hbs @@ -5,20 +5,20 @@ {{#if refInfo.refClass}} @property -{{> components/schemas/_helper_schema_output_ref_type fullRefModule="" mode="get_property" endChar=":" }} - {{> components/schemas/_helper_object_get_property required=true }} +{{> components/schemas/types/schema_output_type fullRefModule="" mode="get_property" endChar=":" }} + {{> components/schemas/_object_output_get_property required=true }} {{else}} {{#if jsonPathPiece}} @property -{{> components/schemas/_helper_schema_output_type mode="get_property" fullRefModule=null endChar=":" }} - {{> components/schemas/_helper_object_get_property required=true }} +{{> components/schemas/types/schema_output_type mode="get_property" fullRefModule=null endChar=":" }} + {{> components/schemas/_object_output_get_property required=true }} {{else}} {{! for when additionalProperties is unset, use OUTPUT_BASE_TYPES }} @property def {{@key.original}}(self) -> schemas.OUTPUT_BASE_TYPES: - {{> components/schemas/_helper_object_get_property required=true }} + {{> components/schemas/_object_output_get_property required=true }} {{/if}} {{/if}} {{/with}} @@ -32,13 +32,13 @@ def {{@key.original}}(self) -> schemas.OUTPUT_BASE_TYPES: {{#if refInfo.refClass}} @property -{{> components/schemas/_helper_schema_output_ref_type fullRefModule="" mode="get_property" endChar=":" optional=true }} - {{> components/schemas/_helper_object_get_property required=false }} +{{> components/schemas/types/schema_output_type fullRefModule="" mode="get_property" endChar=":" optional=true }} + {{> components/schemas/_object_output_get_property required=false }} {{else}} @property -{{> components/schemas/_helper_schema_output_type mode="get_property" fullRefModule=null endChar=":" optional=true }} - {{> components/schemas/_helper_object_get_property required=false }} +{{> components/schemas/types/schema_output_type mode="get_property" fullRefModule=null endChar=":" optional=true }} + {{> components/schemas/_object_output_get_property required=false }} {{/if}} {{/with}} {{/if}} @@ -54,10 +54,10 @@ def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BAS {{#unless isBooleanSchemaFalse}} {{#if refInfo.refClass}} -{{> components/schemas/_helper_schema_output_ref_type mode="get_additional_property_" fullRefModule="" endChar=":" key="str" optional=true }} +{{> components/schemas/types/schema_output_type mode="get_additional_property_" fullRefModule="" endChar=":" key="str" optional=true }} {{else}} -{{> components/schemas/_helper_schema_output_type mode="get_additional_property_" fullRefModule=null endChar=":" key="str" optional=true }} +{{> components/schemas/types/schema_output_type mode="get_additional_property_" fullRefModule=null endChar=":" key="str" optional=true }} {{/if}} schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) val = self.get(name, schemas.unset) @@ -65,9 +65,9 @@ def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BAS return val return typing.cast( {{#if refInfo.refClass}} - {{> components/schemas/_helper_schema_output_ref_type mode="unprefixed" fullRefModule="" endChar="," }} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} {{else}} - {{> components/schemas/_helper_schema_output_type mode="unprefixed" fullRefModule=null endChar="," }} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule=null endChar="," }} {{/if}} val ) diff --git a/src/main/resources/python/components/schemas/_helper_object_output_type.hbs b/src/main/resources/python/components/schemas/_object_output_type.hbs similarity index 76% rename from src/main/resources/python/components/schemas/_helper_object_output_type.hbs rename to src/main/resources/python/components/schemas/_object_output_type.hbs index 9fcd89dff36..e44074b1a03 100644 --- a/src/main/resources/python/components/schemas/_helper_object_output_type.hbs +++ b/src/main/resources/python/components/schemas/_object_output_type.hbs @@ -1,7 +1,7 @@ {{#if mapValueSchema}} -class {{mapOutputJsonPathPiece.camelCase}}(schemas.immutabledict[str, {{#with mapValueSchema}}{{> components/schemas/_helper_schema_output_type mode="unprefixed" fullRefModule=null endChar="]):" }}{{/with}} +class {{mapOutputJsonPathPiece.camelCase}}(schemas.immutabledict[str, {{#with mapValueSchema}}{{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule=null endChar="]):" }}{{/with}} {{else}} class {{mapOutputJsonPathPiece.camelCase}}(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): {{/if}} @@ -24,6 +24,5 @@ class {{mapOutputJsonPathPiece.camelCase}}(schemas.immutabledict[str, schemas.OU {{/if}} {{/eq}} {{/eq}} - {{> components/schemas/_helper_new }} - - {{> components/schemas/_helper_object_output_properties }} + {{> components/schemas/__new__ }} + {{> components/schemas/_object_output_properties }} diff --git a/src/main/resources/python/components/schemas/_helper_oneof_type.hbs b/src/main/resources/python/components/schemas/_oneof_type.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_oneof_type.hbs rename to src/main/resources/python/components/schemas/_oneof_type.hbs diff --git a/src/main/resources/python/components/schemas/_helper_optional_properties_input_type.hbs b/src/main/resources/python/components/schemas/_optional_properties_input_type.hbs similarity index 64% rename from src/main/resources/python/components/schemas/_helper_optional_properties_input_type.hbs rename to src/main/resources/python/components/schemas/_optional_properties_input_type.hbs index 98aa423894d..a58bff8fdea 100644 --- a/src/main/resources/python/components/schemas/_helper_optional_properties_input_type.hbs +++ b/src/main/resources/python/components/schemas/_optional_properties_input_type.hbs @@ -1,11 +1,11 @@ {{#if additionalProperties}} {{#if additionalProperties.isBooleanSchemaFalse}} {{! TypedDict use case }} -{{optionalProperties.jsonPathPiece.camelCase}} = typing_extensions.TypedDict( +{{optionalProperties.jsonPathPiece.camelCase}} = typing.TypedDict( '{{optionalProperties.jsonPathPiece.camelCase}}', { {{#each optionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=@key.original quote=true fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=@key.original quote=true fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} {{/each}} }, total=False @@ -21,10 +21,10 @@ str, typing.Union[ {{#each optionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} {{/each}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../optionalProperties.jsonPathPiece.camelCase }} {{/with}} ] ] diff --git a/src/main/resources/python/components/schemas/_helper_properties_type.hbs b/src/main/resources/python/components/schemas/_properties_type.hbs similarity index 88% rename from src/main/resources/python/components/schemas/_helper_properties_type.hbs rename to src/main/resources/python/components/schemas/_properties_type.hbs index cd1a6031a0c..ddcced92d97 100644 --- a/src/main/resources/python/components/schemas/_helper_properties_type.hbs +++ b/src/main/resources/python/components/schemas/_properties_type.hbs @@ -1,4 +1,4 @@ -{{properties.jsonPathPiece.camelCase}} = typing_extensions.TypedDict( +{{properties.jsonPathPiece.camelCase}} = typing.TypedDict( '{{properties.jsonPathPiece.camelCase}}', { {{#each properties}} diff --git a/src/main/resources/python/components/schemas/_helper_required_properties_input_type.hbs b/src/main/resources/python/components/schemas/_required_properties_input_type.hbs similarity index 65% rename from src/main/resources/python/components/schemas/_helper_required_properties_input_type.hbs rename to src/main/resources/python/components/schemas/_required_properties_input_type.hbs index ea49cd6fdd6..cbdb210aab8 100644 --- a/src/main/resources/python/components/schemas/_helper_required_properties_input_type.hbs +++ b/src/main/resources/python/components/schemas/_required_properties_input_type.hbs @@ -1,12 +1,12 @@ {{#if additionalProperties}} {{#if additionalProperties.isBooleanSchemaFalse}} {{! TypedDict use case }} -{{requiredProperties.jsonPathPiece.camelCase}} = typing_extensions.TypedDict( +{{requiredProperties.jsonPathPiece.camelCase}} = typing.TypedDict( '{{requiredProperties.jsonPathPiece.camelCase}}', { {{#each requiredProperties}} {{#with this}} - {{> components/schemas/_helper_schema_io_type paramName=@key.original quote=true fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=@key.original quote=true fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} {{/with}} {{/each}} } @@ -22,10 +22,10 @@ str, typing.Union[ {{#each requiredProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} {{/each}} {{#with additionalProperties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../requiredProperties.jsonPathPiece.camelCase }} {{/with}} ] ] diff --git a/src/main/resources/python/components/schemas/_helper_notes_msg.hbs b/src/main/resources/python/components/schemas/helpers/notes_msg.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_notes_msg.hbs rename to src/main/resources/python/components/schemas/helpers/notes_msg.hbs diff --git a/src/main/resources/python/components/schemas/_helper_payload_renderer.hbs b/src/main/resources/python/components/schemas/helpers/payload_renderer.hbs similarity index 80% rename from src/main/resources/python/components/schemas/_helper_payload_renderer.hbs rename to src/main/resources/python/components/schemas/helpers/payload_renderer.hbs index 67dc5151f22..a963ae09706 100644 --- a/src/main/resources/python/components/schemas/_helper_payload_renderer.hbs +++ b/src/main/resources/python/components/schemas/helpers/payload_renderer.hbs @@ -3,7 +3,7 @@ {{#each value}} "{{{@key}}}": {{#with this}} - {{> components/schemas/_helper_payload_renderer endChar=','}} + {{> components/schemas/helpers/payload_renderer endChar=','}} {{/with}} {{/each}} }{{endChar}} @@ -11,7 +11,7 @@ {{#eq type"array"}} [ {{#each value}} - {{> components/schemas/_helper_payload_renderer endChar=','}} + {{> components/schemas/helpers/payload_renderer endChar=','}} {{/each}} ]{{endChar}} {{/eq}} diff --git a/src/main/resources/python/components/schemas/schema.hbs b/src/main/resources/python/components/schemas/schema.hbs index 2ed2ed1d00d..f2e816b8036 100644 --- a/src/main/resources/python/components/schemas/schema.hbs +++ b/src/main/resources/python/components/schemas/schema.hbs @@ -9,11 +9,11 @@ from {{packageName}}.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] {{/if}} {{> _helper_imports }} -{{> components/schemas/_helper_schema_switch_case identifierPieces=(append identifierPieces jsonPathPiece) }} +{{> components/schemas/schema_cls/schema_cls identifierPieces=(append identifierPieces jsonPathPiece) }} {{else}} from __future__ import annotations from {{packageName}}.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -{{> components/schemas/_helper_getschemas }} +{{> components/schemas/schema_getschemas }} {{/if}} {{/with}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_xbase_one_type.hbs b/src/main/resources/python/components/schemas/schema_cls/__xbase_one_type.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_xbase_one_type.hbs rename to src/main/resources/python/components/schemas/schema_cls/__xbase_one_type.hbs diff --git a/src/main/resources/python/components/schemas/_helper_composed_schemas.hbs b/src/main/resources/python/components/schemas/schema_cls/_composed_schemas.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_composed_schemas.hbs rename to src/main/resources/python/components/schemas/schema_cls/_composed_schemas.hbs diff --git a/src/main/resources/python/components/schemas/_helper_dict_partial.hbs b/src/main/resources/python/components/schemas/schema_cls/_dict_partial.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_dict_partial.hbs rename to src/main/resources/python/components/schemas/schema_cls/_dict_partial.hbs diff --git a/src/main/resources/python/components/schemas/_helper_schema_enum.hbs b/src/main/resources/python/components/schemas/schema_cls/_enum.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_schema_enum.hbs rename to src/main/resources/python/components/schemas/schema_cls/_enum.hbs diff --git a/src/main/resources/python/components/schemas/_helper_list_partial.hbs b/src/main/resources/python/components/schemas/schema_cls/_list_partial.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_list_partial.hbs rename to src/main/resources/python/components/schemas/schema_cls/_list_partial.hbs diff --git a/src/main/resources/python/components/schemas/_helper_schema_composed_or_anytype.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_composed_or_anytype.hbs similarity index 77% rename from src/main/resources/python/components/schemas/_helper_schema_composed_or_anytype.hbs rename to src/main/resources/python/components/schemas/schema_cls/_schema_composed_or_anytype.hbs index b38667824ee..83d55bff1d9 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_composed_or_anytype.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_composed_or_anytype.hbs @@ -6,7 +6,7 @@ class {{jsonPathPiece.camelCase}}( schemas.AnyTypeSchema[{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.camelCase}}{{else}}schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]{{/if}}, {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.camelCase}}{{else}}typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]{{/if}}], {{else}} {{#eq types.size 1}} - {{> components/schemas/_helper_xbase_one_type }} + {{> components/schemas/schema_cls/__xbase_one_type }} {{else}} schemas.Schema[{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.camelCase}}{{else}}schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]{{/if}}, {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.camelCase}}{{else}}typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]{{/if}}], {{/eq}} @@ -26,25 +26,25 @@ class {{jsonPathPiece.camelCase}}( {{#eq types null}} # any type {{/eq}} - {{> components/schemas/_helper_types }} + {{> components/schemas/schema_cls/_types }} {{#if format}} format: str = '{{format}}' {{/if}} {{#if enumInfo}} - {{> components/schemas/_helper_schema_enum }} + {{> components/schemas/schema_cls/_enum }} enums = {{enumInfo.jsonPathPiece.camelCase}} {{/if}} {{#if items}} - {{> components/schemas/_helper_list_partial }} + {{> components/schemas/schema_cls/_list_partial }} {{/if}} {{#or additionalProperties requiredProperties hasDiscriminatorWithNonEmptyMapping properties}} - {{> components/schemas/_helper_dict_partial }} + {{> components/schemas/schema_cls/_dict_partial }} {{/or}} {{#if hasValidation}} - {{> components/schemas/_helper_validations }} + {{> components/schemas/schema_cls/_validations }} {{/if}} {{#or allOf anyOf oneOf not}} - {{> components/schemas/_helper_composed_schemas }} + {{> components/schemas/schema_cls/_composed_schemas }} {{/or}} {{#or mapOutputJsonPathPiece arrayOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ @@ -65,21 +65,21 @@ class {{jsonPathPiece.camelCase}}( {{#neq types null}} {{#eq types.size 1}} {{#contains types "array"}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} {{else}} {{#contains types "object" }} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} {{else}} {{#if enumInfo}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} {{/if}} {{/contains}} {{/contains}} {{else}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} {{/eq}} {{/neq}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_dict.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs similarity index 85% rename from src/main/resources/python/components/schemas/_helper_schema_dict.hbs rename to src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs index 36bf94d93f2..dfc5f17120c 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_dict.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs @@ -17,8 +17,8 @@ class {{jsonPathPiece.camelCase}}( {{/if}} {{#or additionalProperties requiredProperties hasDiscriminatorWithNonEmptyMapping properties hasValidation}} types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) - {{> components/schemas/_helper_dict_partial }} - {{> components/schemas/_helper_validations }} + {{> components/schemas/schema_cls/_dict_partial }} + {{> components/schemas/schema_cls/_validations }} {{#if mapOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ typing.Type, @@ -31,5 +31,5 @@ class {{jsonPathPiece.camelCase}}( {{/if}} {{/or}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} diff --git a/src/main/resources/python/components/schemas/_helper_schema_list.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_list.hbs similarity index 84% rename from src/main/resources/python/components/schemas/_helper_schema_list.hbs rename to src/main/resources/python/components/schemas/schema_cls/_schema_list.hbs index 241ce9bdcb7..36cd1abab5f 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_list.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_list.hbs @@ -18,9 +18,9 @@ class {{jsonPathPiece.camelCase}}( {{#or items hasValidation}} types: typing.FrozenSet[typing.Type] = frozenset({tuple}) {{#if hasValidation}} - {{> components/schemas/_helper_validations }} + {{> components/schemas/schema_cls/_validations }} {{/if}} - {{> components/schemas/_helper_list_partial }} + {{> components/schemas/schema_cls/_list_partial }} {{#if arrayOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ typing.Type, @@ -33,4 +33,4 @@ class {{jsonPathPiece.camelCase}}( {{/if}} {{/or}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} diff --git a/src/main/resources/python/components/schemas/_helper_schema_simple.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_simple.hbs similarity index 68% rename from src/main/resources/python/components/schemas/_helper_schema_simple.hbs rename to src/main/resources/python/components/schemas/schema_cls/_schema_simple.hbs index abd9e750de1..ede4441e505 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_simple.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_simple.hbs @@ -2,7 +2,7 @@ @dataclasses.dataclass(frozen=True) class {{jsonPathPiece.camelCase}}( - {{> components/schemas/_helper_xbase_one_type }} + {{> components/schemas/schema_cls/__xbase_one_type }} ): {{#if componentModule}} """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. @@ -19,27 +19,27 @@ class {{jsonPathPiece.camelCase}}( {{#eq types null}} # any type {{/eq}} - {{> components/schemas/_helper_types }} + {{> components/schemas/schema_cls/_types }} {{#if format}} format: str = '{{format}}' {{/if}} - {{> components/schemas/_helper_validations }} + {{> components/schemas/schema_cls/_validations }} {{#if defaultValue}} {{#with defaultValue}} {{#eq type "string"}} - default: typing_extensions.Literal["{{{value}}}"] = "{{{value}}}" + default: typing.Literal["{{{value}}}"] = "{{{value}}}" {{/eq}} {{#eq type "number"}} default: typing.Union[int, float] = {{{value}}} {{/eq}} {{#eq type "integer"}} - default: typing_extensions.Literal[{{{value}}}] = {{{value}}} + default: typing.Literal[{{{value}}}] = {{{value}}} {{/eq}} {{#eq type "boolean"}} {{#if value}} - default: typing_extensions.Literal[True] = True + default: typing.Literal[True] = True {{else}} - default: typing_extensions.Literal[False] = False + default: typing.Literal[False] = False {{/if}} {{/eq}} {{#eq type "null"}} @@ -48,9 +48,9 @@ class {{jsonPathPiece.camelCase}}( {{/with}} {{/if}} {{#if enumInfo}} - {{> components/schemas/_helper_schema_enum }} + {{> components/schemas/schema_cls/_enum }} enums = {{enumInfo.jsonPathPiece.camelCase}} - {{> components/schemas/_helper_validate }} + {{> components/schemas/schema_cls/validate/validate }} {{/if}} {{/or}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_var_equals_cls.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_var_equals_cls.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_var_equals_cls.hbs rename to src/main/resources/python/components/schemas/schema_cls/_schema_var_equals_cls.hbs diff --git a/src/main/resources/python/components/schemas/_helper_types.hbs b/src/main/resources/python/components/schemas/schema_cls/_types.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_types.hbs rename to src/main/resources/python/components/schemas/schema_cls/_types.hbs diff --git a/src/main/resources/python/components/schemas/_helper_validations.hbs b/src/main/resources/python/components/schemas/schema_cls/_validations.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_validations.hbs rename to src/main/resources/python/components/schemas/schema_cls/_validations.hbs diff --git a/src/main/resources/python/components/schemas/_helper_schema_switch_case.hbs b/src/main/resources/python/components/schemas/schema_cls/schema_cls.hbs similarity index 66% rename from src/main/resources/python/components/schemas/_helper_schema_switch_case.hbs rename to src/main/resources/python/components/schemas/schema_cls/schema_cls.hbs index d1164407f6f..a2243db020e 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_switch_case.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/schema_cls.hbs @@ -1,14 +1,14 @@ {{#if isBooleanSchemaFalse}} -{{> components/schemas/_helper_var_equals_cls }} +{{> components/schemas/schema_cls/_schema_var_equals_cls }} {{else}} {{#or allOf anyOf oneOf not}} -{{> components/schemas/_helper_schema_composed_or_anytype }} +{{> components/schemas/schema_cls/_schema_composed_or_anytype }} {{else}} {{#eq types null }} {{#or enumInfo hasValidation items properties requiredProperties hasDiscriminatorWithNonEmptyMapping additionalProperties format}} -{{> components/schemas/_helper_schema_composed_or_anytype }} +{{> components/schemas/schema_cls/_schema_composed_or_anytype }} {{else}} -{{> components/schemas/_helper_var_equals_cls }} +{{> components/schemas/schema_cls/_schema_var_equals_cls }} {{/or}} {{else}} {{! types exist }} @@ -17,29 +17,29 @@ {{#each types}} {{#eq this "object"}} {{#or properties hasValidation requiredProperties hasDiscriminatorWithNonEmptyMapping additionalProperties }} -{{> components/schemas/_helper_schema_dict }} +{{> components/schemas/schema_cls/_schema_dict }} {{else}} -{{> components/schemas/_helper_var_equals_cls }} +{{> components/schemas/schema_cls/_schema_var_equals_cls }} {{/or}} {{else}} {{#eq this "array"}} {{#or items hasValidation}} -{{> components/schemas/_helper_schema_list }} +{{> components/schemas/schema_cls/_schema_list }} {{else}} -{{> components/schemas/_helper_var_equals_cls }} +{{> components/schemas/schema_cls/_schema_var_equals_cls }} {{/or}} {{else}} {{#or enumInfo hasValidation defaultValue}} -{{> components/schemas/_helper_schema_simple }} +{{> components/schemas/schema_cls/_schema_simple }} {{else}} -{{> components/schemas/_helper_var_equals_cls }} +{{> components/schemas/schema_cls/_schema_var_equals_cls }} {{/or}} {{/eq}} {{/eq}} {{/each}} {{else}} {{! multiple types }} -{{> components/schemas/_helper_schema_composed_or_anytype }} +{{> components/schemas/schema_cls/_schema_composed_or_anytype }} {{/eq}} {{/eq}} {{/or}} diff --git a/src/main/resources/python/components/schemas/_helper_validate_args.hbs b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_args.hbs similarity index 100% rename from src/main/resources/python/components/schemas/_helper_validate_args.hbs rename to src/main/resources/python/components/schemas/schema_cls/validate/_validate_args.hbs diff --git a/src/main/resources/python/components/schemas/_helper_validate_bool_overload.hbs b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_bool_overload.hbs similarity index 77% rename from src/main/resources/python/components/schemas/_helper_validate_bool_overload.hbs rename to src/main/resources/python/components/schemas/schema_cls/validate/_validate_bool_overload.hbs index e68e614a5de..23db5d7ef04 100644 --- a/src/main/resources/python/components/schemas/_helper_validate_bool_overload.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_bool_overload.hbs @@ -5,9 +5,9 @@ @classmethod def validate( cls, - arg: typing_extensions.Literal[{{#if value}}True{{else}}False{{/if}}], + arg: typing.Literal[{{#if value}}True{{else}}False{{/if}}], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal[{{#if value}}True{{else}}False{{/if}}]: ... +) -> typing.Literal[{{#if value}}True{{else}}False{{/if}}]: ... {{/each}} @typing.overload @classmethod @@ -15,7 +15,7 @@ def validate( cls, arg: bool, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal[{{#each enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}},{{/each}}]: ... +) -> typing.Literal[{{#each enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}},{{/each}}]: ... {{else}} {{! enum is not bool type }} {{#if includeNonEnum}} diff --git a/src/main/resources/python/components/schemas/_helper_validate_int_overload.hbs b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_int_overload.hbs similarity index 82% rename from src/main/resources/python/components/schemas/_helper_validate_int_overload.hbs rename to src/main/resources/python/components/schemas/schema_cls/validate/_validate_int_overload.hbs index 9319c4dbdb6..1346165b8c6 100644 --- a/src/main/resources/python/components/schemas/_helper_validate_int_overload.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_int_overload.hbs @@ -5,9 +5,9 @@ @classmethod def validate( cls, - arg: typing_extensions.Literal[{{value}}], + arg: typing.Literal[{{value}}], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal[{{value}}]: ... +) -> typing.Literal[{{value}}]: ... {{/each}} @typing.overload @classmethod @@ -15,7 +15,7 @@ def validate( cls, arg: int, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal[{{#each enumInfo.typeToValues.integer}}{{value}},{{/each}}]: ... +) -> typing.Literal[{{#each enumInfo.typeToValues.integer}}{{value}},{{/each}}]: ... {{else}} {{! enum is not int type }} {{#if includeNonEnum}} diff --git a/src/main/resources/python/components/schemas/_helper_validate_str_overload.hbs b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_str_overload.hbs similarity index 82% rename from src/main/resources/python/components/schemas/_helper_validate_str_overload.hbs rename to src/main/resources/python/components/schemas/schema_cls/validate/_validate_str_overload.hbs index 411a1099e4b..08c35cf22a1 100644 --- a/src/main/resources/python/components/schemas/_helper_validate_str_overload.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/validate/_validate_str_overload.hbs @@ -5,9 +5,9 @@ @classmethod def validate( cls, - arg: typing_extensions.Literal["{{{value}}}"], + arg: typing.Literal["{{{value}}}"], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal["{{{value}}}"]: ... +) -> typing.Literal["{{{value}}}"]: ... {{/each}} @typing.overload @classmethod @@ -15,7 +15,7 @@ def validate( cls, arg: str, configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None -) -> typing_extensions.Literal[{{#each enumInfo.typeToValues.string}}"{{{value}}}",{{/each}}]: ... +) -> typing.Literal[{{#each enumInfo.typeToValues.string}}"{{{value}}}",{{/each}}]: ... {{else}} {{! enum is not string type }} {{#if includeNonEnum}} diff --git a/src/main/resources/python/components/schemas/_helper_validate.hbs b/src/main/resources/python/components/schemas/schema_cls/validate/validate.hbs similarity index 81% rename from src/main/resources/python/components/schemas/_helper_validate.hbs rename to src/main/resources/python/components/schemas/schema_cls/validate/validate.hbs index c00d87da1fc..f677697e84f 100644 --- a/src/main/resources/python/components/schemas/_helper_validate.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/validate/validate.hbs @@ -5,7 +5,7 @@ @typing.overload @classmethod def validate( - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} {{#if ../mapOutputJsonPathPiece}} ) -> {{../mapOutputJsonPathPiece.camelCase}}: ... {{else}} @@ -13,40 +13,40 @@ def validate( {{/if}} {{else}} {{#eq this "boolean"}} -{{> components/schemas/_helper_validate_bool_overload includeNonEnum=true enumInfo=../enumInfo }} +{{> components/schemas/schema_cls/validate/_validate_bool_overload includeNonEnum=true enumInfo=../enumInfo }} {{else}} {{#eq this "null"}} @typing.overload @classmethod def validate( - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} ) -> None: ... {{else}} {{#eq this "string"}} -{{> components/schemas/_helper_validate_str_overload includeNonEnum=true enumInfo=../enumInfo }} +{{> components/schemas/schema_cls/validate/_validate_str_overload includeNonEnum=true enumInfo=../enumInfo }} {{else}} {{#eq this "number"}} @typing.overload @classmethod def validate( - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} ) -> typing.Union[int, float]: ... {{else}} {{#eq this "integer"}} -{{> components/schemas/_helper_validate_int_overload includeNonEnum=true enumInfo=../enumInfo }} +{{> components/schemas/schema_cls/validate/_validate_int_overload includeNonEnum=true enumInfo=../enumInfo }} {{else}} {{#eq this "array"}} @typing.overload @classmethod def validate( - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} ) -> {{#if ../arrayOutputJsonPathPiece}}{{../arrayOutputJsonPathPiece.camelCase}}{{else}}typing.Tuple[schemas.OUTPUT_BASE_TYPES]{{/if}}: ... {{else}} {{#eq this "object"}} @typing.overload @classmethod def validate( - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} ) -> {{#if ../mapOutputJsonPathPiece}}{{../mapOutputJsonPathPiece.camelCase}}{{else}}schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]{{/if}}: ... {{/eq}} {{/eq}} @@ -59,9 +59,9 @@ def validate( {{/each}} {{else}} {{! only one type }} -{{> components/schemas/_helper_validate_str_overload includeNonEnum=false }} -{{> components/schemas/_helper_validate_bool_overload includeNonEnum=false }} -{{> components/schemas/_helper_validate_int_overload includeNonEnum=false }} +{{> components/schemas/schema_cls/validate/_validate_str_overload includeNonEnum=false }} +{{> components/schemas/schema_cls/validate/_validate_bool_overload includeNonEnum=false }} +{{> components/schemas/schema_cls/validate/_validate_int_overload includeNonEnum=false }} {{! end of enum overloads }} {{/gt}} @classmethod @@ -84,14 +84,14 @@ def validate( configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None {{else}} {{#each types}} - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} {{/each}} {{/eq}} {{/eq}} {{/eq}} {{else}} {{#each types}} - {{> components/schemas/_helper_validate_args }} + {{> components/schemas/schema_cls/validate/_validate_args }} {{/each}} {{/if}} {{else}} @@ -109,7 +109,7 @@ def validate( {{/if}} {{else}} {{#eq this "boolean"}} -) -> {{#if ../enumInfo}}typing_extensions.Literal[ +) -> {{#if ../enumInfo}}typing.Literal[ {{#each ../enumInfo.typeToValues.boolean}} {{#if value}}True{{else}}False{{/if}}, {{/each}} @@ -119,7 +119,7 @@ def validate( ) -> None: {{else}} {{#eq this "string"}} -) -> {{#if ../enumInfo}}typing_extensions.Literal[ +) -> {{#if ../enumInfo}}typing.Literal[ {{#each ../enumInfo.typeToValues.string}} "{{{value}}}", {{/each}} @@ -129,7 +129,7 @@ def validate( ) -> typing.Union[int, float]: {{else}} {{#eq this "integer"}} -) -> {{#if ../enumInfo}}typing_extensions.Literal[ +) -> {{#if ../enumInfo}}typing.Literal[ {{#each ../enumInfo.typeToValues.integer}} {{value}}, {{/each}} @@ -159,7 +159,7 @@ def validate( ) {{#eq types.size 1}} {{#eq type "string"}} - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ {{#each enumInfo.typeToValues.string}} "{{{value}}}", {{/each}} @@ -168,7 +168,7 @@ def validate( ) {{else}} {{#eq type "integer"}} - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ {{#each enumInfo.typeToValues.integer}} {{value}}, {{/each}} @@ -177,7 +177,7 @@ def validate( ) {{else}} {{#eq type "boolean"}} - return typing.cast(typing_extensions.Literal[ + return typing.cast(typing.Literal[ {{#each enumInfo.typeToValues.boolean}} {{#if value}}True{{else}}False{{/if}}, {{/each}} diff --git a/src/main/resources/python/components/schemas/schema_doc.hbs b/src/main/resources/python/components/schemas/schema_doc.hbs index f86c633ce7b..15e75954c7f 100644 --- a/src/main/resources/python/components/schemas/schema_doc.hbs +++ b/src/main/resources/python/components/schemas/schema_doc.hbs @@ -1,58 +1,269 @@ {{#with schema}} -{{#if componentModule}} -{{packageName}}.components.schema.{{jsonPathPiece.snakeCase}} -{{/if}} {{#eq identifierPieces.size 0}} -{{> components/_helper_header_from_identifier_pieces identifierPieces=(append identifierPieces "Schema" jsonPathPiece) }} +{{> components/_helper_header_from_identifier_pieces identifierPieces=(append identifierPieces jsonPathPiece) }} {{else}} {{> components/_helper_header_from_identifier_pieces }} {{/eq}} +{{#if componentModule}} +{{packageName}}.components.schema.{{jsonPathPiece.snakeCase}} +{{else}} + {{#unless isInline}} +{{moduleLocation}} + {{/unless}} +{{/if}} +``` +type: schemas.Schema +``` {{#if description}} {{headerSize}}# Description {{description}} {{/if}} -{{headerSize}}# Type Info {{#if refInfo}} -Ref Class | Input Type | Accessed Type | Description ---------- | ---------- | ------------- | ------------ -[{{refInfo.refClass}}]({{complexTypePrefix}}{{refInfo.refModule}}.md) | {{#with getDeepestRef}}{{> _helper_schema_python_types }} | {{> components/_helper_schema_accessed_types }}{{/with}} |{{#if description}} {{description}}{{/if}} +{{headerSize}}# Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +{{> components/schemas/__refclass_partial }} | {{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} {{else}} -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -{{> _helper_schema_python_types }} | {{> components/_helper_schema_accessed_types }} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{headerSize}}# validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +{{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} |{{> components/schemas/helpers/notes_msg defaultUser="server" }} {{#or properties additionalProperties requiredProperties}} -{{headerSize}}# Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- + {{#if mapInputJsonPathPiece}} +{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces mapInputJsonPathPiece) }} + {{else}} +{{headerSize}}# Input Dictionary Keys + {{/if}} +``` + {{#if additionalProperties}} + {{#if additionalProperties.isBooleanSchemaFalse}} + {{#or requiredProperties optionalProperties}} +type: typing.TypedDict + {{else}} +type: typing.Mapping (empty) + {{/or}} + {{else}} + {{#if additionalProperties.isBooleanSchemaTrue }} + {{! addProps True, does not matter what properties are because they are always covered by base types }} +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] + {{else}} + {{! addProps schema }} + {{#and requiredProperties optionalProperties}} +type: typing.Mapping[ + str, + typing.Union[ + {{#each requiredProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/each}} + {{#each optionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/each}} + {{#with additionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/with}} + ] +] + {{else}} + {{! no requiredProperties or optionalProperties or just one of them }} + {{#if requiredProperties}} + {{! requiredProperties + addProp }} +type: typing.Mapping[ + str, + typing.Union[ + {{#each requiredProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/each}} + {{#with additionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/with}} + ] +] + {{else}} + {{#if optionalProperties}} + {{! optionalProperties + addProp }} +type: typing.Mapping[ + str, + typing.Union[ + {{#each optionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/each}} + {{#with additionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/with}} + ] +] + {{else}} + {{! only addProp }} +type: typing.Mapping[ + str, + {{#with additionalProperties}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../mapInputJsonPathPiece.camelCase }} + {{/with}} +] + {{/if}} + {{/if}} + {{/and}} + {{/if}} + {{/if}} + {{else}} +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] + {{/if}} +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + {{#each requiredProperties}} +**{{@key.original}}** | {{> components/schemas/types/docschema_io_types }} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/each}} + {{#each optionalProperties}} +**{{@key.original}}** | {{> components/schemas/types/docschema_io_types }} | {{#if description}}{{description}}{{/if}} | [optional]{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/each}} + {{#with additionalProperties}} + {{#unless isBooleanSchemaFalse}} + {{#if isBooleanSchemaTrue}} +**any_string_name** | {{> _helper_schema_python_types }} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional] + {{else}} +**any_string_name** | {{> components/schemas/types/docschema_io_types }} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional]{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/if}} + {{/unless}} + {{else}} +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + {{/with}} + + {{#if mapOutputJsonPathPiece}} +{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }} + {{else}} +{{headerSize}}# Output Dictionary Keys + {{/if}} +``` + {{#if mapValueSchema}} +base class: schemas.immutabledict[str, {{#with mapValueSchema}}{{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule=null endChar="]" }}{{/with}} + {{else}} +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + {{/if}} +``` +{{headerSize}}## __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- {{#each requiredProperties}} -**{{@key.original}}** | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{#with getDeepestRef}}, {{> _helper_schema_python_types }}{{/with}}{{else}}{{> _helper_schema_python_types }}{{/if}} | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}{{#if isComplicated}}[properties.{{@key.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "properties" @key.anchorPiece) }}){{else}}{{> components/_helper_schema_accessed_types }}{{/if}}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} + {{#if @key.isValid}} +**{{@key.original}}** | {{> components/schemas/types/docschema_io_types }} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/if}} {{/each}} {{#each optionalProperties}} -**{{@key.original}}** | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{#with getDeepestRef}}, {{> _helper_schema_python_types }}{{/with}}{{else}}{{> _helper_schema_python_types }}{{/if}} | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}{{#if isComplicated}}[properties.{{@key.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "properties" @key.anchorPiece) }}){{else}}{{> components/_helper_schema_accessed_types }}{{/if}}{{/if}} | {{#if description}}{{description}}{{/if}} | [optional]{{> components/schemas/_helper_notes_msg defaultUser="server" }} + {{#if @key.isValid}} +**{{@key.original}}** | {{> components/schemas/types/docschema_io_types optional=true }} | {{#if description}}{{description}}{{/if}} | [optional]{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/if}} {{/each}} {{#with additionalProperties}} {{#unless isBooleanSchemaFalse}} {{#if isBooleanSchemaTrue}} -**any_string_name** | {{> _helper_schema_python_types }} | {{> components/_helper_schema_accessed_types }} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional] +**kwargs** | {{> _helper_schema_python_types }} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional] typed value is accessed with the get_additional_property_ method + {{else}} +**kwargs** | {{> components/schemas/types/docschema_io_types }} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional]{{> components/schemas/helpers/notes_msg defaultUser="server" }} typed value is accessed with the get_additional_property_ method + {{/if}} + {{/unless}} + {{else}} +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional] typed value is accessed with the get_additional_property_ method + {{/with}} + {{#or (and requiredProperties requiredProperties.hasValidKey) (and optionalProperties optionalProperties.hasValidKey) }} + +{{headerSize}}## properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- + {{#each requiredProperties}} + {{#if @key.isValid}} +**{{@key.original}}** | {{> components/schemas/types/docschema_output_types }} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/if}} + {{/each}} + {{#each optionalProperties}} + {{#if @key.isValid}} +**{{@key.original}}** | {{> components/schemas/types/docschema_output_types optional=true }} | {{#if description}}{{description}}{{/if}} | [optional]{{> components/schemas/helpers/notes_msg defaultUser="server" }} + {{/if}} + {{/each}} + {{/or}} + +{{headerSize}}## methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | {{> components/schemas/types/docschema_io_types types=(append (newArray ) "object") }} | {{> components/schemas/types/docschema_output_types types=(append (newArray ) "object") }} | a constructor + {{#or (and requiredProperties requiredProperties.hasInvalidKey) (and optionalProperties optionalProperties.hasInvalidKey) }} +__getitem__ | str | {{#with mapValueSchema}}{{> components/schemas/types/docschema_output_types }}{{else}}schemas.OUTPUT_BASE_TYPES{{/with}} | This model has invalid python names so this method is used under the hood when you access {{#each requiredProperties}}{{#unless @key.isValid}}instance["{{@key.original}}"], {{/unless}}{{/each}}{{#each optionalProperties}}{{#unless @key.isValid}}instance["{{@key.original}}"], {{/unless}}{{/each}} + {{/or}} + {{#with additionalProperties}} + {{#unless isBooleanSchemaFalse}} + {{#if isBooleanSchemaTrue}} +get_additional_property_ | str | {{> components/schemas/types/docschema_output_types optional=true }} | provides type safety for additional properties {{else}} -**any_string_name** | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{#with getDeepestRef}}, {{> _helper_schema_python_types }}{{/with}}{{else}}{{> _helper_schema_python_types }}{{/if}} | {{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}{{#if isComplicated}}[{{@jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece) }}){{else}}{{> components/_helper_schema_accessed_types }}{{/if}}{{/if}} | any string name can be used but the value must be the correct type{{#if description}} {{description}}{{/if}} | [optional]{{> components/schemas/_helper_notes_msg defaultUser="server" }} +get_additional_property_ | str | {{> components/schemas/types/docschema_output_types optional=true }} | provides type safety for additional properties {{/if}} {{/unless}} {{else}} -**any_string_name** | {{> components/schemas/_helper_types_all_incl_schema_oneline }} | {{> components/schemas/_helper_types_all_accessed_oneline }} | any string name can be used but the value must be the correct type | [optional] +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties {{/with}} {{/or}} {{#if items}} -{{headerSize}}# List Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- + {{#if arrayInputJsonPathPiece}} +{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }} + {{else}} +{{headerSize}}# Input List Items + {{/if}} +``` +type: typing.Union[ + typing.List[ + {{#with items}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} + {{/with}} + ], + typing.Tuple[ + {{#with items}} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," rootClass=../arrayInputJsonPathPiece.camelCase }} + ... + {{/with}} + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- {{#with items}} -{{#unless refInfo.refClass}}{{#if isComplicated}}[{{/if}}{{jsonPathPiece.original}}{{#if isComplicated}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> _helper_schema_python_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> components/_helper_schema_accessed_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{> components/schemas/types/docschema_io_types }} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/helpers/notes_msg defaultUser="server" }} {{/with}} + + {{#if arrayOutputJsonPathPiece}} +{{> components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }} + {{else}} +{{headerSize}}# Output List Items + {{/if}} +``` +base class: typing.Tuple[ + {{#with items}} + {{#if refInfo.refClass}} + {{#eq refModule null}} + {{! self reference }} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," selfReference=true }} + {{else}} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} + {{/eq}} + {{else}} + {{> components/schemas/types/schema_output_type mode="unprefixed" fullRefModule="" endChar="," }} + {{/if}} + {{/with}} + ... +] +``` +{{headerSize}}## __new__ method +Argument | Type +-------- | ------ +arg | {{> components/schemas/types/docschema_io_types types=(append (newArray ) "array") }} +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +{{headerSize}}## methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | {{#with items}}{{> components/schemas/types/docschema_output_types }}{{else}}schemas.OUTPUT_BASE_TYPES{{/with}} |{{#with items}}{{> components/schemas/helpers/notes_msg defaultUser="server" }}{{/with}} This method is used under the hood when instance[0] is called {{/if}} {{#or allOf anyOf oneOf not}} @@ -60,34 +271,34 @@ Class Name | Input Type | Accessed Type | Description | Notes {{/or}} {{#if allOf}} {{headerSize}}# allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- {{#each allOf}} -{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}[{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "allof" jsonPathPiece.anchorPiece) }}){{/if}} | {{#unless refInfo.refClass}}{{> _helper_schema_python_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> components/_helper_schema_accessed_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{#if refInfo.refClass}}{{> components/schemas/__refclass_partial }}{{else}}[{{jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}} | {{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} {{/each}} {{/if}} {{#if anyOf}} {{headerSize}}# anyOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- {{#each anyOf}} -{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}[{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "anyof" jsonPathPiece.anchorPiece) }}){{/if}} | {{#unless refInfo.refClass}}{{> _helper_schema_python_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> components/_helper_schema_accessed_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{#if refInfo.refClass}}{{> components/schemas/__refclass_partial }}{{else}}[{{jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}} | {{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} {{/each}} {{/if}} {{#if oneOf}} {{headerSize}}# oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- {{#each oneOf}} -{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}[{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "oneof" jsonPathPiece.anchorPiece) }}){{/if}} | {{#unless refInfo.refClass}}{{> _helper_schema_python_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> components/_helper_schema_accessed_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{#if refInfo.refClass}}{{> components/schemas/__refclass_partial }}{{else}}[{{jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}} | {{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} {{/each}} {{/if}} {{#if not}} {{headerSize}}# not -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- {{#with not}} -{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{else}}[{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}} | {{#unless refInfo.refClass}}{{> _helper_schema_python_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#unless refInfo.refClass}}{{> components/_helper_schema_accessed_types }}{{/unless}}{{#if refInfo.refClass}}{{> components/schemas/_helper_refclass_partial }}{{/if}} | {{#if description}}{{description}}{{/if}} |{{> components/schemas/_helper_notes_msg defaultUser="server" }} +{{#if refInfo.refClass}}{{> components/schemas/__refclass_partial }}{{else}}[{{jsonPathPiece.camelCase}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece.anchorPiece) }}){{/if}} | {{> components/schemas/types/docschema_io_types }} | {{> components/schemas/types/docschema_output_types }} {{/with}} {{/if}} {{/if}} @@ -99,7 +310,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#unless refInfo.refClass}} {{#if isComplicated}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces "properties" jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/if}} {{/unless}} {{/if}} @@ -111,7 +322,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#unless refInfo.refClass}} {{#if isComplicated}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces "properties" jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/if}} {{/unless}} {{/each}} @@ -124,7 +335,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#unless refInfo.refClass}} {{#if isComplicated}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/if}} {{/unless}} {{/unless}} @@ -137,7 +348,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#unless refInfo.refClass}} {{#if isComplicated}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/if}} {{/unless}} {{/with}} @@ -147,7 +358,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#each allOf}} {{#unless refInfo.refClass}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces "allof" jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/unless}} {{/each}} {{/if}} @@ -155,7 +366,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#each anyOf}} {{#unless refInfo.refClass}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces "anyof" jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/unless}} {{/each}} {{/if}} @@ -163,7 +374,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#each oneOf}} {{#unless refInfo.refClass}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces "oneof" jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/unless}} {{/each}} {{/if}} @@ -171,7 +382,7 @@ Class Name | Input Type | Accessed Type | Description | Notes {{#with not}} {{#unless refInfo.refClass}} -{{> components/schemas/schema_doc schema=this identifierPieces=(append identifierPieces jsonPathPiece) }} +{{> components/schemas/schema_doc schema=this }} {{/unless}} {{/with}} {{/if}} diff --git a/src/main/resources/python/components/schemas/_helper_getschemas.hbs b/src/main/resources/python/components/schemas/schema_getschemas.hbs similarity index 73% rename from src/main/resources/python/components/schemas/_helper_getschemas.hbs rename to src/main/resources/python/components/schemas/schema_getschemas.hbs index ea757802094..7770594c489 100644 --- a/src/main/resources/python/components/schemas/_helper_getschemas.hbs +++ b/src/main/resources/python/components/schemas/schema_getschemas.hbs @@ -1,40 +1,40 @@ {{#each getSchemas}} {{! generate all schemas in post order traversal }} {{#eq instanceType "schema" }} -{{> components/schemas/_helper_schema_switch_case identifierPieces=(append identifierPieces jsonPathPiece) }} +{{> components/schemas/schema_cls/schema_cls identifierPieces=(append identifierPieces jsonPathPiece) }} {{else}} {{#eq instanceType "allOfType" }} -{{> components/schemas/_helper_allof_type }} +{{> components/schemas/_allof_type }} {{else}} {{#eq instanceType "anyOfType" }} -{{> components/schemas/_helper_anyof_type }} +{{> components/schemas/_anyof_type }} {{else}} {{#eq instanceType "enumClass" }} -{{> components/schemas/_helper_enum_class }} +{{> components/schemas/_enum_class }} {{else}} {{#eq instanceType "oneOfType" }} -{{> components/schemas/_helper_oneof_type }} +{{> components/schemas/_oneof_type }} {{else}} {{#eq instanceType "propertiesType" }} -{{> components/schemas/_helper_properties_type }} +{{> components/schemas/_properties_type }} {{else}} {{#eq instanceType "requiredPropertiesInputType" }} -{{> components/schemas/_helper_required_properties_input_type }} +{{> components/schemas/_required_properties_input_type }} {{else}} {{#eq instanceType "optionalPropertiesInputType" }} -{{> components/schemas/_helper_optional_properties_input_type }} +{{> components/schemas/_optional_properties_input_type }} {{else}} {{#eq instanceType "propertiesInputType" }} -{{> components/schemas/_helper_object_input_type }} +{{> components/schemas/_object_input_type }} {{else}} {{#eq instanceType "propertiesOutputType" }} -{{> components/schemas/_helper_object_output_type }} +{{> components/schemas/_object_output_type }} {{else}} {{#eq instanceType "arrayOutputType" }} -{{> components/schemas/_helper_array_output_type }} +{{> components/schemas/_array_output_type }} {{else}} {{#eq instanceType "arrayInputType" }} -{{> components/schemas/_helper_array_input_type }} +{{> components/schemas/_array_input_type }} {{else}} {{#eq instanceType "importsType" }} diff --git a/src/main/resources/python/components/schemas/schema_test.hbs b/src/main/resources/python/components/schemas/schema_test.hbs index e5abc8f6fff..cc93f265907 100644 --- a/src/main/resources/python/components/schemas/schema_test.hbs +++ b/src/main/resources/python/components/schemas/schema_test.hbs @@ -21,7 +21,7 @@ class Test{{jsonPathPiece.camelCase}}(unittest.TestCase): {{#if valid}} {{jsonPathPiece.camelCase}}.validate( {{#with data}} - {{> components/schemas/_helper_payload_renderer endChar=',' }} + {{> components/schemas/helpers/payload_renderer endChar=',' }} {{/with}} configuration=self.configuration ) @@ -29,7 +29,7 @@ class Test{{jsonPathPiece.camelCase}}(unittest.TestCase): with self.assertRaises(({{packageName}}.ApiValueError, {{packageName}}.ApiTypeError)): {{jsonPathPiece.camelCase}}.validate( {{#with data}} - {{> components/schemas/_helper_payload_renderer endChar=','}} + {{> components/schemas/helpers/payload_renderer endChar=','}} {{/with}} configuration=self.configuration ) diff --git a/src/main/resources/python/components/schemas/types/__docschema_bool_type.hbs b/src/main/resources/python/components/schemas/types/__docschema_bool_type.hbs new file mode 100644 index 00000000000..a8fc5f915a4 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/__docschema_bool_type.hbs @@ -0,0 +1 @@ +{{#and ../enumInfo ../enumInfo.typeToValues.boolean}}typing.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}]{{else}}bool{{/and}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/__docschema_int_type.hbs b/src/main/resources/python/components/schemas/types/__docschema_int_type.hbs new file mode 100644 index 00000000000..6932e8017c7 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/__docschema_int_type.hbs @@ -0,0 +1 @@ +{{#and ../enumInfo ../enumInfo.typeToValues.integer}}typing.Literal[{{#each ../enumInfo.typeToValues.integer}}{{{value}}}{{#unless @last}}, {{/unless}}{{/each}}]{{else}}int{{/and}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/__docschema_str_type.hbs b/src/main/resources/python/components/schemas/types/__docschema_str_type.hbs new file mode 100644 index 00000000000..1251dfa8ecb --- /dev/null +++ b/src/main/resources/python/components/schemas/types/__docschema_str_type.hbs @@ -0,0 +1 @@ +{{#and ../enumInfo ../enumInfo.typeToValues.string}}typing.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}]{{else}}str{{/and}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_io_inline_types.hbs b/src/main/resources/python/components/schemas/types/_docschema_io_inline_types.hbs new file mode 100644 index 00000000000..cb3a2a7c723 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_io_inline_types.hbs @@ -0,0 +1 @@ +{{#eq types null}}{{#if mapInputJsonPathPiece}}[{{mapInputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) mapInputJsonPathPiece) }}{{/if}}){{else}}dict{{/if}}, {{> components/schemas/types/_docschema_output_object }}, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, {{#if arrayInputJsonPathPiece}}[{{arrayInputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) arrayInputJsonPathPiece) }}{{/if}}){{else}}list{{/if}}, {{> components/schemas/types/_docschema_output_array }}, bytes, io.FileIO, io.BufferedReader{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}{{#if arrayInputJsonPathPiece}}[{{arrayInputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) arrayInputJsonPathPiece) }}{{/if}}){{else}}list{{/if}}, {{> components/schemas/types/_docschema_output_array }}{{/eq}}{{#eq this "object"}}{{#if mapInputJsonPathPiece}}[{{mapInputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) mapInputJsonPathPiece) }}{{/if}}){{else}}dict{{/if}}, {{> components/schemas/types/_docschema_output_object }}{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}{{> components/schemas/types/__docschema_str_type }}{{/neq}}{{#eq ../format "date"}}, datetime.date{{/eq}}{{#eq ../format "date-time"}}, datetime.datetime{{/eq}}{{#eq ../format "uuid"}}, uuid.UUID{{/eq}}{{#eq ../format "binary"}}bytes, io.FileIO, io.BufferedReader{{/eq}}{{/eq}}{{#eq this "integer"}}{{> components/schemas/types/__docschema_int_type }}{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}{{> components/schemas/types/__docschema_bool_type }}{{/eq}}{{/each}}{{/eq}}{{#if optional}}, schemas.Unset{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_io_ref_array.hbs b/src/main/resources/python/components/schemas/types/_docschema_io_ref_array.hbs new file mode 100644 index 00000000000..f488b6ad41c --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_io_ref_array.hbs @@ -0,0 +1 @@ +{{#if arrayInputJsonPathPiece}}[{{#unless selfRef}}{{jsonPathPiece.snakeCase}}.{{/unless}}{{arrayInputJsonPathPiece.camelCase}}]({{#unless selfRef}}{{docRoot}}{{pathFromDocRoot}}.md{{/unless}}#{{arrayInputJsonPathPiece.anchorPiece}}){{else}}list{{/if}}, {{> components/schemas/types/_docschema_output_ref_array }} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_io_ref_object.hbs b/src/main/resources/python/components/schemas/types/_docschema_io_ref_object.hbs new file mode 100644 index 00000000000..dcacb197efb --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_io_ref_object.hbs @@ -0,0 +1 @@ +{{#if mapInputJsonPathPiece}}[{{#unless selfRef}}{{#if refModuleAlias}}{{refModuleAlias}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}.{{/unless}}{{mapInputJsonPathPiece.camelCase}}]({{#unless selfRef}}{{docRoot}}{{pathFromDocRoot}}.md{{/unless}}#{{mapInputJsonPathPiece.anchorPiece}}){{else}}dict{{/if}}, {{> components/schemas/types/_docschema_output_ref_object }} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_io_ref_types.hbs b/src/main/resources/python/components/schemas/types/_docschema_io_ref_types.hbs new file mode 100644 index 00000000000..a1cbb2227b4 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_io_ref_types.hbs @@ -0,0 +1 @@ +{{#with getDeepestRef}}{{#eq types null}}{{> components/schemas/types/_docschema_io_ref_object }}, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, {{> components/schemas/types/_docschema_io_ref_array }}, bytes, io.FileIO, io.BufferedReader{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}{{> components/schemas/types/_docschema_io_ref_array }}{{/eq}}{{#eq this "object"}}{{> components/schemas/types/_docschema_io_ref_object }}{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}{{> components/schemas/types/__docschema_str_type }}{{/neq}}{{#eq ../format "date"}}, datetime.date{{/eq}}{{#eq ../format "date-time"}}, datetime.datetime{{/eq}}{{#eq ../format "uuid"}}, uuid.UUID{{/eq}}{{#eq ../format "binary"}}bytes, io.FileIO, io.BufferedReader{{/eq}}{{/eq}}{{#eq this "integer"}}{{> components/schemas/types/__docschema_int_type }}{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}{{> components/schemas/types/__docschema_bool_type }}{{/eq}}{{/each}}{{/eq}}{{/with}}{{#if optional}}, schemas.Unset{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_array.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_array.hbs new file mode 100644 index 00000000000..35a9b248d5b --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_array.hbs @@ -0,0 +1 @@ +{{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) arrayOutputJsonPathPiece) }}{{/if}}){{else}}tuple{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_inline_types.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_inline_types.hbs new file mode 100644 index 00000000000..13c294f4e56 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_inline_types.hbs @@ -0,0 +1 @@ +{{#eq types null}}{{> components/schemas/types/_docschema_output_object }}, str, float, int, bool, None, {{> components/schemas/types/_docschema_output_array }}, bytes, io.FileIO{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}{{> components/schemas/types/_docschema_output_array }}{{/eq}}{{#eq this "object"}}{{> components/schemas/types/_docschema_output_object }}{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}{{> components/schemas/types/__docschema_str_type }}{{/neq}}{{#eq ../format "binary"}}bytes, io.FileIO{{/eq}}{{/eq}}{{#eq this "integer"}}{{> components/schemas/types/__docschema_int_type }}{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}{{> components/schemas/types/__docschema_bool_type }}{{/eq}}{{/each}}{{/eq}}{{#if optional}}, schemas.Unset{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_object.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_object.hbs new file mode 100644 index 00000000000..75aa0622821 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_object.hbs @@ -0,0 +1 @@ +{{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.camelCase}}](#{{#if identifierPieces}}{{> components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}{{else}}{{> components/_helper_anchor_id identifierPieces=(append (newArray ) mapOutputJsonPathPiece) }}{{/if}}){{else}}schemas.immutabledict{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_ref_array.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_ref_array.hbs new file mode 100644 index 00000000000..eb3d73bc14f --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_ref_array.hbs @@ -0,0 +1 @@ +{{#if arrayOutputJsonPathPiece}}[{{#unless selfRef}}{{#if refModuleAlias}}{{refModuleAlias}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}.{{/unless}}{{arrayOutputJsonPathPiece.camelCase}}]({{#unless selfRef}}{{docRoot}}{{pathFromDocRoot}}.md{{/unless}}#{{arrayOutputJsonPathPiece.anchorPiece}}){{else}}tuple{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_ref_object.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_ref_object.hbs new file mode 100644 index 00000000000..d2a9486643c --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_ref_object.hbs @@ -0,0 +1 @@ +{{#if mapOutputJsonPathPiece}}[{{#unless selfRef}}{{#if refModuleAlias}}{{refModuleAlias}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}.{{/unless}}{{mapOutputJsonPathPiece.camelCase}}]({{#unless selfRef}}{{docRoot}}{{pathFromDocRoot}}.md{{/unless}}#{{mapOutputJsonPathPiece.anchorPiece}}){{else}}schemas.immutabledict{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/_docschema_output_ref_types.hbs b/src/main/resources/python/components/schemas/types/_docschema_output_ref_types.hbs new file mode 100644 index 00000000000..c13d8afc9fc --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_docschema_output_ref_types.hbs @@ -0,0 +1 @@ +{{#with getDeepestRef}}{{#eq types null}}{{> components/schemas/types/_docschema_output_ref_object }}, str, float, int, bool, None, {{> components/schemas/types/_docschema_output_ref_array }}, bytes, io.FileIO{{else}}{{#each types}}{{#unless @first}}, {{/unless}}{{#eq this "array"}}{{> components/schemas/types/_docschema_output_ref_array }}{{/eq}}{{#eq this "object"}}{{> components/schemas/types/_docschema_output_ref_object }}{{/eq}}{{#eq this "null"}}None{{/eq}}{{#eq this "string" }}{{#neq ../format "binary"}}{{> components/schemas/types/__docschema_str_type }}{{/neq}}{{#eq ../format "binary"}}bytes, io.FileIO{{/eq}}{{/eq}}{{#eq this "integer"}}{{> components/schemas/types/__docschema_int_type }}{{/eq}}{{#eq this "number"}}float, int{{/eq}}{{#eq this "boolean"}}{{> components/schemas/types/__docschema_bool_type }}{{/eq}}{{/each}}{{/eq}}{{/with}}{{#if optional}}, schemas.Unset{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_io_type_base.hbs b/src/main/resources/python/components/schemas/types/_schema_io_type_base.hbs similarity index 98% rename from src/main/resources/python/components/schemas/_helper_schema_io_type_base.hbs rename to src/main/resources/python/components/schemas/types/_schema_io_type_base.hbs index 2a5b7df590e..f117e567423 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_io_type_base.hbs +++ b/src/main/resources/python/components/schemas/types/_schema_io_type_base.hbs @@ -4,7 +4,7 @@ {{#and ../enumInfo ../enumInfo.typeToValues.boolean}} {{#if optional}} {{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Union[ - typing_extensions.Literal[ + typing.Literal[ {{#each ../enumInfo.typeToValues.boolean}} {{#if value}}True{{else}}False{{/if}}{{#unless @last}},{{/unless}} {{/each}} @@ -12,7 +12,7 @@ schemas.Unset ] = schemas.unset{{endChar}} {{else}} -{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing_extensions.Literal[ +{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Literal[ {{#each ../enumInfo.typeToValues.boolean}} {{#if value}}True{{else}}False{{/if}}{{#unless @last}},{{/unless}} {{/each}} @@ -54,7 +54,7 @@ {{#and ../enumInfo ../enumInfo.typeToValues.string}} {{#if optional}} {{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Union[ - typing_extensions.Literal[ + typing.Literal[ {{#each ../enumInfo.typeToValues.string}} "{{{value}}}"{{#unless @last}},{{/unless}} {{/each}} @@ -62,7 +62,7 @@ schemas.Unset ] = schemas.unset{{endChar}} {{else}} -{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing_extensions.Literal[ +{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Literal[ {{#each ../enumInfo.typeToValues.string}} "{{{value}}}"{{#unless @last}},{{/unless}} {{/each}} @@ -124,7 +124,7 @@ {{#and ../enumInfo ../enumInfo.typeToValues.integer}} {{#if optional}} {{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Union[ - typing_extensions.Literal[ + typing.Literal[ {{#each ../enumInfo.typeToValues.integer}} {{value}}{{#unless @last}},{{/unless}} {{/each}} @@ -132,7 +132,7 @@ schemas.Unset ] = schemas.unset{{endChar}} {{else}} -{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing_extensions.Literal[ +{{#if paramName}}{{#if quote}}"{{/if}}{{paramName}}{{#if quote}}"{{/if}}: {{/if}}typing.Literal[ {{#each ../enumInfo.typeToValues.integer}} {{value}}{{#unless @last}},{{/unless}} {{/each}} diff --git a/src/main/resources/python/components/schemas/_helper_schema_output_type_base.hbs b/src/main/resources/python/components/schemas/types/_schema_output_type_base.hbs similarity index 83% rename from src/main/resources/python/components/schemas/_helper_schema_output_type_base.hbs rename to src/main/resources/python/components/schemas/types/_schema_output_type_base.hbs index fb9d808c457..a29a6b352c5 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_output_type_base.hbs +++ b/src/main/resources/python/components/schemas/types/_schema_output_type_base.hbs @@ -3,9 +3,9 @@ {{#eq this "boolean"}} {{#and ../enumInfo ../enumInfo.typeToValues.boolean}} {{#if optional}} -typing.Union[typing_extensions.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} +typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} {{else}} -typing_extensions.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} +typing.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} {{/if}} {{else}} {{#if optional}}typing.Union[bool, schemas.Unset]{{else}}bool{{/if}}{{endChar}} @@ -20,9 +20,9 @@ typing.Union[bytes, schemas.FileIO{{#if optional}}, schemas.Unset{{/if}}]{{endCh {{else}} {{#and ../enumInfo ../enumInfo.typeToValues.string}} {{#if optional}} -typing.Union[typing_extensions.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} +typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} {{else}} -typing_extensions.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} +typing.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} {{/if}} {{else}} {{#if optional}}typing.Union[str, schemas.Unset]{{else}}str{{/if}}{{endChar}} @@ -35,9 +35,9 @@ typing.Union[int, float{{#if optional}}, schemas.Unset{{/if}}]{{endChar}} {{#eq this "integer"}} {{#and ../enumInfo ../enumInfo.typeToValues.integer}} {{#if optional}} -typing.Union[typing_extensions.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} +typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}} {{else}} -typing_extensions.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} +typing.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}} {{/if}} {{else}} {{#if optional}}typing.Union[int, schemas.Unset]{{else}}int{{/if}}{{endChar}} diff --git a/src/main/resources/python/components/schemas/types/_schema_output_type_oneline_base.hbs b/src/main/resources/python/components/schemas/types/_schema_output_type_oneline_base.hbs new file mode 100644 index 00000000000..3aaa0bfc66b --- /dev/null +++ b/src/main/resources/python/components/schemas/types/_schema_output_type_oneline_base.hbs @@ -0,0 +1 @@ +{{#if types}}{{#each types}}{{#eq this "boolean"}}{{#and ../enumInfo ../enumInfo.typeToValues.boolean}}{{#if optional}}typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}}{{else}}typing.Literal[{{#each ../enumInfo.typeToValues.boolean}}{{#if value}}True{{else}}False{{/if}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}}{{/if}}{{else}}{{#if optional}}typing.Union[bool, schemas.Unset]{{else}}bool{{/if}}{{endChar}}{{/and}}{{else}}{{#eq this "null"}}{{#if optional}}typing.Union[None, schemas.Unset]{{else}}None{{/if}}{{endChar}}{{else}}{{#eq this "string"}}{{#eq format "binary"}}typing.Union[bytes, schemas.FileIO{{#if optional}}, schemas.Unset{{/if}}]{{endChar}}{{else}}{{#and ../enumInfo ../enumInfo.typeToValues.string}}{{#if optional}}typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}}{{else}}typing.Literal[{{#each ../enumInfo.typeToValues.string}}"{{{value}}}"{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}}{{/if}}{{else}}{{#if optional}}typing.Union[str, schemas.Unset]{{else}}str{{/if}}{{endChar}}{{/and}}{{/eq}}{{else}}{{#eq this "number"}}typing.Union[int, float{{#if optional}}, schemas.Unset{{/if}}]{{endChar}}{{else}}{{#eq this "integer"}}{{#and ../enumInfo ../enumInfo.typeToValues.integer}}{{#if optional}}typing.Union[typing.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}], schemas.Unset]{{endChar}}{{else}}typing.Literal[{{#each ../enumInfo.typeToValues.integer}}{{value}}{{#unless @last}}, {{/unless}}{{/each}}]{{endChar}}{{/if}}{{else}}{{#if optional}}typing.Union[int, schemas.Unset]{{else}}int{{/if}}{{endChar}}{{/and}}{{else}}{{#eq this "array"}}{{#if arrayOutputJsonPathPiece}}{{#if fullRefModule}}{{#if optional}}typing.Union[{{fullRefModule}}.{{arrayOutputJsonPathPiece.camelCase}}, schemas.Unset]{{endChar}}{{else}}{{fullRefModule}}.{{arrayOutputJsonPathPiece.camelCase}}{{endChar}}{{/if}}{{else}}{{#if selfReference}}{{#if optional}}typing.Union['{{arrayOutputJsonPathPiece.camelCase}}', schemas.Unset]{{endChar}}{{else}}'{{arrayOutputJsonPathPiece.camelCase}}'{{endChar}}{{/if}}{{else}}{{#if optional}}typing.Union[{{arrayOutputJsonPathPiece.camelCase}}, schemas.Unset]{{endChar}}{{else}}{{arrayOutputJsonPathPiece.camelCase}}{{endChar}}{{/if}}{{/if}}{{/if}}{{else}}{{#if optional}}typing.Union[typing.Tuple[schemas.OUTPUT_BASE_TYPES], schemas.Unset]{{endChar}}{{else}}typing.Tuple[schemas.OUTPUT_BASE_TYPES]{{endChar}}{{/if}}{{/if}}{{else}}{{#eq this "object"}}{{#if mapOutputJsonPathPiece}}{{#if optional}}typing.Union[{{#if fullRefModule}}{{fullRefModule}}.{{/if}}{{mapOutputJsonPathPiece.camelCase}}, schemas.Unset]{{endChar}}{{else}}{{#if fullRefModule}}{{fullRefModule}}.{{/if}}{{mapOutputJsonPathPiece.camelCase}}{{endChar}}{{/if}}{{else}}{{#if optional}}typing.Union[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], schemas.Unset]{{endChar}}{{else}}schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]{{endChar}}{{/if}}{{/if}}{{/eq}}{{/eq}}{{/eq}}{{/eq}}{{/eq}}{{/eq}}{{/eq}}{{/each}}{{else}}{{#if optional}}typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]{{endChar}}{{else}}schemas.OUTPUT_BASE_TYPES{{endChar}}{{/if}}{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_output_ref_single.hbs b/src/main/resources/python/components/schemas/types/_schema_output_type_single.hbs similarity index 77% rename from src/main/resources/python/components/schemas/_helper_schema_output_ref_single.hbs rename to src/main/resources/python/components/schemas/types/_schema_output_type_single.hbs index c1b2e040477..b3386017e68 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_output_ref_single.hbs +++ b/src/main/resources/python/components/schemas/types/_schema_output_type_single.hbs @@ -1 +1 @@ -{{#eq mode "get_additional_property_"}}def get_additional_property_(self, name: str) -> {{else}}{{#eq mode "get_property"}}def {{@key.original}}(self) -> {{else}}{{#eq mode "typehint"}}{{key}}: {{#eq key "schema"}}typing_extensions.TypeAlias = {{/eq}}{{/eq}}{{/eq}}{{/eq}}{{> components/schemas/_helper_schema_output_type_base }} \ No newline at end of file +{{#eq mode "get_additional_property_"}}def get_additional_property_(self, name: str) -> {{else}}{{#eq mode "get_property"}}def {{@key.original}}(self) -> {{else}}{{#eq mode "typehint"}}{{key}}: {{#eq key "schema"}}typing_extensions.TypeAlias = {{/eq}}{{/eq}}{{/eq}}{{/eq}}{{> components/schemas/types/_schema_output_type_base }} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/docschema_io_types.hbs b/src/main/resources/python/components/schemas/types/docschema_io_types.hbs new file mode 100644 index 00000000000..249cb2538a5 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/docschema_io_types.hbs @@ -0,0 +1 @@ +{{#if refInfo.refClass}}{{> components/schemas/types/_docschema_io_ref_types selfRef=(eq refInfo.refModule null) refModuleAlias=refInfo.refModuleAlias }}{{else}}{{> components/schemas/types/_docschema_io_inline_types }}{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/types/docschema_output_types.hbs b/src/main/resources/python/components/schemas/types/docschema_output_types.hbs new file mode 100644 index 00000000000..7520edbfc73 --- /dev/null +++ b/src/main/resources/python/components/schemas/types/docschema_output_types.hbs @@ -0,0 +1 @@ +{{#if refInfo.refClass}}{{> components/schemas/types/_docschema_output_ref_types selfRef=(eq refInfo.refModule null) }}{{else}}{{> components/schemas/types/_docschema_output_inline_types }}{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_io_type.hbs b/src/main/resources/python/components/schemas/types/schema_io_type.hbs similarity index 54% rename from src/main/resources/python/components/schemas/_helper_schema_io_type.hbs rename to src/main/resources/python/components/schemas/types/schema_io_type.hbs index 1ba215ecb97..02329b5ee3c 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_io_type.hbs +++ b/src/main/resources/python/components/schemas/types/schema_io_type.hbs @@ -3,38 +3,38 @@ {{#with refInfo.ref}} {{#eq fullRefModule "" }} {{#if ../refInfo.refModuleAlias}} -{{> components/schemas/_helper_schema_io_type fullRefModule=../refInfo.refModuleAlias }} +{{> components/schemas/types/schema_io_type fullRefModule=../refInfo.refModuleAlias }} {{else}} -{{> components/schemas/_helper_schema_io_type fullRefModule=../refInfo.refModule }} +{{> components/schemas/types/schema_io_type fullRefModule=../refInfo.refModule }} {{/if}} {{else}} {{#if ../refInfo.refModuleAlias}} -{{> components/schemas/_helper_schema_io_type fullRefModule=(join fullRefModule ../refInfo.refModuleAlias ".") }} +{{> components/schemas/types/schema_io_type fullRefModule=(join fullRefModule ../refInfo.refModuleAlias ".") }} {{else}} -{{> components/schemas/_helper_schema_io_type fullRefModule=(join fullRefModule ../refInfo.refModule ".") }} +{{> components/schemas/types/schema_io_type fullRefModule=(join fullRefModule ../refInfo.refModule ".") }} {{/if}} {{/eq}} {{/with}} {{else}} {{! self reference }} {{#with refInfo.ref}} -{{> components/schemas/_helper_schema_io_type }} +{{> components/schemas/types/schema_io_type }} {{/with}} {{/or}} {{else}} {{! no more refs }} {{#if types}} {{#eq types.size 1}} -{{> components/schemas/_helper_schema_io_type_base }} +{{> components/schemas/types/_schema_io_type_base }} {{else}} {{#if paramName}}{{paramName}}: {{/if}}typing.Union[ - {{> components/schemas/_helper_schema_io_type_base paramName=false optional=false endChar="," }} + {{> components/schemas/types/_schema_io_type_base paramName=false optional=false endChar="," }} {{#if optional}} schemas.Unset {{/if}} ]{{#if optional}} = schemas.unset{{/if}}{{endChar}} {{/eq}} {{else}} -{{> components/schemas/_helper_schema_io_type_base }} +{{> components/schemas/types/_schema_io_type_base }} {{/if}} {{/if}} \ No newline at end of file diff --git a/src/main/resources/python/components/schemas/_helper_schema_output_ref_type.hbs b/src/main/resources/python/components/schemas/types/schema_output_type.hbs similarity index 58% rename from src/main/resources/python/components/schemas/_helper_schema_output_ref_type.hbs rename to src/main/resources/python/components/schemas/types/schema_output_type.hbs index 6bcbc2e375b..37cd94f4e3a 100644 --- a/src/main/resources/python/components/schemas/_helper_schema_output_ref_type.hbs +++ b/src/main/resources/python/components/schemas/types/schema_output_type.hbs @@ -3,35 +3,35 @@ {{#with refInfo.ref}} {{#eq fullRefModule "" }} {{#if ../refInfo.refModuleAlias}} -{{> components/schemas/_helper_schema_output_ref_type fullRefModule=../refInfo.refModuleAlias }} +{{> components/schemas/types/schema_output_type fullRefModule=../refInfo.refModuleAlias }} {{else}} -{{> components/schemas/_helper_schema_output_ref_type fullRefModule=../refInfo.refModule }} +{{> components/schemas/types/schema_output_type fullRefModule=../refInfo.refModule }} {{/if}} {{else}} {{#if ../refInfo.refModuleAlias}} -{{> components/schemas/_helper_schema_output_ref_type fullRefModule=(join fullRefModule ../refInfo.refModuleAlias ".") }} +{{> components/schemas/types/schema_output_type fullRefModule=(join fullRefModule ../refInfo.refModuleAlias ".") }} {{else}} -{{> components/schemas/_helper_schema_output_ref_type fullRefModule=(join fullRefModule ../refInfo.refModule ".") }} +{{> components/schemas/types/schema_output_type fullRefModule=(join fullRefModule ../refInfo.refModule ".") }} {{/if}} {{/eq}} {{/with}} {{else}} {{! self reference }} {{#with refInfo.ref}} -{{> components/schemas/_helper_schema_output_ref_type }} +{{> components/schemas/types/schema_output_type }} {{/with}} {{/or}} {{else}} {{! no more refs }} {{#if types}} {{#eq types.size 1}} -{{> components/schemas/_helper_schema_output_ref_single }} +{{> components/schemas/types/_schema_output_type_single }} {{else}} {{#eq mode "get_additional_property_"}}def get_additional_property_(self, name: str) -> {{else}}{{#eq mode "get_property"}}def {{@key.original}}(self) -> {{else}}{{#eq mode "typehint"}}{{key}}: {{#eq key "schema"}}typing_extensions.TypeAlias = {{/eq}}{{/eq}}{{/eq}}{{/eq}}typing.Union[ - {{> components/schemas/_helper_schema_output_type_base endChar="," }} + {{> components/schemas/types/_schema_output_type_base endChar="," }} ]{{endChar}} {{/eq}} {{else}} -{{> components/schemas/_helper_schema_output_ref_single }} +{{> components/schemas/types/_schema_output_type_single }} {{/if}} {{/if}} \ No newline at end of file diff --git a/src/main/resources/python/configurations/api_configuration.hbs b/src/main/resources/python/configurations/api_configuration.hbs index b241c4926b6..13b2d61ad38 100644 --- a/src/main/resources/python/configurations/api_configuration.hbs +++ b/src/main/resources/python/configurations/api_configuration.hbs @@ -47,7 +47,7 @@ from {{packageName}}.paths.{{../../@key.snakeCase}}.{{../@key.original}}.servers {{#if securitySchemes}} # security scheme key identifier to security scheme instance -SecuritySchemeInfo = typing_extensions.TypedDict( +SecuritySchemeInfo = typing.TypedDict( 'SecuritySchemeInfo', { {{#each securitySchemes}} @@ -58,21 +58,21 @@ SecuritySchemeInfo = typing_extensions.TypedDict( ) -class SecurityIndexInfoRequired(typing_extensions.TypedDict): +class SecurityIndexInfoRequired(typing.TypedDict): {{#if security}} - security: typing_extensions.Literal[{{#each security}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}] + security: typing.Literal[{{#each security}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}] {{else}} security: int {{/if}} -SecurityIndexInfoOptional = typing_extensions.TypedDict( +SecurityIndexInfoOptional = typing.TypedDict( 'SecurityIndexInfoOptional', { {{#each paths}} {{#if operations}} {{#each operations}} {{#if security}} - "paths/{{../@key.original}}/{{@key.original}}/security": typing_extensions.Literal[{{#each security}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], + "paths/{{../@key.original}}/{{@key.original}}/security": typing.Literal[{{#each security}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], {{/if}} {{/each}} {{/if}} @@ -91,7 +91,7 @@ class SecurityIndexInfo(SecurityIndexInfoRequired, SecurityIndexInfoOptional): {{#if hasServers}} # the server to use at each openapi document json path -ServerInfo = typing_extensions.TypedDict( +ServerInfo = typing.TypedDict( 'ServerInfo', { {{#each servers}} @@ -118,24 +118,24 @@ ServerInfo = typing_extensions.TypedDict( ) -class ServerIndexInfoRequired(typing_extensions.TypedDict): +class ServerIndexInfoRequired(typing.TypedDict): {{#if servers}} - servers: typing_extensions.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}] + servers: typing.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}] {{else}} servers: int {{/if}} -ServerIndexInfoOptional = typing_extensions.TypedDict( +ServerIndexInfoOptional = typing.TypedDict( 'ServerIndexInfoOptional', { {{#each paths}} {{#if servers}} - "paths/{{@key.original}}/servers": typing_extensions.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], + "paths/{{@key.original}}/servers": typing.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], {{/if}} {{#if operations}} {{#each operations}} {{#if servers}} - "paths/{{../@key.original}}/{{@key.original}}/servers": typing_extensions.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], + "paths/{{../@key.original}}/{{@key.original}}/servers": typing.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], {{/if}} {{/each}} {{/if}} @@ -407,7 +407,7 @@ class ApiConfiguration(object): def get_server_url( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "servers", {{#each paths}} {{#if servers}} @@ -437,7 +437,7 @@ class ApiConfiguration(object): # fallback and use the default index used_index = self.server_index_info.get("servers", 0) server_info_key = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each servers}} "servers/{{@key}}", {{/each}} @@ -469,7 +469,7 @@ class ApiConfiguration(object): def get_security_requirement_object( self, - key_prefix: typing_extensions.Literal[ + key_prefix: typing.Literal[ "security", {{#each paths}} {{#if operations}} diff --git a/src/main/resources/python/migration_other_python_generators.hbs b/src/main/resources/python/migration_other_python_generators.hbs index db57f718d75..e9dea7cbad7 100644 --- a/src/main/resources/python/migration_other_python_generators.hbs +++ b/src/main/resources/python/migration_other_python_generators.hbs @@ -20,12 +20,10 @@ When switching from other python client generators you will need to make some ch 6. String + Number types with formats - String type data is stored as a string and if you need to access types based on its format like date, date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_, .as_datetime_, .as_decimal_, .as_uuid_ - - type number + format: See .as_float_, .as_int_ + - type string + format: See .as_date, .as_datetime, .as_decimal, .as_uuid - this was done because openapi/json-schema defines constraints. string data may be type string with no format keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_/as_datetime_/as_decimal_/as_uuid_ - - So if you need to access a number format based type, use as_int_/as_float_ + - So if you need to access a string format based type, use as_date/as_datetime/as_decimal/as_uuid 7. Property access on AnyType(type unset) or object(dict) schemas - Only required keys with valid python names are properties like .someProp and have type hints - All optional keys may not exist, so properties are not defined for them diff --git a/src/main/resources/python/paths/path/verb/_helper_operation_args.hbs b/src/main/resources/python/paths/path/verb/_helper_operation_args.hbs index 1eb3c93dda3..f10407d34c3 100644 --- a/src/main/resources/python/paths/path/verb/_helper_operation_args.hbs +++ b/src/main/resources/python/paths/path/verb/_helper_operation_args.hbs @@ -4,10 +4,10 @@ *, {{#if isOverload}} {{#eq skipDeserialization true}} - skip_deserialization: typing_extensions.Literal[True], + skip_deserialization: typing.Literal[True], {{/eq}} {{#eq skipDeserialization false}} - skip_deserialization: typing_extensions.Literal[False] = False, + skip_deserialization: typing.Literal[False] = False, {{/eq}} {{else}} skip_deserialization: bool = False, @@ -15,13 +15,13 @@ {{#if requestBodySchema}} {{#if isOverload}} {{! only one content type at a time }} - content_type: typing_extensions.Literal["{{{contentType}}}"]{{#if isDefaultContentType}} = "{{{contentType}}}"{{/if}}, + content_type: typing.Literal["{{{contentType}}}"]{{#if isDefaultContentType}} = "{{{contentType}}}"{{/if}}, {{else}} {{! all content types }} {{#eq requestBodySchema.properties.size 1}} - content_type: typing_extensions.Literal[{{#each requestBodySchema.properties}}"{{{@key.original}}}"{{/each}}] = {{#each requestBodySchema.properties}}"{{{@key.original}}}"{{/each}}, + content_type: typing.Literal[{{#each requestBodySchema.properties}}"{{{@key.original}}}"{{/each}}] = {{#each requestBodySchema.properties}}"{{{@key.original}}}"{{/each}}, {{else}} - content_type: typing_extensions.Literal[ + content_type: typing.Literal[ {{#each requestBodySchema.properties}} "{{{@key.original}}}", {{/each}} diff --git a/src/main/resources/python/paths/path/verb/_helper_operation_args_body.hbs b/src/main/resources/python/paths/path/verb/_helper_operation_args_body.hbs index 883de832201..49de1a878db 100644 --- a/src/main/resources/python/paths/path/verb/_helper_operation_args_body.hbs +++ b/src/main/resources/python/paths/path/verb/_helper_operation_args_body.hbs @@ -1,19 +1,19 @@ {{#if isOverload}} {{! only one body at a time }} {{#with bodyRefSchema}} -{{> components/schemas/_helper_schema_io_type paramName="body" fullRefModule="" endChar="," optional=bodyOptional }} +{{> components/schemas/types/schema_io_type paramName="body" fullRefModule="" endChar="," optional=bodyOptional }} {{/with}} {{else}} {{! all request bodies }} {{#if requestBodySchema}} {{#eq requestBodySchema.properties.size 1}} {{#each requestBodySchema.properties}} -{{> components/schemas/_helper_schema_io_type paramName="body" fullRefModule="" endChar="," optional=bodyOptional }} +{{> components/schemas/types/schema_io_type paramName="body" fullRefModule="" endChar="," optional=bodyOptional }} {{/each}} {{else}} body: typing.Union[ {{#each requestBodySchema.properties}} - {{> components/schemas/_helper_schema_io_type paramName=false fullRefModule="" endChar="," optional=false }} + {{> components/schemas/types/schema_io_type paramName=false fullRefModule="" endChar="," optional=false }} {{/each}} {{#if bodyOptional}} schemas.Unset, diff --git a/src/main/resources/python/paths/path/verb/_helper_operation_docs_xparams.hbs b/src/main/resources/python/paths/path/verb/_helper_operation_docs_xparams.hbs deleted file mode 100644 index 469c50dc9a4..00000000000 --- a/src/main/resources/python/paths/path/verb/_helper_operation_docs_xparams.hbs +++ /dev/null @@ -1,37 +0,0 @@ -{{#if parameters}} - -{{headerSize}}## {{paramPrefix}}_params -{{headerSize}}### Request{{paramType}}Parameters.Params -This is a TypedDict - -Key | Input Type | Description | Notes -------------- | ------------- | ------------- | ------------- - {{#each parameters}} - {{#if refInfo}} - {{#with getDeepestRef}} - {{#if schema}} -{{name}} | [{{../refInfo.refClass}}.schema](../../../components/parameters/{{../refInfo.refModule}}.md#schema), {{#with schema}}{{> _helper_schema_python_types }}{{/with}} | | {{#unless required}}optional{{/unless}} - {{else}} - {{#each content}} -{{../name}} | [{{../../refInfo.refClass}}.content.{{@key.snakeCase}}.schema](#{{> components/_helper_anchor_id identifierPieces=(append (newArray ) "content" @key this.schema.jsonPathPiece) }}), {{#with schema}}{{> _helper_schema_python_types }}{{/with}} | | {{#unless required}}optional{{/unless}} - {{/each}} - {{/if}} - {{/with}} - {{else}} - {{#if schema}} -{{name}} | [{{jsonPathPiece.camelCase}}.schema](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece schema.jsonPathPiece) }}), {{#with schema}}{{> _helper_schema_python_types }}{{/with}} | | {{#unless required}}optional{{/unless}} - {{else}} - {{#each content}} -{{../name}} | [{{../jsonPathPiece.camelCase}}.content.{{@key.snakeCase}}.schema](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces ../jsonPathPiece "content" @key this.schema.jsonPathPiece) }}), {{#with schema}}{{> _helper_schema_python_types }}{{/with}} | | {{#unless required}}optional{{/unless}} - {{/each}} - {{/if}} - {{/if}} - {{/each}} - - {{#each parameters as | parameter |}} - {{#unless parameter.refInfo}} - -{{> components/parameters/parameter_doc headerSize=(join headerSize "###" "") identifierPieces=(append identifierPieces jsonPathPiece) }} - {{/unless}} - {{/each}} -{{/if}} \ No newline at end of file diff --git a/src/main/resources/python/paths/path/verb/_helper_operation_test_response_content.hbs b/src/main/resources/python/paths/path/verb/_helper_operation_test_response_content.hbs index 98519a34c9b..5cb46c7cf87 100644 --- a/src/main/resources/python/paths/path/verb/_helper_operation_test_response_content.hbs +++ b/src/main/resources/python/paths/path/verb/_helper_operation_test_response_content.hbs @@ -15,7 +15,7 @@ def test_{{@key}}_{{#if valid}}passes{{else}}fails{{/if}}(self): with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( {{#with data}} - {{> components/schemas/_helper_payload_renderer endChar='' }} + {{> components/schemas/helpers/payload_renderer endChar='' }} {{/with}} ) mock_request.return_value = self.response( diff --git a/src/main/resources/python/paths/path/verb/operation.hbs b/src/main/resources/python/paths/path/verb/operation.hbs index c961fff4bcc..c56fbded219 100644 --- a/src/main/resources/python/paths/path/verb/operation.hbs +++ b/src/main/resources/python/paths/path/verb/operation.hbs @@ -2,12 +2,6 @@ {{> _helper_header }} -{{#with operation}} - {{#or queryParameters headerParameters pathParameters cookieParameters requestBodySchemas}} -from __future__ import annotations -from {{packageName}}.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - {{/or}} -{{/with}} from {{packageName}} import api_client{{#or operation.errorStatusCodes operation.errorWildcardStatusCodes}}, exceptions{{/or}}{{#neq operation.security null}}{{#gt operation.security.size 0}}, security_schemes{{/gt}}{{else}}{{#neq security null}}{{#gt security.size 0}}, security_schemes{{/gt}}{{/neq}}{{/neq}} {{#eq operation.security null}} {{#neq security null}} @@ -152,7 +146,7 @@ default_response = response_default.{{jsonPathPiece.camelCase}} {{/with}} {{/if}} {{#if statusCodeResponses}} -__StatusCodeToResponse = typing_extensions.TypedDict( +__StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { {{#each statusCodeResponses}} @@ -167,7 +161,7 @@ _status_code_to_response: __StatusCodeToResponse = { } {{/if}} {{#if wildcardCodeResponses}} -__RangedStatusCodeToResponse = typing_extensions.TypedDict( +__RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { {{#each wildcardCodeResponses}} @@ -418,7 +412,7 @@ class BaseApi(api_client.Api): {{#and nonErrorStatusCodes errorStatusCodes}} if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each nonErrorStatusCodes}} '{{this}}', {{/each}} @@ -429,7 +423,7 @@ class BaseApi(api_client.Api): raw_response, self.api_client.schema_configuration) elif status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each errorStatusCodes}} '{{this}}', {{/each}} @@ -448,7 +442,7 @@ class BaseApi(api_client.Api): {{#if nonErrorStatusCodes}} if status in _non_error_status_codes: status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each nonErrorStatusCodes}} '{{this}}', {{/each}} @@ -461,7 +455,7 @@ class BaseApi(api_client.Api): {{#if errorStatusCodes}} if status in _error_status_codes: error_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each errorStatusCodes}} '{{this}}', {{/each}} @@ -489,7 +483,7 @@ class BaseApi(api_client.Api): {{#and nonErrorWildcardStatusCodes errorWildcardStatusCodes}} if ranged_response_status_code in _non_error_ranged_status_codes: ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each nonErrorWildcardStatusCodes}} '{{this}}', {{/each}} @@ -500,7 +494,7 @@ class BaseApi(api_client.Api): raw_response, self.api_client.schema_configuration) elif ranged_response_status_code in _error_ranged_status_codes: error_ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each errorWildcardStatusCodes}} '{{this}}', {{/each}} @@ -519,7 +513,7 @@ class BaseApi(api_client.Api): {{#if nonErrorWildcardStatusCodes}} if ranged_response_status_code in _non_error_ranged_status_codes: ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each nonErrorWildcardStatusCodes}} '{{this}}', {{/each}} @@ -532,7 +526,7 @@ class BaseApi(api_client.Api): {{#if errorWildcardStatusCodes}} if ranged_response_status_code in _error_ranged_status_codes: error_ranged_status_code = typing.cast( - typing_extensions.Literal[ + typing.Literal[ {{#each errorWildcardStatusCodes}} '{{this}}', {{/each}} diff --git a/src/main/resources/python/paths/path/verb/operation_doc.hbs b/src/main/resources/python/paths/path/verb/operation_doc.hbs index c5568bb8836..c97c2bc64c0 100644 --- a/src/main/resources/python/paths/path/verb/operation_doc.hbs +++ b/src/main/resources/python/paths/path/verb/operation_doc.hbs @@ -44,48 +44,40 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - {{#with requestBody}} - {{#if refInfo}} - {{#with getDeepestRef}} - {{#if required}} -[**body**](../../components/request_bodies/{{../refInfo.refModule}}.md) | typing.Union[{{#each content}}{{#with this.schema}}[{{../../../refInfo.refClass}}.content.{{../@key.snakeCase}}.{{jsonPathPiece.snakeCase}}](../../components/request_bodies/{{../../../refInfo.refModule}}.md#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "content" ../@key jsonPathPiece) }}){{/with}}, {{/each}}{{#each getContentSchemas}}{{> _helper_schema_python_types }}{{#unless @last}}, {{/unless}}{{/each}}] | required | + {{#if requestBody}} + {{#if requestBody.refInfo}} + {{#if requestBody.getDeepestRef.required}} +[**body**](../../components/request_bodies/{{requestBody.refInfo.refModule}}.md) | typing.Union[{{#each requestBodySchema.properties}}{{> components/schemas/types/docschema_io_types }}{{#unless @last}}, {{/unless}}{{/each}}] | required | {{else}} -[**body**](../../components/request_bodies/{{../refInfo.refModule}}.md) | typing.Union[{{#each content}}{{#with this.schema}}[{{../../../refInfo.refClass}}.content.{{../@key.snakeCase}}.{{jsonPathPiece.snakeCase}}](../../components/request_bodies/{{../../../refInfo.refModule}}.md#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "content" ../@key jsonPathPiece) }}){{/with}}, {{/each}}Unset, {{#each getContentSchemas}}{{> _helper_schema_python_types }}{{#unless @last}}, {{/unless}}{{/each}}] | optional, default is unset | +[**body**](../../components/request_bodies/{{requestBody.refInfo.refModule}}.md) | typing.Union[{{#each requestBodySchema.properties}}{{> components/schemas/types/docschema_io_types }}{{#unless @last}}, {{else}}, schemas.Unset{{/unless}}{{/each}}] | optional, default is unset | {{/if}} - {{/with}} {{else}} - {{#if required}} -[body](#requestbody) | typing.Union[{{#each content}}{{#with this.schema}}[{{../../jsonPathPiece.camelCase}}.content.{{../@key.snakeCase}}.{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "RequestBody" "content" ../@key jsonPathPiece) }}){{/with}}, {{/each}}{{#each getContentSchemas}}{{> _helper_schema_python_types }}{{#unless @last}}, {{/unless}}{{/each}}] | required | + {{#if requestBody.required}} +[body](#requestbody) | typing.Union[{{#each requestBodySchema.properties}}{{> components/schemas/types/docschema_io_types }}{{#unless @last}}, {{/unless}}{{/each}}] | required | {{else}} -[body](#requestbody) | typing.Union[{{#each content}}{{#with this.schema}}[{{../../jsonPathPiece.camelCase}}.content.{{../@key.snakeCase}}.{{#if jsonPathPiece.isValid}}{{jsonPathPiece.original}}{{else}}{{jsonPathPiece.snakeCase}}{{/if}}](#{{> components/_helper_anchor_id identifierPieces=(append identifierPieces "RequestBody" "content" ../@key jsonPathPiece) }}){{/with}}, {{/each}}Unset, {{#each getContentSchemas}}{{> _helper_schema_python_types }}{{#unless @last}}, {{/unless}}{{/each}}] | optional, default is unset | +[body](#requestbody) | typing.Union[{{#each requestBodySchema.properties}}{{> components/schemas/types/docschema_io_types }}{{#unless @last}}, {{else}}, schemas.Unset{{/unless}}{{/each}}] | optional, default is unset | {{/if}} {{/if}} - {{/with}} - {{#if queryParams}} -[query_params](#query_params) | [RequestQueryParameters.Params](#requestqueryparametersparams), dict | | {{/if}} - {{#if headerParams}} -[header_params](#header_params) | [RequestHeaderParameters.Params](#requestheaderparametersparams), dict | | + {{#if queryParameters}} +[query_params](#query_params) | [QueryParametersDictInput](#queryparameters-queryparametersdictinput), [QueryParametersDict](#queryparameters-queryparametersdict) | | {{/if}} - {{#if pathParams}} -[path_params](#path_params) | [RequestPathParameters.Params](#requestpathparametersparams), dict | | + {{#if headerParameters}} +[header_params](#header_params) | [HeaderParametersDictInput](#headerparameters-headerparametersdictinput), [HeaderParametersDict](#headerparameters-headerparametersdict) | | {{/if}} - {{#if cookieParams}} -[cookie_params](#cookie-params) | [RequestCookieParameters.Params](#requestcookieparametersparams), dict | | + {{#if pathParameters}} +[path_params](#path_params) | [PathParametersDictInput](#pathparameters-pathparametersdictinput), [PathParametersDict](#pathparameters-pathparametersdict) | | + {{/if}} + {{#if cookieParameters}} +[cookie_params](#cookie-params) | [CookieParametersDictInput](#cookieparameters-cookieparametersdictinput), [CookieParametersDict](#cookieparameters-cookieparametersdict) | | {{/if}} {{#with requestBody}} {{#if refInfo}} - {{#each getDeepestRef.content}} - {{#if @first}} -content_type | str | optional, default is '{{@key.original}}' | Selects the schema and serialization of the request body - {{/if}} - {{/each}} + {{#with getDeepestRef}} +content_type | str | optional, default is {{#each content}}{{#if @first}}'{{@key.original}}'{{/if}}{{/each}} | Selects the schema and serialization of the request body. value must be one of [{{#each content}}'{{@key.original}}'{{#unless @last}}, {{/unless}}{{/each}}] + {{/with}} {{else}} - {{#each content}} - {{#if @first}} -content_type | str | optional, default is '{{@key.original}}' | Selects the schema and serialization of the request body - {{/if}} - {{/each}} +content_type | str | optional, default is {{#each content}}{{#if @first}}'{{@key.original}}'{{/if}}{{/each}} | Selects the schema and serialization of the request body. value must be one of [{{#each content}}'{{@key.original}}'{{#unless @last}}, {{/unless}}{{/each}}] {{/if}} {{/with}} {{#if produces}} @@ -112,18 +104,22 @@ skip_deserialization | bool | default is False | when True, headers and body wil {{> components/request_bodies/request_body_doc requestBody=requestBody headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces requestBody.jsonPathPiece) }} {{/unless}} {{/if}} - {{#if queryParams}} -{{> paths/path/verb/_helper_operation_docs_xparams paramPrefix="query" paramType="Query" parameters=queryParams }} - {{/if}} - {{#if headerParams}} -{{> paths/path/verb/_helper_operation_docs_xparams paramPrefix="header" paramType="Header" parameters=headerParams }} - {{/if}} - {{#if pathParams}} -{{> paths/path/verb/_helper_operation_docs_xparams paramPrefix="path" paramType="Path" parameters=pathParams }} - {{/if}} - {{#if cookieParams}} -{{> paths/path/verb/_helper_operation_docs_xparams paramPrefix="cookie" paramType="Cookie" parameters=cookieParams }} - {{/if}} + {{#with queryParameters}} +### query_params +{{> components/schemas/schema_doc schema=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} + {{/with}} + {{#with headerParameters}} +### header_params +{{> components/schemas/schema_doc schema=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} + {{/with}} + {{#with pathParameters}} +### path_params +{{> components/schemas/schema_doc schema=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} + {{/with}} + {{#with cookieParameters}} +### cookie_params +{{> components/schemas/schema_doc schema=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} + {{/with}} {{headerSize}}# Return Types @@ -133,17 +129,17 @@ n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization {{#if defaultResponse}} {{#with defaultResponse}} {{#if refInfo}} -default | [{{refInfo.refClass}}.response_cls](../../components/responses/{{refInfo.refModule}}.md#{{refInfo.refModule}}response_cls) | {{#with getDeepestRef}}{{description}}{{/with}} +default | [{{refInfo.refClass}}.ApiResponse](../../components/responses/{{refInfo.refModule}}.md#apiresponse) | {{#with getDeepestRef}}{{description}}{{/with}} {{else}} -default | [{{jsonPathPiece.camelCase}}.response_cls](#{{jsonPathPiece.anchorPiece}}-response_cls) | {{description}} +default | [{{jsonPathPiece.camelCase}}.ApiResponse](#{{jsonPathPiece.anchorPiece}}-apiresponse) | {{description}} {{/if}} {{/with}} {{/if}} {{#each nonDefaultResponses}} {{#if refInfo}} -{{@key}} | [{{refInfo.refClass}}.response_cls](../../components/responses/{{refInfo.refModule}}.md#{{refInfo.refModule}}response_cls) | {{#with getDeepestRef}}{{description}}{{/with}} +{{@key}} | [{{refInfo.refClass}}.ApiResponse](../../components/responses/{{refInfo.refModule}}.md#apiresponse) | {{#with getDeepestRef}}{{description}}{{/with}} {{else}} -{{@key}} | [{{jsonPathPiece.camelCase}}.response_cls](#{{jsonPathPiece.anchorPiece}}-response_cls) | {{description}} +{{@key}} | [{{jsonPathPiece.camelCase}}.ApiResponse](#{{jsonPathPiece.anchorPiece}}-apiresponse) | {{description}} {{/if}} {{/each}} {{#each responses}} diff --git a/src/main/resources/python/paths/path/verb/operation_test.hbs b/src/main/resources/python/paths/path/verb/operation_test.hbs index c3519750df9..821ba8f569f 100644 --- a/src/main/resources/python/paths/path/verb/operation_test.hbs +++ b/src/main/resources/python/paths/path/verb/operation_test.hbs @@ -83,7 +83,7 @@ class Test{{httpMethod.camelCase}}(ApiTestMixin, unittest.TestCase): with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( {{#with data}} - {{> components/schemas/_helper_payload_renderer endChar='' }} + {{> components/schemas/helpers/payload_renderer endChar='' }} {{/with}} ) {{#if valid}} diff --git a/src/main/resources/python/schemas/__init__.hbs b/src/main/resources/python/schemas/__init__.hbs index 8f15a945433..98047c5a810 100644 --- a/src/main/resources/python/schemas/__init__.hbs +++ b/src/main/resources/python/schemas/__init__.hbs @@ -58,7 +58,7 @@ def typed_dict_to_instance(t_dict: typing_extensions._TypedDictMeta) -> typing.M for key, val in t_dict.__annotations__.items(): if isinstance(val, typing._GenericAlias): # type: ignore # typing.Type[W] -> W - val_cls = typing_extensions.get_args(val)[0] + val_cls = typing.get_args(val)[0] res[key] = val_cls return res @@ -66,10 +66,10 @@ X = typing.TypeVar('X', bound=typing.Tuple) def tuple_to_instance(tup: typing.Type[X]) -> X: res = [] - for arg in typing_extensions.get_args(tup): + for arg in typing.get_args(tup): if isinstance(arg, typing._GenericAlias): # type: ignore # typing.Type[Schema] -> Schema - arg_cls = typing_extensions.get_args(arg)[0] + arg_cls = typing.get_args(arg)[0] res.append(arg_cls) return tuple(res) # type: ignore @@ -130,10 +130,10 @@ __all__ = [ 'PatternInfo', 'ValidationMetadata', 'immutabledict', - 'as_date_', - 'as_datetime_', - 'as_decimal_', - 'as_uuid_', + 'as_date', + 'as_datetime', + 'as_decimal', + 'as_uuid', 'typed_dict_to_instance', 'tuple_to_instance', 'Unset', diff --git a/src/main/resources/python/schemas/schema.hbs b/src/main/resources/python/schemas/schema.hbs index 84a5b529f49..ec742a09c3c 100644 --- a/src/main/resources/python/schemas/schema.hbs +++ b/src/main/resources/python/schemas/schema.hbs @@ -399,17 +399,17 @@ class Schema(typing.Generic[T, U], validation.SchemaValidator, metaclass=Singlet @classmethod def validate_base( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate_base( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod @@ -541,7 +541,7 @@ def get_class( ) -> typing.Type[Schema]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls @@ -574,17 +574,17 @@ class AnyTypeSchema(Schema[T, U]): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/src/main/resources/python/schemas/schemas.hbs b/src/main/resources/python/schemas/schemas.hbs index a3552abd417..2a1d411d901 100644 --- a/src/main/resources/python/schemas/schemas.hbs +++ b/src/main/resources/python/schemas/schemas.hbs @@ -282,17 +282,17 @@ class BoolSchema(schema.Schema): @classmethod def validate( cls, - arg: typing_extensions.Literal[True], + arg: typing.Literal[True], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[True]: ... + ) -> typing.Literal[True]: ... @typing.overload @classmethod def validate( cls, - arg: typing_extensions.Literal[False], + arg: typing.Literal[False], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> typing_extensions.Literal[False]: ... + ) -> typing.Literal[False]: ... @typing.overload @classmethod diff --git a/src/main/resources/python/schemas/validation.hbs b/src/main/resources/python/schemas/validation.hbs index 30d981733a1..f2a45cdaddd 100644 --- a/src/main/resources/python/schemas/validation.hbs +++ b/src/main/resources/python/schemas/validation.hbs @@ -150,7 +150,7 @@ def _get_class( ) -> typing.Type[SchemaValidator]: if isinstance(item_cls, typing._GenericAlias): # type: ignore # petstore_api.schemas.StrSchema[~U] -> petstore_api.schemas.StrSchema - origin_cls = typing_extensions.get_origin(item_cls) + origin_cls = typing.get_origin(item_cls) if origin_cls is None: raise ValueError('origin class must not be None') return origin_cls diff --git a/src/main/resources/python/security_schemes.hbs b/src/main/resources/python/security_schemes.hbs index a2ab8945d1c..97972c42fe9 100644 --- a/src/main/resources/python/security_schemes.hbs +++ b/src/main/resources/python/security_schemes.hbs @@ -241,7 +241,7 @@ class OpenIdConnectSecurityScheme(__SecuritySchemeBase, abc.ABC): Key is the Security scheme class Value is the list of scopes """ -SecurityRequirementObject = typing_extensions.TypedDict( +SecurityRequirementObject = typing.TypedDict( 'SecurityRequirementObject', { {{#each securitySchemes}} diff --git a/src/main/resources/python/servers/server.hbs b/src/main/resources/python/servers/server.hbs index d1da1042079..d43bcad3efa 100644 --- a/src/main/resources/python/servers/server.hbs +++ b/src/main/resources/python/servers/server.hbs @@ -9,7 +9,7 @@ from {{packageName}}.shared_imports.schema_imports import * # pyright: ignore [ from {{packageName}}.shared_imports.server_imports import * # pyright: ignore [reportWildcardImportFromLibrary] {{#if variables}} {{#with variables}} -{{> components/schemas/_helper_getschemas identifierPieces=(append identifierPieces jsonPathPiece.camelCase) }} +{{> components/schemas/schema_getschemas identifierPieces=(append identifierPieces jsonPathPiece.camelCase) }} {{/with}} {{/if}} diff --git a/src/main/resources/python/servers/server_doc.hbs b/src/main/resources/python/servers/server_doc.hbs index b0f9cd373a7..a675b38781b 100644 --- a/src/main/resources/python/servers/server_doc.hbs +++ b/src/main/resources/python/servers/server_doc.hbs @@ -27,7 +27,7 @@ Key | Type | Description | Notes --- | ---- | ----------- | ------ {{#with variables}} {{#each properties}} -**{{@key.original}}** | {{> _helper_schema_python_types }} | {{#if description}}{{description}}{{/if}} | {{> components/schemas/_helper_notes_msg defaultUser="client" }} +**{{@key.original}}** | {{> _helper_schema_python_types }} | {{#if description}}{{description}}{{/if}} | {{> components/schemas/helpers/notes_msg defaultUser="client" }} {{/each}} {{/with}} {{/if}} diff --git a/src/test/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunnerTest.java b/src/test/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunnerTest.java index abcfe6ccea0..0b572e2468e 100644 --- a/src/test/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunnerTest.java +++ b/src/test/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunnerTest.java @@ -354,6 +354,7 @@ public void testRefModelValidationProperties() { ClientOptInput opts = new ClientOptInput(); opts.openAPI(openAPI); DefaultGenerator config = new DefaultGenerator(); + config.setModelPackage("components"); config.setStrictSpecBehavior(false); opts.config(config); diff --git a/src/test/java/org/openapijsonschematools/codegen/generators/DefaultGeneratorTest.java b/src/test/java/org/openapijsonschematools/codegen/generators/DefaultGeneratorTest.java index 1ce307cb72c..50565c25abf 100644 --- a/src/test/java/org/openapijsonschematools/codegen/generators/DefaultGeneratorTest.java +++ b/src/test/java/org/openapijsonschematools/codegen/generators/DefaultGeneratorTest.java @@ -690,6 +690,7 @@ public void testComposedSchemaAllOfDiscriminatorMap() { DefaultGenerator codegen = new DefaultGenerator(); codegen.setOpenAPI(openAPI); codegen.setLegacyDiscriminatorBehavior(false); + codegen.setModelPackage("components"); Schema sc; String modelName; @@ -826,6 +827,7 @@ public void testComposedSchemaAllOfDiscriminatorMapLegacy() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/allOf_composition_discriminator.yaml"); DefaultGenerator codegen = new DefaultGenerator(); // codegen.legacyDiscriminatorBehavior remains false in the legacy use case + codegen.setModelPackage("components"); codegen.setOpenAPI(openAPI); Schema sc; String modelName; @@ -1429,9 +1431,10 @@ public void testResponseWithNoSchemaInHeaders() { Operation operation1 = new Operation().operationId("op1").responses(new ApiResponses().addApiResponse("2XX", response2XX)); openAPI.path("/here", new PathItem().get(operation1)); final DefaultGenerator codegen = new DefaultGenerator(); + codegen.setModelPackage("components"); codegen.setOpenAPI(openAPI); - CodegenResponse cr = codegen.fromResponse(response2XX, ""); + CodegenResponse cr = codegen.fromResponse(response2XX, "#/components/response/SomeWildcardResponse"); Assert.assertNotNull(cr); Assert.assertNotNull(cr.headers); } @@ -1533,6 +1536,7 @@ public void integerSchemaPropertyAndModelTest() { final Schema schema = new IntegerSchema().format("int32"); final DefaultGenerator codegen = new DefaultGenerator(); codegen.setOpenAPI(openAPI); + codegen.setModelPackage("components"); //Property: final CodegenSchema cp = codegen.fromSchema( @@ -1618,6 +1622,7 @@ public void numberFloatSchemaPropertyAndModelTest() { OpenAPI openAPI = TestUtils.createOpenAPI(); final Schema schema = new NumberSchema().format("float"); final DefaultGenerator codegen = new DefaultGenerator(); + codegen.setModelPackage("components"); codegen.setOpenAPI(openAPI); //Property: @@ -1648,6 +1653,7 @@ public void numberDoubleSchemaPropertyAndModelTest() { OpenAPI openAPI = TestUtils.createOpenAPI(); final Schema schema = new NumberSchema().format("double"); final DefaultGenerator codegen = new DefaultGenerator(); + codegen.setModelPackage("components"); codegen.setOpenAPI(openAPI); //Property: diff --git a/src/test/resources/3_0/python/petstore_customized.yaml b/src/test/resources/3_0/python/petstore_customized.yaml index d965194bf48..cbd58ca17e6 100644 --- a/src/test/resources/3_0/python/petstore_customized.yaml +++ b/src/test/resources/3_0/python/petstore_customized.yaml @@ -1482,6 +1482,34 @@ paths: allOf: - type: string minLength: 1 + /fake/multipleRequestBodyContentTypes/: + post: + tags: + - fake + summary: testing composed schemas at inline locations + description: composed schemas at inline locations + multiple requestBody content types + operationId: multipleRequestBodyContentTypes + requestBody: + description: multiple (inline) request body content types + content: + application/json: + schema: + type: object + properties: + a: + type: string + multipart/form-data: + schema: + type: object + properties: + b: + type: string + responses: + 200: + description: success + content: + application/json: + schema: {} '/fake/objInQuery': get: tags: