zhfeng commented on issue #6199:
URL: https://github.com/apache/camel-quarkus/issues/6199#issuecomment-2175457021
Hi @jamesnetherton , I tried the following changes
```java
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));
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]