Open wrighting opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
I've found that if I remove x-tokenInfoFunc from the generated openapi.yaml then it will work as expected
Bug Report Checklist
Description
The python flask generated code always uses default scopes and uid for oauth security
openapi-generator version
@openapitools/openapi-generator-cli@cli-4.0.0-beta2
OpenAPI declaration file content or url
Command line used for generation
npx openapi-generator generate -i openapi.yaml -g python-flask
Steps to reproduce
In controllers/securitycontroller.py
Related issues/PRs
Suggest a fix
There should not be a default scopes, uid value even if it's not properly configured (I couldn't see where to define uid in the openapi spec)