-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Process @Parameters method parameters as Spring MergedAnnotations #668
Process @Parameters method parameters as Spring MergedAnnotations #668
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jryan128,
Thank you for your contribution.
This feature seems interesting, but we need to keep compatiblity with older versions of spring as well.
Can you also keep the compatibility with spring-boot 1, because MergedAnnotations is only available since spring v5.2.
You can test it against the following example:
Sure thing!
…On Sat, May 16, 2020, 14:44 bnasslahsen ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Hi @jryan128 </~https://github.com/jryan128>,
Thank you for your contribution.
This feature seems interesting, but we need to keep compatiblity with
older versions of spring as well.
Can you also keep the compatibility with spring-boot 1, because
MergedAnnotations is only available since spring v5.2.
You can test it against the following example:
-
/~https://github.com/springdoc/springdoc-openapi-demos/tree/master/springdoc-openapi-spring-boot-1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#668 (review)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAE4JYVQ3WK7K75WUTLN4V3RR3NHDANCNFSM4M72EBDQ>
.
|
After falling back to |
Hi @jryan128, It looks great. Can you please add some tests? |
…an128/springdoc-openapi into used-merged-annotation-for-parameter
…ion-for-parameter
Ready for review. |
Great contribution @jryan128 👍 Thank you for this nice enhancement. |
I noticed you used merged annotations while reading method annotations but not method parameters.
This allows the creation of Spring Merged annotations to avoid repeating ourselves:
I'll add tests if the maintainers think it's a good idea. Thanks!