I believe this is caused when you have a @Path parent element with just a "/" 
value and then methods with @Path and and actual value.I think the fix needs to 
be done on the OpenAPI side, or just remove the "/“ from the @Path parent 
element, but that involves changing app code. 

I’ve created this PR to OpenAPI: 
https://github.com/apache/geronimo-openapi/pull/10 
<https://github.com/apache/geronimo-openapi/pull/10>. Let’s see what happens.

Thank you!

Cheers,
Roberto

> On 23 Jan 2019, at 14:27, j4fm <james.m...@my-managed.net> wrote:
> 
> FYI, as you mentioned, I also see OpenAPI annotation index out of bounds.  If
> you would like me to test out any fix for it, I can do that immediately...
> 
> /Caused by: java.lang.StringIndexOutOfBoundsException: begin 1, end 0,
> length 1
> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
> at java.base/java.lang.String.substring(String.java:1874)
> at
> org.apache.geronimo.microprofile.openapi.impl.processor.AnnotationProcessor.lambda$buildPath$77(AnnotationProcessor.java:450)/
> 
> 
> 
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html

Reply via email to