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

Commit f021296

Browse files
committed
Update samples
1 parent 2cdfded commit f021296

File tree

349 files changed

+39156
-1047
lines changed
  • samples/openapi3/client/3_0_3_unit_test/python/unit_test_api
    • paths
      • request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body
      • request_body_post_additionalproperties_are_allowed_by_default_request_body
      • request_body_post_additionalproperties_can_exist_by_itself_request_body
      • request_body_post_additionalproperties_should_not_look_in_applicators_request_body
      • request_body_post_allof_combined_with_anyof_oneof_request_body
      • request_body_post_allof_request_body
      • request_body_post_allof_simple_types_request_body
      • request_body_post_allof_with_base_schema_request_body
      • request_body_post_allof_with_one_empty_schema_request_body
      • request_body_post_allof_with_the_first_empty_schema_request_body
      • request_body_post_allof_with_the_last_empty_schema_request_body
      • request_body_post_allof_with_two_empty_schemas_request_body
      • request_body_post_anyof_complex_types_request_body
      • request_body_post_anyof_request_body
      • request_body_post_anyof_with_base_schema_request_body
      • request_body_post_anyof_with_one_empty_schema_request_body
      • request_body_post_array_type_matches_arrays_request_body
      • request_body_post_boolean_type_matches_booleans_request_body
      • request_body_post_by_int_request_body
      • request_body_post_by_number_request_body
      • request_body_post_by_small_number_request_body
      • request_body_post_date_time_format_request_body
      • request_body_post_email_format_request_body
      • request_body_post_enum_with0_does_not_match_false_request_body
      • request_body_post_enum_with1_does_not_match_true_request_body
      • request_body_post_enum_with_escaped_characters_request_body
      • request_body_post_enum_with_false_does_not_match0_request_body
      • request_body_post_enum_with_true_does_not_match1_request_body
      • request_body_post_enums_in_properties_request_body
      • request_body_post_forbidden_property_request_body
      • request_body_post_hostname_format_request_body
      • request_body_post_integer_type_matches_integers_request_body
      • request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body
      • request_body_post_invalid_string_value_for_default_request_body
      • request_body_post_ipv4_format_request_body
      • request_body_post_ipv6_format_request_body
      • request_body_post_json_pointer_format_request_body
      • request_body_post_maximum_validation_request_body
      • request_body_post_maximum_validation_with_unsigned_integer_request_body
      • request_body_post_maxitems_validation_request_body
      • request_body_post_maxlength_validation_request_body
      • request_body_post_maxproperties0_means_the_object_is_empty_request_body
      • request_body_post_maxproperties_validation_request_body
      • request_body_post_minimum_validation_request_body
      • request_body_post_minimum_validation_with_signed_integer_request_body
      • request_body_post_minitems_validation_request_body
      • request_body_post_minlength_validation_request_body
      • request_body_post_minproperties_validation_request_body
      • request_body_post_nested_allof_to_check_validation_semantics_request_body
      • request_body_post_nested_anyof_to_check_validation_semantics_request_body
      • request_body_post_nested_items_request_body
      • request_body_post_nested_oneof_to_check_validation_semantics_request_body
      • request_body_post_not_more_complex_schema_request_body
      • request_body_post_not_request_body
      • request_body_post_nul_characters_in_strings_request_body
      • request_body_post_null_type_matches_only_the_null_object_request_body
      • request_body_post_number_type_matches_numbers_request_body
      • request_body_post_object_properties_validation_request_body
      • request_body_post_object_type_matches_objects_request_body
      • request_body_post_oneof_complex_types_request_body
      • request_body_post_oneof_request_body
      • request_body_post_oneof_with_base_schema_request_body
      • request_body_post_oneof_with_empty_schema_request_body
      • request_body_post_oneof_with_required_request_body
      • request_body_post_pattern_is_not_anchored_request_body
      • request_body_post_pattern_validation_request_body
      • request_body_post_properties_with_escaped_characters_request_body
      • request_body_post_property_named_ref_that_is_not_a_reference_request_body
      • request_body_post_ref_in_additionalproperties_request_body
      • request_body_post_ref_in_allof_request_body
      • request_body_post_ref_in_anyof_request_body
      • request_body_post_ref_in_items_request_body
      • request_body_post_ref_in_not_request_body
      • request_body_post_ref_in_oneof_request_body
      • request_body_post_ref_in_property_request_body
      • request_body_post_required_default_validation_request_body
      • request_body_post_required_validation_request_body
      • request_body_post_required_with_empty_array_request_body
      • request_body_post_required_with_escaped_characters_request_body
      • request_body_post_simple_enum_validation_request_body
      • request_body_post_string_type_matches_strings_request_body
      • request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body
      • request_body_post_uniqueitems_false_validation_request_body
      • request_body_post_uniqueitems_validation_request_body
      • request_body_post_uri_format_request_body
      • request_body_post_uri_reference_format_request_body
      • request_body_post_uri_template_format_request_body
      • 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

Some content is hidden

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

349 files changed

+39156
-1047
lines changed

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,16 @@ def _content_type_is_json(cls, content_type: str) -> bool:
816816
return True
817817
return False
818818

819+
Response_T = typing.TypeVar("Response_T", bound=ApiResponse)
820+
821+
class OpenApiResponse(JSONDetector, typing.Generic[Response_T]):
822+
response_cls: typing.Type[Response_T]
819823

820-
class OpenApiResponse(JSONDetector):
821824
__filename_content_disposition_pattern = re.compile('filename="(.+?)"')
822825

823826
def __init__(
824827
self,
825-
response_cls: typing.Type[ApiResponse] = ApiResponse,
828+
response_cls: typing.Type[Response_T] = ApiResponse,
826829
content: typing.Optional[typing.Dict[str, MediaType]] = None,
827830
headers: typing.Optional[typing.List[HeaderParameter]] = None,
828831
):
@@ -907,7 +910,7 @@ def __deserialize_multipart_form_data(
907910
for part in msg.get_payload()
908911
}
909912

910-
def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse:
913+
def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T:
911914
content_type = response.getheader('content-type')
912915
deserialized_body = unset
913916
streamed = response.supports_chunked_reads()

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

Lines changed: 117 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse):
5959

6060
class BaseApi(api_client.Api):
6161

62+
@typing.overload
63+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
64+
self: api_client.Api,
65+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
66+
content_type: str = 'application/json',
67+
stream: bool = False,
68+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
69+
skip_deserialization: typing_extensions.Literal[False] = False,
70+
) -> typing.Union[
71+
api_client.ApiResponse,
72+
]:
73+
...
74+
75+
@typing.overload
76+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
77+
self: api_client.Api,
78+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
79+
content_type: str = 'application/json',
80+
stream: bool = False,
81+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
82+
skip_deserialization: typing_extensions.Literal[True] = True,
83+
) -> api_client.ApiResponseWithoutDeserialization:
84+
...
85+
86+
@typing.overload
6287
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
6388
self: api_client.Api,
6489
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -67,7 +92,20 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
6792
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
6893
skip_deserialization: bool = False,
6994
) -> typing.Union[
70-
ApiResponseFor200,
95+
api_client.ApiResponse,
96+
api_client.ApiResponseWithoutDeserialization
97+
]:
98+
...
99+
100+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
101+
self: api_client.Api,
102+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
103+
content_type: str = 'application/json',
104+
stream: bool = False,
105+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
106+
skip_deserialization: bool = False,
107+
) -> typing.Union[
108+
api_client.ApiResponse,
71109
api_client.ApiResponseWithoutDeserialization
72110
]:
73111
"""
@@ -119,6 +157,44 @@ class instances
119157
class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi):
120158
# this class is used by api classes that refer to endpoints with operationId fn names
121159

160+
@typing.overload
161+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
162+
self: BaseApi,
163+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
164+
content_type: str = 'application/json',
165+
stream: bool = False,
166+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
167+
skip_deserialization: typing_extensions.Literal[False] = False,
168+
) -> typing.Union[
169+
api_client.ApiResponse,
170+
]:
171+
...
172+
173+
@typing.overload
174+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
175+
self: BaseApi,
176+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
177+
content_type: str = 'application/json',
178+
stream: bool = False,
179+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
180+
skip_deserialization: typing_extensions.Literal[True] = True,
181+
) -> api_client.ApiResponseWithoutDeserialization:
182+
...
183+
184+
@typing.overload
185+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
186+
self: BaseApi,
187+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
188+
content_type: str = 'application/json',
189+
stream: bool = False,
190+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
191+
skip_deserialization: bool = False,
192+
) -> typing.Union[
193+
api_client.ApiResponse,
194+
api_client.ApiResponseWithoutDeserialization
195+
]:
196+
...
197+
122198
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
123199
self: BaseApi,
124200
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -127,7 +203,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
127203
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
128204
skip_deserialization: bool = False,
129205
) -> typing.Union[
130-
ApiResponseFor200,
206+
api_client.ApiResponse,
131207
api_client.ApiResponseWithoutDeserialization
132208
]:
133209
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
@@ -142,6 +218,44 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
142218
class ApiForpost(BaseApi):
143219
# this class is used by api classes that refer to endpoints by path and http method names
144220

221+
@typing.overload
222+
def post(
223+
self: BaseApi,
224+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
225+
content_type: str = 'application/json',
226+
stream: bool = False,
227+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
228+
skip_deserialization: typing_extensions.Literal[False] = False,
229+
) -> typing.Union[
230+
api_client.ApiResponse,
231+
]:
232+
...
233+
234+
@typing.overload
235+
def post(
236+
self: BaseApi,
237+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
238+
content_type: str = 'application/json',
239+
stream: bool = False,
240+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
241+
skip_deserialization: typing_extensions.Literal[True] = True,
242+
) -> api_client.ApiResponseWithoutDeserialization:
243+
...
244+
245+
@typing.overload
246+
def post(
247+
self: BaseApi,
248+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
249+
content_type: str = 'application/json',
250+
stream: bool = False,
251+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
252+
skip_deserialization: bool = False,
253+
) -> typing.Union[
254+
api_client.ApiResponse,
255+
api_client.ApiResponseWithoutDeserialization
256+
]:
257+
...
258+
145259
def post(
146260
self: BaseApi,
147261
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -150,7 +264,7 @@ def post(
150264
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
151265
skip_deserialization: bool = False,
152266
) -> typing.Union[
153-
ApiResponseFor200,
267+
api_client.ApiResponse,
154268
api_client.ApiResponseWithoutDeserialization
155269
]:
156270
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(

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

Lines changed: 117 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AdditionalpropertiesAllowsASchemaWhichShou
3333

3434
class BaseApi(api_client.Api):
3535

36+
@typing.overload
37+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
38+
self: api_client.Api,
39+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
40+
content_type: str = 'application/json',
41+
stream: bool = False,
42+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
43+
skip_deserialization: typing_extensions.Literal[False] = False,
44+
) -> typing.Union[
45+
api_client.ApiResponse,
46+
]:
47+
...
48+
49+
@typing.overload
50+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
51+
self: api_client.Api,
52+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
53+
content_type: str = 'application/json',
54+
stream: bool = False,
55+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
56+
skip_deserialization: typing_extensions.Literal[True] = True,
57+
) -> api_client.ApiResponseWithoutDeserialization:
58+
...
59+
60+
@typing.overload
3661
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
3762
self: api_client.Api,
3863
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -41,7 +66,20 @@ class BaseApi(api_client.Api):
4166
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
4267
skip_deserialization: bool = False,
4368
) -> typing.Union[
44-
ApiResponseFor200,
69+
api_client.ApiResponse,
70+
api_client.ApiResponseWithoutDeserialization
71+
]:
72+
...
73+
74+
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
75+
self: api_client.Api,
76+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
77+
content_type: str = 'application/json',
78+
stream: bool = False,
79+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
80+
skip_deserialization: bool = False,
81+
) -> typing.Union[
82+
api_client.ApiResponse,
4583
api_client.ApiResponseWithoutDeserialization
4684
]:
4785
"""
@@ -93,6 +131,44 @@ class BaseApi(api_client.Api):
93131
class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi):
94132
# this class is used by api classes that refer to endpoints with operationId fn names
95133

134+
@typing.overload
135+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
136+
self: BaseApi,
137+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
138+
content_type: str = 'application/json',
139+
stream: bool = False,
140+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
141+
skip_deserialization: typing_extensions.Literal[False] = False,
142+
) -> typing.Union[
143+
api_client.ApiResponse,
144+
]:
145+
...
146+
147+
@typing.overload
148+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
149+
self: BaseApi,
150+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
151+
content_type: str = 'application/json',
152+
stream: bool = False,
153+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
154+
skip_deserialization: typing_extensions.Literal[True] = True,
155+
) -> api_client.ApiResponseWithoutDeserialization:
156+
...
157+
158+
@typing.overload
159+
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
160+
self: BaseApi,
161+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
162+
content_type: str = 'application/json',
163+
stream: bool = False,
164+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
165+
skip_deserialization: bool = False,
166+
) -> typing.Union[
167+
api_client.ApiResponse,
168+
api_client.ApiResponseWithoutDeserialization
169+
]:
170+
...
171+
96172
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
97173
self: BaseApi,
98174
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -101,7 +177,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
101177
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
102178
skip_deserialization: bool = False,
103179
) -> typing.Union[
104-
ApiResponseFor200,
180+
api_client.ApiResponse,
105181
api_client.ApiResponseWithoutDeserialization
106182
]:
107183
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
@@ -116,6 +192,44 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
116192
class ApiForpost(BaseApi):
117193
# this class is used by api classes that refer to endpoints by path and http method names
118194

195+
@typing.overload
196+
def post(
197+
self: BaseApi,
198+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
199+
content_type: str = 'application/json',
200+
stream: bool = False,
201+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
202+
skip_deserialization: typing_extensions.Literal[False] = False,
203+
) -> typing.Union[
204+
api_client.ApiResponse,
205+
]:
206+
...
207+
208+
@typing.overload
209+
def post(
210+
self: BaseApi,
211+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
212+
content_type: str = 'application/json',
213+
stream: bool = False,
214+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
215+
skip_deserialization: typing_extensions.Literal[True] = True,
216+
) -> api_client.ApiResponseWithoutDeserialization:
217+
...
218+
219+
@typing.overload
220+
def post(
221+
self: BaseApi,
222+
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
223+
content_type: str = 'application/json',
224+
stream: bool = False,
225+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
226+
skip_deserialization: bool = False,
227+
) -> typing.Union[
228+
api_client.ApiResponse,
229+
api_client.ApiResponseWithoutDeserialization
230+
]:
231+
...
232+
119233
def post(
120234
self: BaseApi,
121235
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
@@ -124,7 +238,7 @@ class ApiForpost(BaseApi):
124238
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
125239
skip_deserialization: bool = False,
126240
) -> typing.Union[
127-
ApiResponseFor200,
241+
api_client.ApiResponse,
128242
api_client.ApiResponseWithoutDeserialization
129243
]:
130244
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(

0 commit comments

Comments
 (0)