From 87a6097a33bb289bdc94764d986ce870ce7ca290 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 12 Mar 2024 17:12:34 +0400 Subject: [PATCH] fix: AsyncAPI v3 shows warning in Studio and IntelliJ plugin when referencing a json schema fix linter issue https://github.com/asyncapi/spec-json-schemas/issues/494 https://github.com/asyncapi/jasyncapi-idea-plugin/issues/49 --- tools/bundler/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bundler/index.js b/tools/bundler/index.js index d8729ad0..b9b9d9e0 100644 --- a/tools/bundler/index.js +++ b/tools/bundler/index.js @@ -168,9 +168,9 @@ function getDefinitionName(def) { if (result) { if (result[4] === '') { return `${result[1].replace('/', '-')}-${result[2]}-${result[3]}`; - } else { - return `${result[1].replace('/', '-')}-${result[2]}-${result[3]}/${result[4].replace('#/', '')}`; } + + return `${result[1].replace('/', '-')}-${result[2]}-${result[3]}/${result[4].replace('#/', '')}`; } }