From e0537a4b95b3cfdc6b45880d1858de69ef579a09 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 07:29:58 +0000 Subject: [PATCH 1/2] chore(deps): Bump com.atlassian.oai:swagger-request-validator-core Bumps com.atlassian.oai:swagger-request-validator-core from 2.46.1 to 3.0.0. --- updated-dependencies: - dependency-name: com.atlassian.oai:swagger-request-validator-core dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parent/pom.xml b/parent/pom.xml index 8be5a1653157b..0ddbcb23f6d2d 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -503,7 +503,7 @@ 2.2.36 1.0.65 2.1.42 - 2.46.1 + 3.0.0 4.3.4 1.0.19 0.3.0 From b1c9866207a33b8cad7a6520342fea916f287528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Thu, 21 May 2026 11:33:16 +0200 Subject: [PATCH 2/2] Bump com.atlassian.oai:swagger-request-validator-core from 2.46.1 to com.atlassian.oai:openapi-request-validator-core 3.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the artifact id has been renamed for 3.0.0 (even if it exists with there old one) an error message has slightly changed. I updated test accordingly, using assertj assertions to have better description when the message is failing Signed-off-by: Aurélien Pupier --- components/camel-openapi-validator/pom.xml | 8 ++++++-- .../client/OpenApiRestClientRequestValidatorTest.java | 6 ++++-- .../client/OpenApiRestClientResponseValidatorTest.java | 4 +++- parent/pom.xml | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/components/camel-openapi-validator/pom.xml b/components/camel-openapi-validator/pom.xml index e4a214353caaf..6598ad6c6b524 100644 --- a/components/camel-openapi-validator/pom.xml +++ b/components/camel-openapi-validator/pom.xml @@ -49,8 +49,8 @@ com.atlassian.oai - swagger-request-validator-core - ${swagger-request-validator-version} + openapi-request-validator-core + ${openapi-request-validator-version} @@ -80,6 +80,10 @@ junit-jupiter test + + org.assertj + assertj-core + diff --git a/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientRequestValidatorTest.java b/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientRequestValidatorTest.java index 4dcb6be0a90a8..12cc5ef4adb34 100644 --- a/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientRequestValidatorTest.java +++ b/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientRequestValidatorTest.java @@ -30,6 +30,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import static org.assertj.core.api.Assertions.assertThat; + public class OpenApiRestClientRequestValidatorTest extends ExchangeTestSupport { static OpenAPI openAPI; @@ -57,13 +59,13 @@ public void testValidateBody() { = validator.validate(exchange, new RestClientRequestValidator.ValidationContext( "application/json", "application/json", true, null, null, null, null)); Assertions.assertNotNull(error); - Assertions.assertTrue(error.body().contains("A request body is required but none found")); + assertThat(error.body()).contains("A request body is required but none found"); exchange.getMessage().setBody("{ \"name\": \"tiger\" }"); error = validator.validate(exchange, new RestClientRequestValidator.ValidationContext( "application/json", "application/json", true, null, null, null, null)); Assertions.assertNotNull(error); - Assertions.assertTrue(error.body().contains("Object has missing required properties ([\\\"photoUrls\\\"])")); + assertThat(error.body()).contains("required property 'photoUrls' not found"); exchange.getMessage().setBody("{ \"name\": \"tiger\", \"photoUrls\": [\"image.jpg\"] }"); error = validator.validate(exchange, new RestClientRequestValidator.ValidationContext( diff --git a/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientResponseValidatorTest.java b/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientResponseValidatorTest.java index 543b6322b7f20..292e086412f26 100644 --- a/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientResponseValidatorTest.java +++ b/components/camel-openapi-validator/src/test/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientResponseValidatorTest.java @@ -29,6 +29,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import static org.assertj.core.api.Assertions.assertThat; + public class OpenApiRestClientResponseValidatorTest extends ExchangeTestSupport { static OpenAPI openAPI; @@ -63,7 +65,7 @@ public void testValidateBody() { exchange.getMessage().setBody("{ \"name\": \"tiger\" }"); error = validator.validate(exchange, new RestClientResponseValidator.ValidationContext( "application/json", "application/json", null, null)); - Assertions.assertTrue(error.body().contains("Object has missing required properties ([\"photoUrls\"])")); + assertThat(error.body()).contains("required property 'photoUrls' not found"); exchange.getMessage().setBody("{ \"name\": \"tiger\", \"photoUrls\": [\"image.jpg\"] }"); error = validator.validate(exchange, new RestClientResponseValidator.ValidationContext( diff --git a/parent/pom.xml b/parent/pom.xml index 0ddbcb23f6d2d..080125e28632b 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -407,6 +407,7 @@ 1.1.2 4.36.0 7.22.0 + 3.0.0 4.1.1 3.6.0 3.8.0 @@ -503,7 +504,6 @@ 2.2.36 1.0.65 2.1.42 - 3.0.0 4.3.4 1.0.19 0.3.0