Thanks Claus, I open https://issues.apache.org/jira/browse/CAMEL-20181 for tracking
On Mon, Dec 4, 2023 at 2:37 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > It should support both, and it may be that the code need to check for 3.0 > vs 3.1 in that [2]. I assume there is a Json30 and Json31 for each version > of the spec. > > > On Sun, Dec 3, 2023 at 12:55 PM Zheng Feng <zf...@redhat.com> wrote: > > > Hi, > > > > I was working on CAMEL-20156 > > <https://issues.apache.org/jira/browse/CAMEL-20156> and camel-quarkus > > issue > > #5559 <https://github.com/apache/camel-quarkus/issues/5559>. I found > that > > all of our tests are against the OpenAPI 3.0 result by using > > "io.swagger.v3.core.util.Json.pretty(openApi3)" , see [1]. But the > response > > of the api endpoint is rendered with 3.1 by using > > "io.swagger.v3.core.util.Json31.pretty(openApi)", see [2]. > > > > Then I'm confused about what version of OpenAPI we support now. Both 3.0 > > and 3.1? our tests should be updated? > > > > Thanks, > > Zheng Feng > > > > [1] > > > > > https://github.com/apache/camel/blob/main/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiSupport.java#L377 > > [2] > > > > > https://github.com/apache/camel/blob/main/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiSupport.java#L330 > > > > > -- > Claus Ibsen > ----------------- > @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >