From c1a0cc8c975fa2cd928fb6862f4a557b9a982801 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Mon, 22 Apr 2024 15:59:01 -0300 Subject: [PATCH 1/3] feat(W-15520261): show header example when is asyncApi --- src/ApiMethodDocumentation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ApiMethodDocumentation.js b/src/ApiMethodDocumentation.js index fd16ae8..5d59f05 100644 --- a/src/ApiMethodDocumentation.js +++ b/src/ApiMethodDocumentation.js @@ -991,12 +991,14 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) { compatibility, graph } = this; + const isAsyncApi = !this._isAsyncAPI(amf) return html``; } From a18b8b46333de166d13cbaeba07a83f7a920a707 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Mon, 22 Apr 2024 16:13:33 -0300 Subject: [PATCH 2/3] feat(W-15520261): show example when is asyncApi --- src/ApiMethodDocumentation.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ApiMethodDocumentation.js b/src/ApiMethodDocumentation.js index 5d59f05..42f1798 100644 --- a/src/ApiMethodDocumentation.js +++ b/src/ApiMethodDocumentation.js @@ -991,14 +991,17 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) { compatibility, graph } = this; - const isAsyncApi = !this._isAsyncAPI(amf) + + // hidden example when is not an async api + const noMainExample = !this._isAsyncAPI(amf) + return html``; } From 869f3f3b2b04bfdcd3a0fbd143ad9ee6f2991c7d Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Mon, 22 Apr 2024 16:13:37 -0300 Subject: [PATCH 3/3] 5.2.16 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",