I'm having an issue with micronaut-jaxrs-processor in combination with micronaut-openapi.
I was able to solve the issue locally with a fix in JaxRsTypeElementVisitor#visitClass. By adding a UriMapping annotation in addition to the Controller annotation, the micronaut-openapi processor is able to discover the base path.
I can provide a PR.
Steps to Reproduce
Given a controller using JaxRS annotations:
@Path("/base")
public class ExampleController {
@GET
@Path("/method")
public String hello() {
return "hello";
}
}
Expected Behaviour
I would expect the following openapi specification:
I'm having an issue with
micronaut-jaxrs-processor
in combination withmicronaut-openapi
.I was able to solve the issue locally with a fix in
JaxRsTypeElementVisitor#visitClass
. By adding aUriMapping
annotation in addition to theController
annotation, themicronaut-openapi
processor is able to discover the base path.I can provide a PR.
Steps to Reproduce
Given a controller using JaxRS annotations:
Expected Behaviour
I would expect the following openapi specification:
Actual Behaviour
The path is wrong:
Environment Information