You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zh...@apache.org on 2024/09/26 07:11:55 UTC
(camel) branch camel-4.8.x updated: Fix typo issue when generating bean json (#15708)
This is an automated email from the ASF dual-hosted git repository.
zhfeng pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.8.x by this push:
new 7363415ba59 Fix typo issue when generating bean json (#15708)
7363415ba59 is described below
commit 7363415ba597af8b8b976db95b24fe0bdb1f18de
Author: Zheng Feng <zh...@gmail.com>
AuthorDate: Thu Sep 26 15:07:47 2024 +0800
Fix typo issue when generating bean json (#15708)
---
.../src/main/java/org/apache/camel/tooling/model/JsonMapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 249e1951cbc..f1b69c0ce1c 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
@@ -371,7 +371,7 @@ public final class JsonMapper {
artifactToJson(model, obj);
obj.entrySet().removeIf(e -> e.getValue() == null);
JsonObject wrapper = new JsonObject();
- wrapper.put("model", obj);
+ wrapper.put("bean", obj);
wrapper.put("properties", asJsonObject(model.getOptions()));
return wrapper;
}