Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.227.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 27, 2024
1 parent 4a6993d commit b08f2b0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ id: 45d697d3-6c8d-4d6e-8825-3af8be149b31
management:
docChecksum: 2516596125ef223fbbef6c434d22eaac
docVersion: 1.0.0
speakeasyVersion: 1.207.1
generationVersion: 2.280.6
releaseVersion: 0.15.1
configChecksum: 5cb958cc9bc723b73c983eede48b38e3
speakeasyVersion: 1.227.0
generationVersion: 2.291.0
releaseVersion: 0.15.2
configChecksum: c690aa9e1dffca9976ec42d3f89d9a6c
repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-sdks/test-repo-test2.git
features:
python:
core: 4.5.1
core: 4.5.2
globalServerURLs: 2.82.2
responseFormat: 0.1.0
generatedFiles:
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.15.1] .
- [python v0.15.1] .

## 2024-03-27 01:43:36
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.15.2] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.15.1
version: 0.15.2
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="test",
version="0.15.1",
version="0.15.2",
author="my-test",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions src/test/_hooks/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: requests_http.

class AfterSuccessHook(ABC):
@abstractmethod
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.PreparedRequest, Exception]:
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.Response, Exception]:
pass


class AfterErrorHook(ABC):
@abstractmethod
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.PreparedRequest], Optional[Exception]], Exception]:
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.Response], Optional[Exception]], Exception]:
pass


Expand Down
6 changes: 3 additions & 3 deletions src/test/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '0.15.1'
gen_version: str = '2.280.6'
user_agent: str = 'speakeasy-sdk/python 0.15.1 2.280.6 1.0.0 test'
sdk_version: str = '0.15.2'
gen_version: str = '2.291.0'
user_agent: str = 'speakeasy-sdk/python 0.15.2 2.291.0 1.0.0 test'
retry_config: RetryConfig = None
_hooks: SDKHooks = None

Expand Down
6 changes: 3 additions & 3 deletions src/test/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_query_params(clazz: type, query_params: Any, gbls: Optional[Dict[str, Di
return params


def get_headers(headers_params: Any) -> Dict[str, str]:
def get_headers(headers_params: Any, gbls: Optional[Dict[str, Dict[str, Dict[str, Any]]]] = None) -> Dict[str, str]:
if headers_params is None:
return {}

Expand All @@ -284,8 +284,8 @@ def get_headers(headers_params: Any) -> Dict[str, str]:
if not metadata:
continue

value = _serialize_header(metadata.get(
'explode', False), getattr(headers_params, field.name))
value = _populate_from_globals(field.name, getattr(headers_params, field.name), 'header', gbls)
value = _serialize_header(metadata.get('explode', False), value)

if value != '':
headers[metadata.get('field_name', field.name)] = value
Expand Down

0 comments on commit b08f2b0

Please sign in to comment.