From 9169c1d3711f9e305fea4dc20618beb5db5e1f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Wed, 8 May 2024 15:31:55 +0200 Subject: [PATCH] #1306: remove empty entry from explainTypes json response --- lib/util/cli.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/util/cli.js b/lib/util/cli.js index e69c33745..fbbeff12c 100644 --- a/lib/util/cli.js +++ b/lib/util/cli.js @@ -613,6 +613,10 @@ const Cli = { for (const apiName of apiNameArr) { const details = MetadataDefinitions[apiName]; + if (!details.type) { + // we created the main type transactional message but don't want to show it here + continue; + } const supportCheckClass = apiName.startsWith('transactional') ? TransactionalMessage : MetadataTypeInfo[apiName];