Skip to content

Commit a18b8b4

Browse files
feat(W-15520261): show example when is asyncApi
1 parent c1a0cc8 commit a18b8b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ApiMethodDocumentation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,14 +991,17 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
991991
compatibility,
992992
graph
993993
} = this;
994-
const isAsyncApi = !this._isAsyncAPI(amf)
994+
995+
// hidden example when is not an async api
996+
const noMainExample = !this._isAsyncAPI(amf)
997+
995998
return html`<api-headers-document
996999
opened
9971000
.amf="${amf}"
9981001
?narrow="${narrow}"
9991002
?compatibility="${compatibility}"
10001003
?graph="${graph}"
1001-
.noMainExample="${isAsyncApi}"
1004+
.noMainExample="${noMainExample}"
10021005
.headers="${headers}"></api-headers-document>`;
10031006
}
10041007

0 commit comments

Comments
 (0)