Skip to content

Commit 1451caa

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1007)
1 parent 1b3c186 commit 1451caa

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1348
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-460637cf938836bf2619c57e293f6ae014a6b1bcbe0cd2288cc66450928cf3c5.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml

src/cloudflare/_base_client.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def _build_request(
456456
raise RuntimeError(f"Unexpected JSON data type, {type(json_data)}, cannot merge with `extra_body`")
457457

458458
headers = self._build_headers(options)
459-
params = _merge_mappings(self._custom_query, options.params)
459+
params = _merge_mappings(self.default_query, options.params)
460460
content_type = headers.get("Content-Type")
461461

462462
# If the given Content-Type header is multipart/form-data then it
@@ -592,6 +592,12 @@ def default_headers(self) -> dict[str, str | Omit]:
592592
**self._custom_headers,
593593
}
594594

595+
@property
596+
def default_query(self) -> dict[str, object]:
597+
return {
598+
**self._custom_query,
599+
}
600+
595601
def _validate_headers(
596602
self,
597603
headers: Headers, # noqa: ARG002

0 commit comments

Comments
 (0)