Skip to content

Commit c04b428

Browse files
committed
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 0.18.3
1 parent f804d4b commit c04b428

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
management:
22
openapi-checksum: 8e8183d84cace76310a3208e63cd7855
33
openapi-version: 0.1.0
4-
speakeasy-version: 0.18.1
4+
speakeasy-version: 0.18.3
55
python:
66
author: Speakeasy
77
description: Speakeasy API Client SDK for Python
88
packagename: speakeasy-client-sdk-python
9-
version: 0.10.1
9+
version: 0.10.2
1010
telemetryenabled: null

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="speakeasy-client-sdk-python",
11-
version="0.10.1",
11+
version="0.10.2",
1212
author="Speakeasy",
1313
description="Speakeasy API Client SDK for Python",
1414
long_description=long_description,

src/sdk/apiendpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def upsert_api_endpoint(self, request: operations.UpsertAPIEndpointRequest) -> o
233233
req_content_type, data, json, files = utils.serialize_request_body(request)
234234
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
235235
headers["content-type"] = req_content_type
236-
if data is None and form is None:
236+
if data is None and json is None:
237237
raise Exception('request body is required')
238238

239239
client = self._security_client

src/sdk/apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def upsert_api(self, request: operations.UpsertAPIRequest) -> operations.UpsertA
182182
req_content_type, data, json, files = utils.serialize_request_body(request)
183183
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
184184
headers["content-type"] = req_content_type
185-
if data is None and form is None:
185+
if data is None and json is None:
186186
raise Exception('request body is required')
187187

188188
client = self._security_client

src/sdk/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def insert_version_metadata(self, request: operations.InsertVersionMetadataReque
8686
req_content_type, data, json, files = utils.serialize_request_body(request)
8787
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
8888
headers["content-type"] = req_content_type
89-
if data is None and form is None:
89+
if data is None and json is None:
9090
raise Exception('request body is required')
9191

9292
client = self._security_client

src/sdk/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def register_schema(self, request: operations.RegisterSchemaRequest) -> operatio
238238
req_content_type, data, json, files = utils.serialize_request_body(request)
239239
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
240240
headers["content-type"] = req_content_type
241-
if data is None and form is None:
241+
if data is None and json is None:
242242
raise Exception('request body is required')
243243

244244
client = self._security_client

src/sdk/sdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class SDK:
3333
_security: shared.Security
3434
_server_url: str = SERVERS[SERVER_PROD]
3535
_language: str = "python"
36-
_sdk_version: str = "0.10.1"
37-
_gen_version: str = "0.18.1"
36+
_sdk_version: str = "0.10.2"
37+
_gen_version: str = "0.18.3"
3838

3939
def __init__(self) -> None:
4040
self._client = requests.Session()

src/sdk/utils/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ def serialize_json(request: dataclass) -> str:
365365
continue
366366

367367
return json.dumps(field_value)
368+
return marshal_json(request)
368369

369370

370371
def dict_to_dataclass(orig: dict[str, any], dataclass_type: str):
@@ -480,7 +481,7 @@ def _get_form_field_name(obj_field: Field) -> str:
480481

481482

482483
def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[
483-
str, list[str]]:
484+
str, list[str]]:
484485
if existing is None:
485486
existing = []
486487

0 commit comments

Comments
 (0)