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", 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;