-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camel Quarkus Catalog - Add beans #6199
Comments
In camel-quarkus, we use |
Hi @jamesnetherton , I tried the following changes diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
index 912b1463d7..348082d2ca 100644
--- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
+++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
@@ -47,6 +47,7 @@ import org.apache.camel.tooling.model.JsonMapper;
import org.apache.camel.tooling.model.Kind;
import org.apache.camel.tooling.model.LanguageModel;
import org.apache.camel.tooling.model.OtherModel;
+import org.apache.camel.tooling.model.PojoBeanModel;
import org.apache.camel.tooling.model.TransformerModel;
public class CqCatalog {
@@ -193,6 +194,9 @@ public class CqCatalog {
}
String rawJson;
switch (model.getKind()) {
+ case bean:
+ rawJson = JsonMapper.createParameterJsonSchema((PojoBeanModel) model);
+ break;
case component:
rawJson = JsonMapper.createParameterJsonSchema((ComponentModel) model);
break;
@@ -224,7 +228,7 @@ public class CqCatalog {
public static Stream<Kind> kinds() {
return Stream.of(Kind.values())
- .filter(kind -> (kind != Kind.eip && kind != Kind.model && kind != Kind.bean));
+ .filter(kind -> (kind != Kind.eip && kind != Kind.model));
} |
@zhfeng Thanks for the fix! Yes, that's the change I have locally. I have a couple of other tidy-ups to make things more consistent compared to the Camel & SB catalogs. |
Describe the feature here
We recently have added
beans
as a kind to the catalog, that CEQ does not includeHere is what we include in CSB
https://github.com/apache/camel-spring-boot/tree/main/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/beans
The text was updated successfully, but these errors were encountered: