OpenAPITools / OpenAPITools/openapi-generator
[BUG] [Spring] Authorization lock greyed out in generated code
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Hello,
I downloaded the petstore.yaml from https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml and used openapi-codegen to generate spring server for this yaml.
On executing the generated code, I was expecting that authorization would be sought at the relevant places, however the authorization lock was grayed out (also refer the attached screen shot). Therefore, there is no way to enter Authorization details.
The openapi-codegen version was the latest 5.1.1 jar downloaded from https://openapi-generator.tech/docs/installation/
Can you please suggest if this going to be fixed soon?
Thanks and Regards.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin by reproducing the issue with the referenced petstore.yaml and OpenAPI Generator 5.1.1, then inspect the generated Spring server's authorization behavior. Done means the generated UI no longer shows the authorization lock as greyed out and allows authorization details to be entered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, spring
- Domain
- api, backend, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100