Respect `x-operation` host in request url is not resolved in verbose logs
Open
Nobody has claimed this yet.
p3
Respect
Type: Bug
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 228
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 48
Description
Describe the bug
x-operation host in request url is not resolved in verbose logs.
Also verboseLogs content should be revised.
{
"stepId": "one-x-op",
"description": "New Step",
"x-operation": {
"method": "GET",
"url": "[https://redocly.com/_mock/demo/openapi/museum-api/special-events/{param}](https://redocly.com/_mock/demo/openapi/museum-api/special-events/%7Bparam%7D)"
},
"parameters": [
{
"name": "param",
"in": "path",
"value": "f3e0e76e-e4a8-466e-ab9c-ae36c15b8e97"
}
],
"checks": [],
"response": {
"body": {
"eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
"name": "Time Traveler Tea Party",
"location": "Temporal Tearoom",
"eventDescription": "Sip tea with important historical figures.",
"dates": [
"2023-11-18",
"2023-11-25",
"2023-12-02"
],
"price": 60
},
"statusCode": 200,
"time": 111,
"header": {
"access-control-allow-credentials": "true",
"access-control-allow-headers": "*",
"access-control-allow-methods": "*",
"access-control-allow-origin": "*",
"age": "74843",
"alt-svc": "h3=\":443\"; ma=2592000",
"content-security-policy": "",
"content-type": "application/json",
"date": "Tue, 19 Aug 2025 12:52:09 GMT",
"server": "Caddy, Caddy",
"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
"vary": "Accept-Encoding",
"via": "1.1 24475cc722041223cf99f56b55432566.cloudfront.net (CloudFront)",
"x-amz-cf-id": "",
"x-amz-cf-pop": "",
"x-cache": "Hit from cloudfront",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-request-id": "cds-b27cc7b0-2010-4229-af03-1d19f99e895e",
"x-source": "REALM_API_FUNCTION",
"x-xss-protection": "1;mode=block;"
},
"contentType": "application/json",
"requestUrl": "https://redocly.com/_mock/demo/openapi/museum-api/special-events/f3e0e76e-e4a8-466e-ab9c-ae36c15b8e97"
},
"request": {
"header": {},
"path": {
"param": "f3e0e76e-e4a8-466e-ab9c-ae36c15b8e97"
},
"query": {},
"url": "[https://redocly.com/_mock/demo/openapi/museum-api/special-events/{param}](https://redocly.com/_mock/demo/openapi/museum-api/special-events/%7Bparam%7D)",
"method": "GET"
},
"verboseLog": {
"path": "",
"method": "GET",
"host": "[https://redocly.com/_mock/demo/openapi/museum-api/special-events/{param}](https://redocly.com/_mock/demo/openapi/museum-api/special-events/%7Bparam%7D)",
"body": "{\"eventId\":\"6744a0da-4121-49cd-8479-f8cc20526495\",\"name\":\"Time Traveler Tea Party\",\"location\":\"Temporal Tearoom\",\"eventDescription\":\"Sip tea with important historical figures.\",\"dates\":[\"2023-11-18\",\"2023-11-25\",\"2023-12-02\"],\"price\":60}",
"statusCode": 200,
"responseTime": 111
}
}
Expected behavior
Logs
OpenAPI description
Redocly Version(s)
Node.js Version(s)
OS, environment
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Arazzo step and inspect where the x-operation URL and verboseLog fields are assembled. Compare the unresolved host in verboseLog with the resolved requestUrl shown in the example; done means the host is resolved consistently and the verboseLogs content matches the revised expectation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100