diff --git a/.github/workflows/py-client-release.yml b/.github/workflows/py-client-release.yml index c2460419..e4d3056f 100644 --- a/.github/workflows/py-client-release.yml +++ b/.github/workflows/py-client-release.yml @@ -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: diff --git a/openapi/python_explerimental_client_template/configuration.handlebars b/openapi/python_explerimental_client_template/configuration.handlebars index c0a0dc7d..1fc2dbb2 100644 --- a/openapi/python_explerimental_client_template/configuration.handlebars +++ b/openapi/python_explerimental_client_template/configuration.handlebars @@ -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}} @@ -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}}