From a1a929638d54e236ada8e014f77ad26b0fe160e3 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Fri, 3 May 2024 16:43:17 -0300 Subject: [PATCH 1/2] set endpoint id for async apis --- src/ApiDocumentationElement.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ApiDocumentationElement.js b/src/ApiDocumentationElement.js index 00b08b5..19b8a43 100644 --- a/src/ApiDocumentationElement.js +++ b/src/ApiDocumentationElement.js @@ -403,6 +403,9 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li let methodId; if (selectedType === 'method') { endpointId = eid; + if(this._isAsyncAPI(this.amf) && this._endpoint){ + endpointId = this._endpoint['@id']; + } methodId = mid; } else { endpointId = mid; From 237d14771235058a12ab012bd11351873f302bf0 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Fri, 3 May 2024 16:43:52 -0300 Subject: [PATCH 2/2] 6.1.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 44c416c..da29140 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@api-components/api-documentation", - "version": "6.1.2", + "version": "6.1.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@api-components/api-documentation", - "version": "6.1.3", + "version": "6.1.4", "license": "Apache-2.0", "dependencies": { "@advanced-rest-client/events-target-mixin": "^3.2.4", diff --git a/package.json b/package.json index 6660945..c89043d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/api-documentation", "description": "A main documentation view for AMF model", - "version": "6.1.3", + "version": "6.1.4", "license": "Apache-2.0", "main": "index.js", "module": "index.js",