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

enunciate 2.13.0 generates incorrect swagger.json #1027

Closed
mnisius opened this issue May 20, 2020 · 2 comments
Closed

enunciate 2.13.0 generates incorrect swagger.json #1027

mnisius opened this issue May 20, 2020 · 2 comments
Labels
Milestone

Comments

@mnisius
Copy link

mnisius commented May 20, 2020

Hello, I've noticed that the new version generates an incorrect swagger.json

This is my rest controller.

@RestController
@RequestMapping(value = "rest")
public class ServiceApp {

  @GetMapping(value = "/getTest")
  public String hellWorld() {
    return "Hello World";
  }

  @PostMapping(value = "/postTest")
  public String hellWorld(@RequestBody String test) {
    return test; 
  }
}

So I have 1 GET service and 1 POST service . But in the swagger.json every service is registered in each http method. So my swagger claims that there are 4 endpoints. 2 GET Services and 2 POST Services. So this is how my swagger page looks

proof

With enunciate 2.12.1 the swagger.json is correct

@stoicflame
Copy link
Owner

Yes, this has already been noted and fixed at 00cd32a.

I'll do a patch release in the next week or so.

@stoicflame stoicflame added the bug label May 20, 2020
@stoicflame stoicflame added this to the 2.14.0 milestone May 20, 2020
@stoicflame
Copy link
Owner

Fix is available in 2.13.1.

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

No branches or pull requests

2 participants