-
Notifications
You must be signed in to change notification settings - Fork 92
@PathVariable, @RequestBody, @ApiParam, similar annotations, may be removed if they're present on superclass or interface #9
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
Labels
enhancement
New feature or request
Comments
Turns out this is really hard/ almost impossible with our current API. We just don't have enough information on |
|
ryan-hudson
pushed a commit
to ryan-hudson/rewrite-spring
that referenced
this issue
Nov 18, 2024
…pringdoc rearranging springdoc/openapi recipes. individual springdoc upgrades …
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are various spring annotations, including but not limited to
@PathVariable
,@RequestBody
,@Valid
,@Size
,@ApiParam
,@Pattern
, which allow developers to tell spring about the contract their API has.If these annotations are present on a superclass or interface being implemented then they can be removed from the subclass.
Leaving them isn't necessarily harmful so long as the arguments of the duplicated annotations match. If the arguments do not match it's a spring runtime error. So this is a "best practices & hygiene" rather than an "essential for migration" sort visitor.
The text was updated successfully, but these errors were encountered: