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

Commit 6fb7bea

Browse files
committed
Samples regenerated
1 parent 226f539 commit 6fb7bea

File tree

464 files changed

+4166
-4164
lines changed

Some content is hidden

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

464 files changed

+4166
-4164
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}},
55
{{/with}}
66
{{/if}}
7+
{{#if isOverload}}
8+
{{#eq skipDeserialization "True"}}
9+
skip_deserialization: typing_extensions.Literal[True],
10+
{{/eq}}
11+
{{/if}}
712
{{#if queryParams}}
813
query_params: RequestQueryParams = frozendict.frozendict(),
914
{{/if}}
@@ -32,14 +37,11 @@
3237
stream: bool = False,
3338
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
3439
{{#if isOverload}}
35-
{{#eq skipDeserialization "True"}}
36-
skip_deserialization: typing_extensions.Literal[True] = True,
37-
{{/eq}}
3840
{{#eq skipDeserialization "False"}}
39-
skip_deserialization: typing_extensions.Literal[False] = False,
41+
skip_deserialization: typing_extensions.Literal[False] = ...,
4042
{{/eq}}
4143
{{#eq skipDeserialization "null"}}
42-
skip_deserialization: bool = False,
44+
skip_deserialization: bool = ...,
4345
{{/eq}}
4446
{{else}}
4547
skip_deserialization: bool = False,

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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
6666
content_type: str = 'application/json',
6767
stream: bool = False,
6868
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
69-
skip_deserialization: typing_extensions.Literal[False] = False,
69+
skip_deserialization: typing_extensions.Literal[False] = ...,
7070
) -> typing.Union[
7171
ApiResponseFor200,
7272
]: ...
@@ -75,10 +75,10 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
7575
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
7676
self,
7777
body: typing.Union[SchemaForRequestBodyApplicationJson,],
78+
skip_deserialization: typing_extensions.Literal[True],
7879
content_type: str = 'application/json',
7980
stream: bool = False,
8081
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
81-
skip_deserialization: typing_extensions.Literal[True] = True,
8282
) -> api_client.ApiResponseWithoutDeserialization: ...
8383

8484
@typing.overload
@@ -88,7 +88,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
8888
content_type: str = 'application/json',
8989
stream: bool = False,
9090
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
91-
skip_deserialization: bool = False,
91+
skip_deserialization: bool = ...,
9292
) -> typing.Union[
9393
ApiResponseFor200,
9494
api_client.ApiResponseWithoutDeserialization,
@@ -158,7 +158,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
158158
content_type: str = 'application/json',
159159
stream: bool = False,
160160
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
161-
skip_deserialization: typing_extensions.Literal[False] = False,
161+
skip_deserialization: typing_extensions.Literal[False] = ...,
162162
) -> typing.Union[
163163
ApiResponseFor200,
164164
]: ...
@@ -167,10 +167,10 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
167167
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
168168
self,
169169
body: typing.Union[SchemaForRequestBodyApplicationJson,],
170+
skip_deserialization: typing_extensions.Literal[True],
170171
content_type: str = 'application/json',
171172
stream: bool = False,
172173
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
173-
skip_deserialization: typing_extensions.Literal[True] = True,
174174
) -> api_client.ApiResponseWithoutDeserialization: ...
175175

176176
@typing.overload
@@ -180,7 +180,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
180180
content_type: str = 'application/json',
181181
stream: bool = False,
182182
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
183-
skip_deserialization: bool = False,
183+
skip_deserialization: bool = ...,
184184
) -> typing.Union[
185185
ApiResponseFor200,
186186
api_client.ApiResponseWithoutDeserialization,
@@ -213,7 +213,7 @@ def post(
213213
content_type: str = 'application/json',
214214
stream: bool = False,
215215
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
216-
skip_deserialization: typing_extensions.Literal[False] = False,
216+
skip_deserialization: typing_extensions.Literal[False] = ...,
217217
) -> typing.Union[
218218
ApiResponseFor200,
219219
]: ...
@@ -222,10 +222,10 @@ def post(
222222
def post(
223223
self,
224224
body: typing.Union[SchemaForRequestBodyApplicationJson,],
225+
skip_deserialization: typing_extensions.Literal[True],
225226
content_type: str = 'application/json',
226227
stream: bool = False,
227228
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
228-
skip_deserialization: typing_extensions.Literal[True] = True,
229229
) -> api_client.ApiResponseWithoutDeserialization: ...
230230

231231
@typing.overload
@@ -235,7 +235,7 @@ def post(
235235
content_type: str = 'application/json',
236236
stream: bool = False,
237237
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
238-
skip_deserialization: bool = False,
238+
skip_deserialization: bool = ...,
239239
) -> typing.Union[
240240
ApiResponseFor200,
241241
api_client.ApiResponseWithoutDeserialization,

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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BaseApi(api_client.Api):
6161
content_type: str = 'application/json',
6262
stream: bool = False,
6363
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
64-
skip_deserialization: typing_extensions.Literal[False] = False,
64+
skip_deserialization: typing_extensions.Literal[False] = ...,
6565
) -> typing.Union[
6666
ApiResponseFor200,
6767
]: ...
@@ -70,10 +70,10 @@ class BaseApi(api_client.Api):
7070
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
7171
self,
7272
body: typing.Union[SchemaForRequestBodyApplicationJson,],
73+
skip_deserialization: typing_extensions.Literal[True],
7374
content_type: str = 'application/json',
7475
stream: bool = False,
7576
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
76-
skip_deserialization: typing_extensions.Literal[True] = True,
7777
) -> api_client.ApiResponseWithoutDeserialization: ...
7878

7979
@typing.overload
@@ -83,7 +83,7 @@ class BaseApi(api_client.Api):
8383
content_type: str = 'application/json',
8484
stream: bool = False,
8585
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
86-
skip_deserialization: bool = False,
86+
skip_deserialization: bool = ...,
8787
) -> typing.Union[
8888
ApiResponseFor200,
8989
api_client.ApiResponseWithoutDeserialization,
@@ -153,7 +153,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
153153
content_type: str = 'application/json',
154154
stream: bool = False,
155155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
156-
skip_deserialization: typing_extensions.Literal[False] = False,
156+
skip_deserialization: typing_extensions.Literal[False] = ...,
157157
) -> typing.Union[
158158
ApiResponseFor200,
159159
]: ...
@@ -162,10 +162,10 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
162162
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
163163
self,
164164
body: typing.Union[SchemaForRequestBodyApplicationJson,],
165+
skip_deserialization: typing_extensions.Literal[True],
165166
content_type: str = 'application/json',
166167
stream: bool = False,
167168
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
168-
skip_deserialization: typing_extensions.Literal[True] = True,
169169
) -> api_client.ApiResponseWithoutDeserialization: ...
170170

171171
@typing.overload
@@ -175,7 +175,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
175175
content_type: str = 'application/json',
176176
stream: bool = False,
177177
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
178-
skip_deserialization: bool = False,
178+
skip_deserialization: bool = ...,
179179
) -> typing.Union[
180180
ApiResponseFor200,
181181
api_client.ApiResponseWithoutDeserialization,
@@ -208,7 +208,7 @@ class ApiForpost(BaseApi):
208208
content_type: str = 'application/json',
209209
stream: bool = False,
210210
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
211-
skip_deserialization: typing_extensions.Literal[False] = False,
211+
skip_deserialization: typing_extensions.Literal[False] = ...,
212212
) -> typing.Union[
213213
ApiResponseFor200,
214214
]: ...
@@ -217,10 +217,10 @@ class ApiForpost(BaseApi):
217217
def post(
218218
self,
219219
body: typing.Union[SchemaForRequestBodyApplicationJson,],
220+
skip_deserialization: typing_extensions.Literal[True],
220221
content_type: str = 'application/json',
221222
stream: bool = False,
222223
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
223-
skip_deserialization: typing_extensions.Literal[True] = True,
224224
) -> api_client.ApiResponseWithoutDeserialization: ...
225225

226226
@typing.overload
@@ -230,7 +230,7 @@ class ApiForpost(BaseApi):
230230
content_type: str = 'application/json',
231231
stream: bool = False,
232232
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
233-
skip_deserialization: bool = False,
233+
skip_deserialization: bool = ...,
234234
) -> typing.Union[
235235
ApiResponseFor200,
236236
api_client.ApiResponseWithoutDeserialization,

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
6666
content_type: str = 'application/json',
6767
stream: bool = False,
6868
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
69-
skip_deserialization: typing_extensions.Literal[False] = False,
69+
skip_deserialization: typing_extensions.Literal[False] = ...,
7070
) -> typing.Union[
7171
ApiResponseFor200,
7272
]: ...
@@ -75,10 +75,10 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
7575
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
7676
self,
7777
body: typing.Union[SchemaForRequestBodyApplicationJson,],
78+
skip_deserialization: typing_extensions.Literal[True],
7879
content_type: str = 'application/json',
7980
stream: bool = False,
8081
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
81-
skip_deserialization: typing_extensions.Literal[True] = True,
8282
) -> api_client.ApiResponseWithoutDeserialization: ...
8383

8484
@typing.overload
@@ -88,7 +88,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
8888
content_type: str = 'application/json',
8989
stream: bool = False,
9090
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
91-
skip_deserialization: bool = False,
91+
skip_deserialization: bool = ...,
9292
) -> typing.Union[
9393
ApiResponseFor200,
9494
api_client.ApiResponseWithoutDeserialization,
@@ -158,7 +158,7 @@ def post_additionalproperties_are_allowed_by_default_request_body(
158158
content_type: str = 'application/json',
159159
stream: bool = False,
160160
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
161-
skip_deserialization: typing_extensions.Literal[False] = False,
161+
skip_deserialization: typing_extensions.Literal[False] = ...,
162162
) -> typing.Union[
163163
ApiResponseFor200,
164164
]: ...
@@ -167,10 +167,10 @@ def post_additionalproperties_are_allowed_by_default_request_body(
167167
def post_additionalproperties_are_allowed_by_default_request_body(
168168
self,
169169
body: typing.Union[SchemaForRequestBodyApplicationJson,],
170+
skip_deserialization: typing_extensions.Literal[True],
170171
content_type: str = 'application/json',
171172
stream: bool = False,
172173
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
173-
skip_deserialization: typing_extensions.Literal[True] = True,
174174
) -> api_client.ApiResponseWithoutDeserialization: ...
175175

176176
@typing.overload
@@ -180,7 +180,7 @@ def post_additionalproperties_are_allowed_by_default_request_body(
180180
content_type: str = 'application/json',
181181
stream: bool = False,
182182
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
183-
skip_deserialization: bool = False,
183+
skip_deserialization: bool = ...,
184184
) -> typing.Union[
185185
ApiResponseFor200,
186186
api_client.ApiResponseWithoutDeserialization,
@@ -213,7 +213,7 @@ def post(
213213
content_type: str = 'application/json',
214214
stream: bool = False,
215215
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
216-
skip_deserialization: typing_extensions.Literal[False] = False,
216+
skip_deserialization: typing_extensions.Literal[False] = ...,
217217
) -> typing.Union[
218218
ApiResponseFor200,
219219
]: ...
@@ -222,10 +222,10 @@ def post(
222222
def post(
223223
self,
224224
body: typing.Union[SchemaForRequestBodyApplicationJson,],
225+
skip_deserialization: typing_extensions.Literal[True],
225226
content_type: str = 'application/json',
226227
stream: bool = False,
227228
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
228-
skip_deserialization: typing_extensions.Literal[True] = True,
229229
) -> api_client.ApiResponseWithoutDeserialization: ...
230230

231231
@typing.overload
@@ -235,7 +235,7 @@ def post(
235235
content_type: str = 'application/json',
236236
stream: bool = False,
237237
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
238-
skip_deserialization: bool = False,
238+
skip_deserialization: bool = ...,
239239
) -> typing.Union[
240240
ApiResponseFor200,
241241
api_client.ApiResponseWithoutDeserialization,

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BaseApi(api_client.Api):
6161
content_type: str = 'application/json',
6262
stream: bool = False,
6363
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
64-
skip_deserialization: typing_extensions.Literal[False] = False,
64+
skip_deserialization: typing_extensions.Literal[False] = ...,
6565
) -> typing.Union[
6666
ApiResponseFor200,
6767
]: ...
@@ -70,10 +70,10 @@ class BaseApi(api_client.Api):
7070
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
7171
self,
7272
body: typing.Union[SchemaForRequestBodyApplicationJson,],
73+
skip_deserialization: typing_extensions.Literal[True],
7374
content_type: str = 'application/json',
7475
stream: bool = False,
7576
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
76-
skip_deserialization: typing_extensions.Literal[True] = True,
7777
) -> api_client.ApiResponseWithoutDeserialization: ...
7878

7979
@typing.overload
@@ -83,7 +83,7 @@ class BaseApi(api_client.Api):
8383
content_type: str = 'application/json',
8484
stream: bool = False,
8585
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
86-
skip_deserialization: bool = False,
86+
skip_deserialization: bool = ...,
8787
) -> typing.Union[
8888
ApiResponseFor200,
8989
api_client.ApiResponseWithoutDeserialization,
@@ -153,7 +153,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
153153
content_type: str = 'application/json',
154154
stream: bool = False,
155155
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
156-
skip_deserialization: typing_extensions.Literal[False] = False,
156+
skip_deserialization: typing_extensions.Literal[False] = ...,
157157
) -> typing.Union[
158158
ApiResponseFor200,
159159
]: ...
@@ -162,10 +162,10 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
162162
def post_additionalproperties_are_allowed_by_default_request_body(
163163
self,
164164
body: typing.Union[SchemaForRequestBodyApplicationJson,],
165+
skip_deserialization: typing_extensions.Literal[True],
165166
content_type: str = 'application/json',
166167
stream: bool = False,
167168
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
168-
skip_deserialization: typing_extensions.Literal[True] = True,
169169
) -> api_client.ApiResponseWithoutDeserialization: ...
170170

171171
@typing.overload
@@ -175,7 +175,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
175175
content_type: str = 'application/json',
176176
stream: bool = False,
177177
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
178-
skip_deserialization: bool = False,
178+
skip_deserialization: bool = ...,
179179
) -> typing.Union[
180180
ApiResponseFor200,
181181
api_client.ApiResponseWithoutDeserialization,
@@ -208,7 +208,7 @@ class ApiForpost(BaseApi):
208208
content_type: str = 'application/json',
209209
stream: bool = False,
210210
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
211-
skip_deserialization: typing_extensions.Literal[False] = False,
211+
skip_deserialization: typing_extensions.Literal[False] = ...,
212212
) -> typing.Union[
213213
ApiResponseFor200,
214214
]: ...
@@ -217,10 +217,10 @@ class ApiForpost(BaseApi):
217217
def post(
218218
self,
219219
body: typing.Union[SchemaForRequestBodyApplicationJson,],
220+
skip_deserialization: typing_extensions.Literal[True],
220221
content_type: str = 'application/json',
221222
stream: bool = False,
222223
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
223-
skip_deserialization: typing_extensions.Literal[True] = True,
224224
) -> api_client.ApiResponseWithoutDeserialization: ...
225225

226226
@typing.overload
@@ -230,7 +230,7 @@ class ApiForpost(BaseApi):
230230
content_type: str = 'application/json',
231231
stream: bool = False,
232232
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
233-
skip_deserialization: bool = False,
233+
skip_deserialization: bool = ...,
234234
) -> typing.Union[
235235
ApiResponseFor200,
236236
api_client.ApiResponseWithoutDeserialization,

0 commit comments

Comments
 (0)