Skip to content

Commit

Permalink
fix(py_client): access token not initialized for Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuyangh committed May 10, 2022
1 parent f864d25 commit 0e52e98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/py-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ name: "Python API Client Release"
on:
push:
branches: [main, "feat/openapi-py-client"]
paths: ["openapi/openapi.yaml", ".github/workflows/py-client-release.yml"]
paths:
[
"openapi/openapi.yaml",
".github/workflows/py-client-release.yml",
"openapi/python_explerimental_client_template/*",
]

jobs:
build-and-release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ conf = {{{packageName}}}.Configuration(
def __init__(self, host=None,
api_key=None, api_key_prefix=None,
username=None, password=None,
access_token=None,
discard_unknown_keys=False,
disabled_client_side_validations="",
{{#if hasHttpSignatureMethods}}
Expand Down Expand Up @@ -209,6 +210,7 @@ conf = {{{packageName}}}.Configuration(
self.password = password
"""Password for HTTP basic authentication
"""
self.access_token = access_token
self.discard_unknown_keys = discard_unknown_keys
self.disabled_client_side_validations = disabled_client_side_validations
{{#if hasHttpSignatureMethods}}
Expand Down

0 comments on commit 0e52e98

Please sign in to comment.