This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch openapi-validator-fix in repository https://gitbox.apache.org/repos/asf/camel.git
commit df7e3ec581c15ceac43859ba38bbcefc503b9303 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Jun 10 11:35:01 2024 +0200 Added Camel-Openapi-validator to kit Signed-off-by: Andrea Cosentino <[email protected]> --- .../validator/client/OpenApiRestClientRequestValidatorTest.java | 5 +++-- components/pom.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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 62b2cb883b7..4a70e0b2649 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 @@ -44,8 +44,9 @@ public class OpenApiRestClientRequestValidatorTest extends ExchangeTestSupport { OpenApiRestClientRequestValidator validator = new OpenApiRestClientRequestValidator(); - RestClientRequestValidator.ValidationError error = validator.validate(exchange, new RestClientRequestValidator.ValidationContext( - "application/json", "application/json", true, null, null, null, null)); + RestClientRequestValidator.ValidationError error + = 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")); diff --git a/components/pom.xml b/components/pom.xml index a6e903a87e2..a2029870173 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -295,6 +295,7 @@ <module>camel-stitch</module> <module>camel-swift</module> <module>camel-openapi-java</module> + <module>camel-openapi-validator</module> <module>camel-opensearch</module> <module>camel-optaplanner</module> <module>camel-syslog</module>
