Skip to content

Commit e052d0e

Browse files
add bindings
1 parent 884d18c commit e052d0e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/ApiBodyDocumentElement.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,27 @@ export class ApiBodyDocumentElement extends AmfHelperMixin(LitElement) {
617617
<div slot="markdown-html" class="markdown-html" part="markdown-html" ?data-with-title="${hasTypeName}"></div>
618618
</arc-marked>` : ''}
619619
620+
${this._isAsyncAPI(this.amf) && !!this.bindings ?
621+
html`<ul class="bindings-container-list">
622+
${this.bindings.map(item => html`<li>
623+
<p class="bindings-header">
624+
<label>Message specific information:</label>
625+
<span class="binding-type"> ${item.bindingType}</span>
626+
</p>
627+
${item.key!==false ?
628+
html `
629+
<div class="bindings-body">
630+
<label>key</label>
631+
<span class="binding-key">${item.key}</span>
632+
<span class="binding-data-type">${item.dataType}</span>
633+
</div>
634+
`
635+
: ''}
636+
637+
</li>`)}
638+
</ul>`
639+
: ''}
640+
620641
${_isObject ?
621642
html`<api-type-document
622643
.amf="${amf}"

0 commit comments

Comments
 (0)