Skip to content

Commit

Permalink
Applied feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
akrambek committed Dec 18, 2024
1 parent c070c40 commit f4da140
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1528,14 +1528,15 @@ private String generateHttpAsyncApiSpecs(
JsonObject channelsJson = jsonValue.asJsonObject().getJsonObject("channels");
for (Map.Entry<String, JsonValue> 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();
Expand Down

0 comments on commit f4da140

Please sign in to comment.