You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/01/03 14:40:37 UTC

[camel] 02/04: CAMEL-17421: camel-catalog - EIPs should include if they are abstract in the metadata

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

commit d0d04955cbff96a8380cebcd9923bbd886f339e4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jan 3 15:34:43 2022 +0100

    CAMEL-17421: camel-catalog - EIPs should include if they are abstract in the metadata
---
 .../src/main/java/org/apache/camel/tooling/model/JsonMapper.java         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/JsonMapper.java b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/JsonMapper.java
index ef9c504..4dafcdd 100644
--- a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/JsonMapper.java
+++ b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/JsonMapper.java
@@ -292,6 +292,7 @@ public final class JsonMapper {
     public static JsonObject asJsonObject(EipModel model) {
         JsonObject obj = new JsonObject();
         baseToJson(model, obj);
+        obj.put("abstract", model.isAbstractModel());
         obj.put("input", model.isInput());
         obj.put("output", model.isOutput());
         obj.entrySet().removeIf(e -> e.getValue() == null);