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

Fixes issue 39 skip deserialization true overload #40

Merged
merged 2 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
{{/eq}}
{{/with}}
{{/if}}
{{else}}
{{#if isOverload}}
{{#eq skipDeserialization "True"}}
skip_deserialization: typing_extensions.Literal[True],
{{/eq}}
{{/if}}
{{/if}}
{{#if queryParams}}
query_params: RequestQueryParams = frozendict.frozendict(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo
@typing.overload
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod
@typing.overload
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon
@typing.overload
def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_
@typing.overload
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t
@typing.overload
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas
@typing.overload
def post_additionalproperties_are_allowed_by_default_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ
@typing.overload
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type
@typing.overload
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp
@typing.overload
def post_additionalproperties_can_exist_by_itself_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_
@typing.overload
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c
@typing.overload
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy
@typing.overload
def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
@typing.overload
def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
@typing.overload
def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi):
@typing.overload
def post_allof_combined_with_anyof_oneof_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_allof_response_body_for_content_types_oapg(
@typing.overload
def _post_allof_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_allof_response_body_for_content_types(
@typing.overload
def post_allof_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_allof_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAllofResponseBodyForContentTypes(BaseApi):
@typing.overload
def post_allof_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_allof_simple_types_response_body_for_content_types_oapg(
@typing.overload
def _post_allof_simple_types_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_allof_simple_types_response_body_for_content_types(
@typing.overload
def post_allof_simple_types_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_allof_simple_types_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi):
@typing.overload
def post_allof_simple_types_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg(
@typing.overload
def _post_allof_with_base_schema_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -148,6 +149,7 @@ def post_allof_with_base_schema_response_body_for_content_types(
@typing.overload
def post_allof_with_base_schema_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -197,6 +199,7 @@ def post(
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _post_allof_with_base_schema_response_body_for_content_types_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi):
@typing.overload
def post_allof_with_base_schema_response_body_for_content_types(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down Expand Up @@ -192,6 +194,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
skip_deserialization: typing_extensions.Literal[True],
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
Expand Down
Loading