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

Commit 4311511

Browse files
authored
Merge pull request #40 from openapi-json-schema-tools/fixes_issue_39_skip_deserialization_True_overload
Fixes issue 39 skip deserialization true overload
2 parents 5b44d6b + 5d6aa9a commit 4311511

File tree

217 files changed

+654
-0
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
    • petstore/python/petstore_api/paths

Some content is hidden

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

217 files changed

+654
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
{{/eq}}
7474
{{/with}}
7575
{{/if}}
76+
{{else}}
77+
{{#if isOverload}}
78+
{{#eq skipDeserialization "True"}}
79+
skip_deserialization: typing_extensions.Literal[True],
80+
{{/eq}}
81+
{{/if}}
7682
{{/if}}
7783
{{#if queryParams}}
7884
query_params: RequestQueryParams = frozendict.frozendict(),

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo
7171
@typing.overload
7272
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod
148149
@typing.overload
149150
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon
143144
@typing.overload
144145
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_
7171
@typing.overload
7272
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t
148149
@typing.overload
149150
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas
143144
@typing.overload
144145
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ
7171
@typing.overload
7272
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type
148149
@typing.overload
149150
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp
143144
@typing.overload
144145
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_
7171
@typing.overload
7272
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c
148149
@typing.overload
149150
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy
143144
@typing.overload
144145
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
7171
@typing.overload
7272
def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
148149
@typing.overload
149150
def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi):
143144
@typing.overload
144145
def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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_response_body_for_content_types/post.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_allof_response_body_for_content_types_oapg(
7171
@typing.overload
7272
def _post_allof_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_allof_response_body_for_content_types(
148149
@typing.overload
149150
def post_allof_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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_response_body_for_content_types/post.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_allof_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAllofResponseBodyForContentTypes(BaseApi):
143144
@typing.overload
144145
def post_allof_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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_simple_types_response_body_for_content_types/post.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_allof_simple_types_response_body_for_content_types_oapg(
7171
@typing.overload
7272
def _post_allof_simple_types_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_allof_simple_types_response_body_for_content_types(
148149
@typing.overload
149150
def post_allof_simple_types_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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_simple_types_response_body_for_content_types/post.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_allof_simple_types_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi):
143144
@typing.overload
144145
def post_allof_simple_types_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
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_with_base_schema_response_body_for_content_types/post.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg(
7171
@typing.overload
7272
def _post_allof_with_base_schema_response_body_for_content_types_oapg(
7373
self,
74+
skip_deserialization: typing_extensions.Literal[True],
7475
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7576
stream: bool = False,
7677
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +149,7 @@ def post_allof_with_base_schema_response_body_for_content_types(
148149
@typing.overload
149150
def post_allof_with_base_schema_response_body_for_content_types(
150151
self,
152+
skip_deserialization: typing_extensions.Literal[True],
151153
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
152154
stream: bool = False,
153155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -197,6 +199,7 @@ def post(
197199
@typing.overload
198200
def post(
199201
self,
202+
skip_deserialization: typing_extensions.Literal[True],
200203
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
201204
stream: bool = False,
202205
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_with_base_schema_response_body_for_content_types/post.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
6666
@typing.overload
6767
def _post_allof_with_base_schema_response_body_for_content_types_oapg(
6868
self,
69+
skip_deserialization: typing_extensions.Literal[True],
6970
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
7071
stream: bool = False,
7172
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -143,6 +144,7 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi):
143144
@typing.overload
144145
def post_allof_with_base_schema_response_body_for_content_types(
145146
self,
147+
skip_deserialization: typing_extensions.Literal[True],
146148
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
147149
stream: bool = False,
148150
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
192194
@typing.overload
193195
def post(
194196
self,
197+
skip_deserialization: typing_extensions.Literal[True],
195198
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
196199
stream: bool = False,
197200
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,

0 commit comments

Comments
 (0)