Skip to content

Commit

Permalink
Merge pull request #1309 from Accenture/bug/1306-filter-empty-shell-i…
Browse files Browse the repository at this point in the history
…n-explaintypes

bugfix/1306: remove empty entry from explainTypes json response
  • Loading branch information
JoernBerkefeld authored May 8, 2024
2 parents fe5b975 + 9169c1d commit aa4bc9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit aa4bc9a

Please sign in to comment.