Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit d03f07d

Browse files
committed
Samples regenrated, added missing space
1 parent 15e66ee commit d03f07d

File tree

220 files changed

+530
-1052
lines changed
  • modules/openapi-json-schema-generator/src/main/resources/python
  • samples/openapi3/client
    • 3_0_3_unit_test/python/unit_test_api/paths
      • response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types
      • response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types
      • response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types
      • response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types
      • response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types
      • response_body_post_allof_response_body_for_content_types
      • response_body_post_allof_simple_types_response_body_for_content_types
      • response_body_post_allof_with_base_schema_response_body_for_content_types
      • response_body_post_allof_with_one_empty_schema_response_body_for_content_types
      • response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types
      • response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types
      • response_body_post_allof_with_two_empty_schemas_response_body_for_content_types
      • response_body_post_anyof_complex_types_response_body_for_content_types
      • response_body_post_anyof_response_body_for_content_types
      • response_body_post_anyof_with_base_schema_response_body_for_content_types
      • response_body_post_anyof_with_one_empty_schema_response_body_for_content_types
      • response_body_post_array_type_matches_arrays_response_body_for_content_types
      • response_body_post_boolean_type_matches_booleans_response_body_for_content_types
      • response_body_post_by_int_response_body_for_content_types
      • response_body_post_by_number_response_body_for_content_types
      • response_body_post_by_small_number_response_body_for_content_types
      • response_body_post_date_time_format_response_body_for_content_types
      • response_body_post_email_format_response_body_for_content_types
      • response_body_post_enum_with0_does_not_match_false_response_body_for_content_types
      • response_body_post_enum_with1_does_not_match_true_response_body_for_content_types
      • response_body_post_enum_with_escaped_characters_response_body_for_content_types
      • response_body_post_enum_with_false_does_not_match0_response_body_for_content_types
      • response_body_post_enum_with_true_does_not_match1_response_body_for_content_types
      • response_body_post_enums_in_properties_response_body_for_content_types
      • response_body_post_forbidden_property_response_body_for_content_types
      • response_body_post_hostname_format_response_body_for_content_types
      • response_body_post_integer_type_matches_integers_response_body_for_content_types
      • response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types
      • response_body_post_invalid_string_value_for_default_response_body_for_content_types
      • response_body_post_ipv4_format_response_body_for_content_types
      • response_body_post_ipv6_format_response_body_for_content_types
      • response_body_post_json_pointer_format_response_body_for_content_types
      • response_body_post_maximum_validation_response_body_for_content_types
      • response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types
      • response_body_post_maxitems_validation_response_body_for_content_types
      • response_body_post_maxlength_validation_response_body_for_content_types
      • response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types
      • response_body_post_maxproperties_validation_response_body_for_content_types
      • response_body_post_minimum_validation_response_body_for_content_types
      • response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types
      • response_body_post_minitems_validation_response_body_for_content_types
      • response_body_post_minlength_validation_response_body_for_content_types
      • response_body_post_minproperties_validation_response_body_for_content_types
      • response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types
      • response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types
      • response_body_post_nested_items_response_body_for_content_types
      • response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types
      • response_body_post_not_more_complex_schema_response_body_for_content_types
      • response_body_post_not_response_body_for_content_types
      • response_body_post_nul_characters_in_strings_response_body_for_content_types
      • response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types
      • response_body_post_number_type_matches_numbers_response_body_for_content_types
      • response_body_post_object_properties_validation_response_body_for_content_types
      • response_body_post_object_type_matches_objects_response_body_for_content_types
      • response_body_post_oneof_complex_types_response_body_for_content_types
      • response_body_post_oneof_response_body_for_content_types
      • response_body_post_oneof_with_base_schema_response_body_for_content_types
      • response_body_post_oneof_with_empty_schema_response_body_for_content_types
      • response_body_post_oneof_with_required_response_body_for_content_types
      • response_body_post_pattern_is_not_anchored_response_body_for_content_types
      • response_body_post_pattern_validation_response_body_for_content_types
      • response_body_post_properties_with_escaped_characters_response_body_for_content_types
      • response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types
      • response_body_post_ref_in_additionalproperties_response_body_for_content_types
      • response_body_post_ref_in_allof_response_body_for_content_types
      • response_body_post_ref_in_anyof_response_body_for_content_types
      • response_body_post_ref_in_items_response_body_for_content_types
      • response_body_post_ref_in_not_response_body_for_content_types
      • response_body_post_ref_in_oneof_response_body_for_content_types
      • response_body_post_ref_in_property_response_body_for_content_types
      • response_body_post_required_default_validation_response_body_for_content_types
      • response_body_post_required_validation_response_body_for_content_types
      • response_body_post_required_with_empty_array_response_body_for_content_types
      • response_body_post_required_with_escaped_characters_response_body_for_content_types
      • response_body_post_simple_enum_validation_response_body_for_content_types
      • response_body_post_string_type_matches_strings_response_body_for_content_types
      • response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types
      • response_body_post_uniqueitems_false_validation_response_body_for_content_types
      • response_body_post_uniqueitems_validation_response_body_for_content_types
      • response_body_post_uri_format_response_body_for_content_types
      • response_body_post_uri_reference_format_response_body_for_content_types
      • response_body_post_uri_template_format_response_body_for_content_types
    • features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators
    • petstore/python

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+530
-1052
lines changed

modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{/eq}}
1717
{{/if}}
1818
{{#with bodyParam}}
19-
body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}schemas.Unset] = schemas.unset,
19+
body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}schemas.Unset] = schemas.unset,
2020
{{/with}}
2121
{{/if}}
2222
{{/if}}

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo
7272
@typing.overload
7373
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
7474
self,
75-
skip_deserialization: typing_extensions.Literal[True],
7675
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7776
stream: bool = False,
7877
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -150,7 +149,6 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod
150149
@typing.overload
151150
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
152151
self,
153-
skip_deserialization: typing_extensions.Literal[True],
154152
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
155153
stream: bool = False,
156154
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -200,7 +198,6 @@ def post(
200198
@typing.overload
201199
def post(
202200
self,
203-
skip_deserialization: typing_extensions.Literal[True],
204201
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
205202
stream: bool = False,
206203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class BaseApi(api_client.Api):
6767
@typing.overload
6868
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
6969
self,
70-
skip_deserialization: typing_extensions.Literal[True],
7170
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7271
stream: bool = False,
7372
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -145,7 +144,6 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon
145144
@typing.overload
146145
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
147146
self,
148-
skip_deserialization: typing_extensions.Literal[True],
149147
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
150148
stream: bool = False,
151149
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -195,7 +193,6 @@ class ApiForpost(BaseApi):
195193
@typing.overload
196194
def post(
197195
self,
198-
skip_deserialization: typing_extensions.Literal[True],
199196
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
200197
stream: bool = False,
201198
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_
7272
@typing.overload
7373
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
7474
self,
75-
skip_deserialization: typing_extensions.Literal[True],
7675
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7776
stream: bool = False,
7877
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -150,7 +149,6 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t
150149
@typing.overload
151150
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
152151
self,
153-
skip_deserialization: typing_extensions.Literal[True],
154152
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
155153
stream: bool = False,
156154
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -200,7 +198,6 @@ def post(
200198
@typing.overload
201199
def post(
202200
self,
203-
skip_deserialization: typing_extensions.Literal[True],
204201
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
205202
stream: bool = False,
206203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class BaseApi(api_client.Api):
6767
@typing.overload
6868
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
6969
self,
70-
skip_deserialization: typing_extensions.Literal[True],
7170
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7271
stream: bool = False,
7372
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -145,7 +144,6 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas
145144
@typing.overload
146145
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
147146
self,
148-
skip_deserialization: typing_extensions.Literal[True],
149147
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
150148
stream: bool = False,
151149
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -195,7 +193,6 @@ class ApiForpost(BaseApi):
195193
@typing.overload
196194
def post(
197195
self,
198-
skip_deserialization: typing_extensions.Literal[True],
199196
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
200197
stream: bool = False,
201198
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ
7272
@typing.overload
7373
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
7474
self,
75-
skip_deserialization: typing_extensions.Literal[True],
7675
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7776
stream: bool = False,
7877
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -150,7 +149,6 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type
150149
@typing.overload
151150
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
152151
self,
153-
skip_deserialization: typing_extensions.Literal[True],
154152
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
155153
stream: bool = False,
156154
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -200,7 +198,6 @@ def post(
200198
@typing.overload
201199
def post(
202200
self,
203-
skip_deserialization: typing_extensions.Literal[True],
204201
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
205202
stream: bool = False,
206203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class BaseApi(api_client.Api):
6767
@typing.overload
6868
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
6969
self,
70-
skip_deserialization: typing_extensions.Literal[True],
7170
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7271
stream: bool = False,
7372
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -145,7 +144,6 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp
145144
@typing.overload
146145
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
147146
self,
148-
skip_deserialization: typing_extensions.Literal[True],
149147
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
150148
stream: bool = False,
151149
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -195,7 +193,6 @@ class ApiForpost(BaseApi):
195193
@typing.overload
196194
def post(
197195
self,
198-
skip_deserialization: typing_extensions.Literal[True],
199196
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
200197
stream: bool = False,
201198
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_
7272
@typing.overload
7373
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
7474
self,
75-
skip_deserialization: typing_extensions.Literal[True],
7675
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7776
stream: bool = False,
7877
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -150,7 +149,6 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c
150149
@typing.overload
151150
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
152151
self,
153-
skip_deserialization: typing_extensions.Literal[True],
154152
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
155153
stream: bool = False,
156154
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -200,7 +198,6 @@ def post(
200198
@typing.overload
201199
def post(
202200
self,
203-
skip_deserialization: typing_extensions.Literal[True],
204201
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
205202
stream: bool = False,
206203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class BaseApi(api_client.Api):
6767
@typing.overload
6868
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
6969
self,
70-
skip_deserialization: typing_extensions.Literal[True],
7170
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7271
stream: bool = False,
7372
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -145,7 +144,6 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy
145144
@typing.overload
146145
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
147146
self,
148-
skip_deserialization: typing_extensions.Literal[True],
149147
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
150148
stream: bool = False,
151149
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -195,7 +193,6 @@ class ApiForpost(BaseApi):
195193
@typing.overload
196194
def post(
197195
self,
198-
skip_deserialization: typing_extensions.Literal[True],
199196
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
200197
stream: bool = False,
201198
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
7272
@typing.overload
7373
def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
7474
self,
75-
skip_deserialization: typing_extensions.Literal[True],
7675
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7776
stream: bool = False,
7877
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -150,7 +149,6 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
150149
@typing.overload
151150
def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
152151
self,
153-
skip_deserialization: typing_extensions.Literal[True],
154152
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
155153
stream: bool = False,
156154
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -200,7 +198,6 @@ def post(
200198
@typing.overload
201199
def post(
202200
self,
203-
skip_deserialization: typing_extensions.Literal[True],
204201
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
205202
stream: bool = False,
206203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

0 commit comments

Comments
 (0)