oas
oas copied to clipboard
Formatter doesn't retrieve value correctly if value name in schema has capital letters
In the schema, there is a header value with capital letters
"parameters": [
{
"name": "X-Customer-Code",
"in": "header",
"description": "Company Profile ID, it can be found on JetBrains Account portal near the company name",
"schema": {
"type": "string"
}
}
]
However, api/core transforms all headers to lowercase: https://github.com/readmeio/api/blob/cc5ee91b1d4d550c0c014875c74c5403762e42c8/packages/core/src/lib/prepareParams.ts#L367
Therefore formatted can't retrieve this field from data here: https://github.com/readmeio/oas/blob/77ba97d9edc06c20d366e4af358738fab8940fa0/packages/oas-to-har/src/index.ts#L46
This issue also exist in [email protected] package