sdaschner / jaxrs-analyzer

Creates REST documentation for JAX-RS projects
Apache License 2.0
319 stars 101 forks source link

Return type is not picked up correctly? #134

Closed tbee closed 6 years ago

tbee commented 7 years ago

My source looks like this: @GET @Path("/{code}") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public ServerVirtual select(@PathParam("code") String code, @HeaderParam("Authorization") String authorizationHeader) {

Note the ServerVirtual class being returned. But the generated swagger (and other files) say that upon a OK it returns a status entity (which is returned on an error or by POST/PUT). "200":{ "description":"OK", "headers":{ }, "schema":{ "$ref":"#/definitions/Status" } },

sdaschner commented 7 years ago

Could you provide some contents of the select method -- especially in regards to the error cases?