-
Notifications
You must be signed in to change notification settings - Fork 523
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
RESTWS-663 - Fix SwaggerSpecificationCreator#hasSearchHandler(resName) #300
Conversation
@gayanW can you always add a link to the ticket for easier navigation? |
Okay. I will from now on. |
I thought the ticket was only about Invalid logic in hasSearchHandler(resourceName) and nothing more. |
private boolean hasSearchHandler(String resourceName) { | ||
for (SearchHandlerDoc doc : searchHandlerDocs) { | ||
if (doc.getResourceURL().contains(resourceName)) { | ||
private boolean hasSearchHandler(String resourceName, String resourceParentName) { |
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.
Here goes the actual changes. getParametersListForSearchHandlers(), and getResourceUrl() were unused. So I removed them.
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.
Do you mind having separate pull requests?
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.
@gayanW ping 😊
* Fix invalid logic in SwaggerSpecificationCreator#hasSearchHandler(resourceName) * Add test case: SwaggerSpecificationCreatorTest#hasSearchHandler()
Issue: RESTWS-663