This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new bb5e1d188dc CAMEL-20488: Drop support for old swagger v2 spec (openapi v2) bb5e1d188dc is described below commit bb5e1d188dc67e5e072226e87a2a35726eb30cfd Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Mar 2 07:51:06 2024 +0100 CAMEL-20488: Drop support for old swagger v2 spec (openapi v2) --- .../rest/producer/JettyRestProducerInvalidApiDocTest.java | 2 +- components/camel-jetty/src/test/resources/hello-api.json | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/producer/JettyRestProducerInvalidApiDocTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/producer/JettyRestProducerInvalidApiDocTest.java index c59efee7d85..edf2dd716b8 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/producer/JettyRestProducerInvalidApiDocTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/producer/JettyRestProducerInvalidApiDocTest.java @@ -69,7 +69,7 @@ public class JettyRestProducerInvalidApiDocTest extends CamelTestSupport { fail("Should fail"); } catch (Exception e) { IllegalArgumentException iae = assertIsInstanceOf(IllegalArgumentException.class, e.getCause().getCause()); - assertEquals("OpenApi api-doc does not contain query parameter name for get:/api/bye", iae.getMessage()); + assertEquals("OpenApi api-doc does not contain operation for get:/api/bye", iae.getMessage()); } } } diff --git a/components/camel-jetty/src/test/resources/hello-api.json b/components/camel-jetty/src/test/resources/hello-api.json index 6cc6a72f48f..a0bda54cd59 100644 --- a/components/camel-jetty/src/test/resources/hello-api.json +++ b/components/camel-jetty/src/test/resources/hello-api.json @@ -1,7 +1,11 @@ + { - "swagger" : "2.0", - "host" : "localhost:8080", - "basePath" : "/api", + "openapi": "3.0.2", + "servers": [ + { + "url": "localhost:8080/api" + } + ], "tags" : [ { "name" : "hello" } ],