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 2026/07/18 16:19:15 UTC
(camel) 03/03: CAMEL-24125: ApiDevConsole doCallText returns pretty-printed JSON directly
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch fix/CAMEL-24125
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 5a720d134dd85de5f3fd3484fdc58540492e123b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jul 18 18:16:08 2026 +0200
CAMEL-24125: ApiDevConsole doCallText returns pretty-printed JSON directly
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
.../src/main/java/org/apache/camel/impl/console/ApiDevConsole.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/core/camel-console/src/main/java/org/apache/camel/impl/console/ApiDevConsole.java b/core/camel-console/src/main/java/org/apache/camel/impl/console/ApiDevConsole.java
index 3b58ceaaca0f..f3963069a2c6 100644
--- a/core/camel-console/src/main/java/org/apache/camel/impl/console/ApiDevConsole.java
+++ b/core/camel-console/src/main/java/org/apache/camel/impl/console/ApiDevConsole.java
@@ -40,7 +40,10 @@ public class ApiDevConsole extends AbstractDevConsole {
@Override
protected String doCallText(Map<String, Object> options) {
- return doCallJson(options).toJson();
+ if (cachedOpenApi == null) {
+ cachedOpenApi = buildOpenApi();
+ }
+ return cachedOpenApi;
}
@Override