Skip to content

Commit

Permalink
fix, python: fix envvars scanning by updating the ApiError usage (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo authored Feb 23, 2024
1 parent d97c5cc commit e0683f3
Show file tree
Hide file tree
Showing 47 changed files with 3,458 additions and 3,465 deletions.
4 changes: 4 additions & 0 deletions generators/python/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.11.5] - 2024-02-23

- Fix: Fix the usage of ApiError when leveraging auth envvars, when the schema for ApiError was changed, this usage was missed in the update.

## [0.11.4] - 2024-02-23

- Fix: We now grab enum values appropriately when enums are within unions.
Expand Down
2 changes: 1 addition & 1 deletion generators/python/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.4
0.11.5
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,11 @@ def _write_parameter_validation(writer: AST.NodeWriter) -> None:
writer.indent()
writer.write("raise ")
writer.write_node(
AST.ClassInstantiation(
class_=self._context.core_utilities.get_reference_to_api_error(),
kwargs=[
(
"message",
AST.Expression(
f'"The client must be instantiated be either passing in {param_name} or setting {environment_variable}"'
),
)
],
self._context.core_utilities.instantiate_api_error(
body=AST.Expression(
f'"The client must be instantiated be either passing in {param_name} or setting {environment_variable}"'
),
status_code=None,
)
)
writer.outdent()
Expand Down
168 changes: 84 additions & 84 deletions seed/python-sdk/alias/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/api-wide-base-path/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/audiences/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/auth-environment-variables/poetry.lock

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions seed/python-sdk/auth-environment-variables/src/seed/client.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 84 additions & 84 deletions seed/python-sdk/basic-auth/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/bearer-token-environment-variable/poetry.lock

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 84 additions & 84 deletions seed/python-sdk/bytes/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/circular-references/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/custom-auth/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/error-property/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/examples/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/extra_dependencies/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/five-second-timeout/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/improved_imports/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/infinite-timeout/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/no-custom-config/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/pydantic-v1/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/exhaustive/union-utils/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/extends/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/file-download/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/file-upload/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/folders/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/idempotency-headers/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/imdb/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/literal/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/multi-url-environment/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/no-environment/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/object/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/objects-with-imports/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/optional/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/package-yml/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/plain-text/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/query-parameters/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/reserved-keywords/poetry.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions seed/python-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ allowedFailures:
- response-property
# Generator does not handle list of enums
- enum
- auth-environment-variables
- bearer-token-environment-variable
- websocket
- exhaustive:union-utils
- exhaustive:additional_init_exports
168 changes: 84 additions & 84 deletions seed/python-sdk/single-url-environment-default/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/single-url-environment-no-default/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/streaming/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/trace/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/undiscriminated-unions/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/unknown/poetry.lock

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions seed/python-sdk/variables/poetry.lock

Large diffs are not rendered by default.

0 comments on commit e0683f3

Please sign in to comment.