This is an automated email from the ASF dual-hosted git repository.
zhfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new f291e487d1 Fix #7383 to override shouldRun of CodeGenProvider (#7384)
f291e487d1 is described below
commit f291e487d1fc59667f69d966a6fd86f12cc7d3b0
Author: Zheng Feng <[email protected]>
AuthorDate: Tue May 20 14:36:52 2025 +0800
Fix #7383 to override shouldRun of CodeGenProvider (#7384)
---
.../rest/openapi/deployment/CamelQuarkusSwaggerCodegenProvider.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/extensions/rest-openapi/deployment/src/main/java/org/apache/camel/quarkus/component/rest/openapi/deployment/CamelQuarkusSwaggerCodegenProvider.java
b/extensions/rest-openapi/deployment/src/main/java/org/apache/camel/quarkus/component/rest/openapi/deployment/CamelQuarkusSwaggerCodegenProvider.java
index 6f8aedf435..293f76f6f5 100644
---
a/extensions/rest-openapi/deployment/src/main/java/org/apache/camel/quarkus/component/rest/openapi/deployment/CamelQuarkusSwaggerCodegenProvider.java
+++
b/extensions/rest-openapi/deployment/src/main/java/org/apache/camel/quarkus/component/rest/openapi/deployment/CamelQuarkusSwaggerCodegenProvider.java
@@ -58,6 +58,12 @@ public class CamelQuarkusSwaggerCodegenProvider implements
CodeGenProvider {
return "openapi";
}
+ @Override
+ public boolean shouldRun(Path sourceDir, Config config) {
+ return Files.isDirectory(sourceDir)
+ ||
config.getOptionalValue("quarkus.camel.openapi.codegen.locations",
String.class).isPresent();
+ }
+
@Override
public boolean trigger(CodeGenContext context) throws CodeGenException {
final Config config = context.config();