OpenAPITools / OpenAPITools/openapi-generator

Unable to use org.springframework.web.method.support.HandlerMethodArgumentResolver correctly in openapi-generator

Open
#19,536 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.