Skip to content
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

@RequestMapping negated params #245

Open
larry-s opened this issue Jun 5, 2018 · 2 comments
Open

@RequestMapping negated params #245

larry-s opened this issue Jun 5, 2018 · 2 comments

Comments

@larry-s
Copy link

larry-s commented Jun 5, 2018

GIVEN

  • A @RequestMapping with negated values in the params:
    @RequestMapping(value = "/", method = RequestMethod.GET, params = { "mrn", "!familyName", "!givenName" })

WHEN

  • Viewing this in the UI

THEN

  • It shows query parameters !familyName and !givenName that have required: true. The negated parameters should be omitted from the list of parameters.
@larry-s
Copy link
Author

larry-s commented Jun 5, 2018

I think this needs to be changed in src/main/java/org/jsondoc/springmvc/scanner/builder/SpringQueryParamBuilder.java
In method addRequestMappingParamDoc() add a check that the first character is not a !

@larry-s
Copy link
Author

larry-s commented Jun 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant