-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Springdocs doesn't detect header declarations in class level @RequestMapping
s
#1073
Labels
bug
Something isn't working
Comments
I have added a fix for that. |
This was referenced Mar 8, 2021
This was referenced Mar 16, 2021
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our API uses a number of controllers coded along these lines:
This class level headers are for logging, but differ from controller to controller, so they're not truly global. The ones declared as parameters have some functional effect.
We are in the process of porting from SpringFox Swagger 2 to Spring Docs OpenAPI 3, and so far everything has gone extremely smoothly except that the class level headers declared in the controllers, which aren't being detected. They don't show up in our api-docs json, and they don't show up in Swagger-ui, meaning that we can't debug the endpoints, as the headers actually are mandatory.
I was hoping that there was some setting I missed that would cause these to be detected, or, barring that, you would have a workaround that would allow me to managed this from OpenAPI config. That said, if there isn't a setting I've missed stopping these from being detected, there would seem to be a bug in how SpringDocs is processing the
@RequestMapping
annotations.The text was updated successfully, but these errors were encountered: