Skip to content

Commit c1a0cc8

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ApiMethodDocumentation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,12 +991,14 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
991991
compatibility,
992992
graph
993993
} = this;
994+
const isAsyncApi = !this._isAsyncAPI(amf)
994995
return html`<api-headers-document
995996
opened
996997
.amf="${amf}"
997998
?narrow="${narrow}"
998999
?compatibility="${compatibility}"
9991000
?graph="${graph}"
1001+
.noMainExample="${isAsyncApi}"
10001002
.headers="${headers}"></api-headers-document>`;
10011003
}
10021004

0 commit comments

Comments
 (0)