-
-
Notifications
You must be signed in to change notification settings - Fork 526
IllegalStateException when having multiple endpoints differentiated by header value #1253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See the answer here: #580 Make sure you don't create duplicates. #1131 , #1184. And this is this sample test, how you can handle this case. |
Sorry about the duplicates, I was too quick and created issue without thinking and checking. If I may have one more question, why same name parameters in |
what do you mean by same name parameters in RequestMapping ? |
Basically the same example as I provided, but instead of
|
You can log a feature request and propose a related PR, if you feel it useful for the community. |
Describe the bug
We are currently exploring ways how to version our REST API in Spring application. During the research we also tried how the different versioning ways work with springdoc and we found out that custom header versioning does not cope well with springdoc. When generating OpenAPI for the controller below we are experiencing
IllegalStateException
, because of that OpenAPI JSON cannot be generated.To Reproduce
Steps to reproduce the behavior:
2.5.3
1.5.10
Expected behavior
The text was updated successfully, but these errors were encountered: