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", 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`; });