Skip to content

[BUG] Unable to set 'access_token' on api Configuration #13315

@fbl100

Description

@fbl100

Bug Report Checklist

  • [x ] Have you provided a full/minimal spec to reproduce the issue?
  • [ x] Have you validated the input using an OpenAPI validator (example)?
  • [ x] Have you tested with the latest master to confirm the issue still exists?
  • [ x] Have you searched for related issues/PRs?
  • [ x] What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

This is for the python-experimental client generator.

When working with a 'bearer' access token, I am unable to set the 'access_token' property in the Configuration() initializer. Instead, I have to do this:

configuration = client_api.Configuration(
    host=URL,
)
configuration.access_token = getToken()

ideally I would be able to do this:

configuration = client_api.Configuration(
    host=URL,
    access_token = getToken()
)
openapi-generator version

latest master (8/30/2022)

OpenAPI declaration file content or url

N/A

Related issues/PRs
Suggest a fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions