You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/06/10 10:02:53 UTC
(camel) branch openapi-validator-fix created (now 2992dc22f9f)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch openapi-validator-fix
in repository https://gitbox.apache.org/repos/asf/camel.git
at 2992dc22f9f Regen
This branch includes the following new commits:
new df7e3ec581c Added Camel-Openapi-validator to kit
new 2992dc22f9f Regen
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel) 02/02: Regen
Posted by ac...@apache.org.
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 2992dc22f9f7274712b99c4bba3b795f31403a9f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 10 12:02:17 2024 +0200
Regen
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java | 3 ++-
.../camel/component/rest/openapi/RestOpenapiProcessorStrategy.java | 3 ++-
.../src/main/java/org/apache/camel/component/smb/SmbConfiguration.java | 3 ++-
.../src/main/java/org/apache/camel/component/smb/SmbConsumer.java | 1 -
.../java/org/apache/camel/support/processor/RestBindingAdvice.java | 2 --
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java
index 8539d865dac..5021ca826b0 100644
--- a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java
+++ b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java
@@ -168,7 +168,8 @@ public class DefaultRestOpenapiProcessorStrategy extends ServiceSupport
}
@Override
- public boolean process(OpenAPI openAPI,
+ public boolean process(
+ OpenAPI openAPI,
Operation operation, String verb, String path,
RestBindingAdvice binding,
Exchange exchange, AsyncCallback callback) {
diff --git a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenapiProcessorStrategy.java b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenapiProcessorStrategy.java
index d93d0a79557..7c639071633 100644
--- a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenapiProcessorStrategy.java
+++ b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenapiProcessorStrategy.java
@@ -78,7 +78,8 @@ public interface RestOpenapiProcessorStrategy {
* @return (doneSync) true to continue execute synchronously, false to continue being executed
* asynchronously
*/
- boolean process(OpenAPI openAPI,
+ boolean process(
+ OpenAPI openAPI,
Operation operation, String verb, String path,
RestBindingAdvice binding,
Exchange exchange, AsyncCallback callback);
diff --git a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConfiguration.java b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConfiguration.java
index 3fbffa5d1a9..eb239b21fe3 100644
--- a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConfiguration.java
+++ b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConfiguration.java
@@ -51,7 +51,8 @@ public class SmbConfiguration {
description = "An optional SMB client configuration, can be used to configure client specific "
+ " configurations, like timeouts")
private SmbConfig smbConfig;
- @UriParam(label = "consumer", defaultValue="false", description = "If a directory, will look for files in all the sub-directories as well.")
+ @UriParam(label = "consumer", defaultValue = "false",
+ description = "If a directory, will look for files in all the sub-directories as well.")
protected boolean recursive;
public String getUsername() {
diff --git a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
index 7540022a29d..94741ddc213 100644
--- a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
+++ b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
@@ -98,7 +98,6 @@ public class SmbConsumer extends ScheduledPollConsumer {
return polledCount;
}
-
@Override
protected int poll() throws Exception {
int polledCount = 0;
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/processor/RestBindingAdvice.java b/core/camel-support/src/main/java/org/apache/camel/support/processor/RestBindingAdvice.java
index fbf3e256e17..cccd750610b 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/processor/RestBindingAdvice.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/processor/RestBindingAdvice.java
@@ -16,8 +16,6 @@
*/
package org.apache.camel.support.processor;
-import java.util.Collection;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
(camel) 01/02: Added Camel-Openapi-validator to kit
Posted by ac...@apache.org.
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 <an...@gmail.com>
AuthorDate: Mon Jun 10 11:35:01 2024 +0200
Added Camel-Openapi-validator to kit
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../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>