-
-
Notifications
You must be signed in to change notification settings - Fork 524
Add RouterOperationCustomizer #1706
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
Add RouterOperationCustomizer #1706
Conversation
...c-openapi-common/src/main/java/org/springdoc/core/customizers/RouterOperationCustomizer.java
Outdated
Show resolved
Hide resolved
springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java
Outdated
Show resolved
Hide resolved
This PR is to prevent overwriting multiple router operations having same path. See below to how to define the RouterOperationCustomizer. Please review this if you don't mind. |
Add new line at end of files Update to receive routerOperation as a return
44669c0
to
a1a9b96
Compare
@bnasslahsen could you share your valueable time for review and comment for this, please? |
I will add it to my next todo list. |
@bnasslahsen any progress? |
merged! |
Thx @bnasslahsen |
Summary
The RouterOperationCustomizer customizes the RouterOperation before the path is created so that it is reflected in the document.
Result
As a result, we can change the properties of router operation to give the user a point to customize the document before creating a path.