From e94f70c3d559450997d3e1953df7699f1302d909 Mon Sep 17 00:00:00 2001 From: alexperez Date: Wed, 15 Nov 2023 16:31:00 -0300 Subject: [PATCH 1/2] chore: Exchange/Design Center is not showing the correct Example with wrong Header names --- src/ApiMethodDocumentation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiMethodDocumentation.js b/src/ApiMethodDocumentation.js index 6fa281a..fd16ae8 100644 --- a/src/ApiMethodDocumentation.js +++ b/src/ApiMethodDocumentation.js @@ -639,7 +639,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) { if (headers && headers.length) { result = ''; headers.forEach((item) => { - const name = this._getValue(item, this.ns.aml.vocabularies.core.name); + const name = this._getValue(item, this.ns.aml.vocabularies.apiContract.paramName) || this._getValue(item, this.ns.aml.vocabularies.core.name); const value = this._computePropertyValue(item) || ''; result += `${name}: ${value}\n`; }); From 2f223c6d4c952bfa39718faaa7c82f6467731d48 Mon Sep 17 00:00:00 2001 From: alexperez Date: Thu, 16 Nov 2023 09:43:19 -0300 Subject: [PATCH 2/2] 5.2.15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbe3136..9e1a569 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.14", + "version": "5.2.15", "license": "Apache-2.0", "main": "index.js", "module": "index.js",