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 50439cb9f70 camel-jbang - Fix using openapi to ignore not finding mock
data in the default camel-mock folder.
50439cb9f70 is described below
commit 50439cb9f709c67458a3beef3625b3aea297930b
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 6 15:27:44 2024 +0200
camel-jbang - Fix using openapi to ignore not finding mock data in the
default camel-mock folder.
---
.../component/rest/openapi/DefaultRestOpenapiProcessorStrategy.java | 3 +--
1 file changed, 1 insertion(+), 2 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 e0bff0f9672..3967a6532ae 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
@@ -37,7 +37,6 @@ import org.apache.camel.Endpoint;
import org.apache.camel.Exchange;
import org.apache.camel.NonManagedService;
import org.apache.camel.Route;
-import org.apache.camel.RuntimeCamelException;
import org.apache.camel.component.platform.http.PlatformHttpComponent;
import org.apache.camel.component.platform.http.spi.PlatformHttpConsumerAware;
import org.apache.camel.spi.PackageScanResourceResolver;
@@ -224,7 +223,7 @@ public class DefaultRestOpenapiProcessorStrategy extends
ServiceSupport
try {
accepted.addAll(resolver.findResources(include));
} catch (Exception e) {
- throw RuntimeCamelException.wrapRuntimeException(e);
+ // ignore as folder may not exist
}
}