OpenAPITools / OpenAPITools/openapi-generator
Unable to use org.springframework.web.method.support.HandlerMethodArgumentResolver correctly in openapi-generator
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
Description
This is more a question than a bug. I don't see in the documentation anyway to correctly manage argument resolver in the generator.
Here is my use case: I want to add a "context" for a lot of endpoint. And this context is computed on multiple query param.
So I want to have:
- The query param visible on the generated documentation
- No param visible on the generated controller, but only que context resolved
Do you have a suggestion for this or it's not a common usage?
openapi-generator version
7.8.0
Thanks in advance for you feedback
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
No source file, test, or entry point is named. Start by reviewing the Spring server generator documentation and how generated controllers expose query parameters and argument resolvers. Done would be a documented, agreed approach for exposing query parameters in OpenAPI while resolving them into a controller context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100