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

On execute, swagger-ui doubles the query parameters #4

Open
jfleck1 opened this issue Jun 1, 2018 · 0 comments
Open

On execute, swagger-ui doubles the query parameters #4

jfleck1 opened this issue Jun 1, 2018 · 0 comments

Comments

@jfleck1
Copy link

jfleck1 commented Jun 1, 2018

I enabledUrlTemplate(ing) in my docket config and switched the UI to this one. The overloaded get methods I have display properly, however the swagger UI looks like it's doubling query parameters after clicking the Execute button;

http://localhost:8080/resources/transforms?name=test&name=test

This succesfully calls the correct Spring controller method but with value "test,test";

    @CrossOrigin
    @RequestMapping(method = RequestMethod.GET, params = {"name"})
    @ResponseBody
    public Page<M> findByName(@RequestParam String name, Pageable pageable) {
        return repository.findByName(name, pageable, MAX_DEPTH);
    }

I've confirmed that a direct call to the url
http://localhost:8080/resources/transforms?name=test
works as intended.

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