Skip to content

[BUG][Python] init access token for python client configuration#7469

Merged
spacether merged 2 commits intoOpenAPITools:masterfrom
zilvinasu:master
Feb 5, 2021
Merged

[BUG][Python] init access token for python client configuration#7469
spacether merged 2 commits intoOpenAPITools:masterfrom
zilvinasu:master

Conversation

@zilvinasu
Copy link
Copy Markdown
Contributor

@zilvinasu zilvinasu commented Sep 21, 2020

Generating Python client for my OpenAPI and it is outputting invalid Python code, it generates a Configuration class, which is trying to use self.access_token which is not initialised to any default value.

closes #7468

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

@spacether @arun-nalla @taxpon @cbornet

@TheBeege
Copy link
Copy Markdown

TheBeege commented Feb 1, 2021

@zilvinasu @spacether @arunnalla @taxpon @cbornet
Any way folks can help get this going?

Copy link
Copy Markdown
Contributor

@spacether spacether left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, @zilvinasu can you move this PR out of draft state?
Circle CI appears to keep failing because of:
Unknown SSL protocol error in connection to get.haskellstack.org:443 which is unrelated to these changes
Edit: nvm i can do it

Thank you for your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][Python] Bug generating invalid Configuration class with missing access_token

3 participants