Skip to content

Commit 0147ca6

Browse files
authored
[W-14454298] Exchange/Design Center is not showing the correct Example with… (#78)
* chore: Exchange/Design Center is not showing the correct Example with wrong Header names * 5.2.15
1 parent e6ff89c commit 0147ca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-method-documentation",
33
"description": "A HTTP method documentation build from AMF model",
4-
"version": "5.2.14",
4+
"version": "5.2.15",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ApiMethodDocumentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
639639
if (headers && headers.length) {
640640
result = '';
641641
headers.forEach((item) => {
642-
const name = this._getValue(item, this.ns.aml.vocabularies.core.name);
642+
const name = this._getValue(item, this.ns.aml.vocabularies.apiContract.paramName) || this._getValue(item, this.ns.aml.vocabularies.core.name);
643643
const value = this._computePropertyValue(item) || '';
644644
result += `${name}: ${value}\n`;
645645
});

0 commit comments

Comments
 (0)