From f4da14051704667300451e98b6f26b1449fc871c Mon Sep 17 00:00:00 2001 From: Akram Yakubov Date: Wed, 18 Dec 2024 11:27:55 -0800 Subject: [PATCH] Applied feedback from PR --- .../internal/commands/start/ZillabaseStartCommand.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cli/src/main/java/io/aklivity/zillabase/cli/internal/commands/start/ZillabaseStartCommand.java b/cli/src/main/java/io/aklivity/zillabase/cli/internal/commands/start/ZillabaseStartCommand.java index 2e637bd6..c2872e08 100644 --- a/cli/src/main/java/io/aklivity/zillabase/cli/internal/commands/start/ZillabaseStartCommand.java +++ b/cli/src/main/java/io/aklivity/zillabase/cli/internal/commands/start/ZillabaseStartCommand.java @@ -1528,14 +1528,15 @@ private String generateHttpAsyncApiSpecs( JsonObject channelsJson = jsonValue.asJsonObject().getJsonObject("channels"); for (Map.Entry channelJson : channelsJson.entrySet()) { - String name = channelJson.getKey(); - if (name.endsWith("_replies")) + String channelName = channelJson.getKey(); + if (channelName.endsWith("_replies")) { continue; } - String label = matcher.reset(name).replaceAll(match -> match.group(2).toUpperCase()); - name = matcher.reset(name).replaceAll(match -> match.group(2)); + String name = matcher.reset(channelName).replaceFirst(match -> match.group(2)); + String label = name.toUpperCase(); + if (secure) { String scope = label.toLowerCase();