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

Commit 9c04a81

Browse files
committed
Fixes SerializedRequestBody['fields'] type
1 parent 5bff212 commit 9c04a81

File tree

2 files changed

+2
-2
lines changed
  • modules/openapi-json-schema-generator/src/main/resources/python
  • samples/openapi3/client/petstore/python/src/petstore_api

2 files changed

+2
-2
lines changed

modules/openapi-json-schema-generator/src/main/resources/python/api_client.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ class Api(TypedDictInputVerifier):
12711271

12721272
class SerializedRequestBody(typing_extensions.TypedDict, total=False):
12731273
body: typing.Union[str, bytes]
1274-
fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
1274+
fields: typing.Tuple[RequestField, ...]
12751275

12761276

12771277
class RequestBody(StyleFormSerializer, JSONDetector):

samples/openapi3/client/petstore/python/src/petstore_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def _verify_response_status(response: api_response.ApiResponse):
12731273

12741274
class SerializedRequestBody(typing_extensions.TypedDict, total=False):
12751275
body: typing.Union[str, bytes]
1276-
fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
1276+
fields: typing.Tuple[RequestField, ...]
12771277

12781278

12791279
class RequestBody(StyleFormSerializer, JSONDetector):

0 commit comments

Comments
 (0)