diff --git a/package-lock.json b/package-lock.json index 7702239..2b697f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@api-components/api-method-documentation", - "version": "5.2.14", + "version": "5.2.16", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 9e1a569..1553799 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/api-method-documentation", "description": "A HTTP method documentation build from AMF model", - "version": "5.2.15", + "version": "5.2.16", "license": "Apache-2.0", "main": "index.js", "module": "index.js", diff --git a/src/ApiMethodDocumentation.js b/src/ApiMethodDocumentation.js index fd16ae8..42f1798 100644 --- a/src/ApiMethodDocumentation.js +++ b/src/ApiMethodDocumentation.js @@ -991,12 +991,17 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) { compatibility, graph } = this; + + // hidden example when is not an async api + const noMainExample = !this._isAsyncAPI(amf) + return html``; }