Describe the bug
respect doesn't resolve $outputs.<name> references in arazzo workflows.
To Reproduce
- have a workflow or step produce an output called
accessToken.
- in a subsequent step reference
$outputs.accessToken (e.g. Authorization header)
name: Authorization
in: header
value: Bearer {$outputs.accessToken}
- The step using the
$outputs.<name> reference will fail as the reference is sent as unresolved plain text (see log output)
Request Headers:
accept: application/json
authorization: Bearer {$outputs.accessToken}
Expected behavior
As the arazzo specification outlines the possibility to reference $outputs.<name> (although not clear which scope this refers to - I'm assuming global across all outputs of the current execution), such references should be resolved accordingly and replaced with the latest value before request execution.
Logs
There is currently no log output for what outputs were captured during workflows/steps, but the following is an excerpt from a log output of the subsequent request:
Request Headers:
accept: application/json
authorization: Bearer {$outputs.accessToken}
OpenAPI description
N/A
Redocly version(s)
2.54.2
Node.js version(s)
v24.21.0
OS, environment
Linux, Ubuntu 24
Additional context
I would like to re-use workflows in multiple places and across different arazzo files in order to avoid duplicate code. Currently the output reference only works when specifying a local workflow ID. $outputs and $sourceDescriptions.<..>.outputs.<name> don't seem to work.
Describe the bug
respectdoesn't resolve$outputs.<name>references in arazzo workflows.To Reproduce
accessToken.$outputs.accessToken(e.g. Authorization header)$outputs.<name>reference will fail as the reference is sent as unresolved plain text (see log output)Expected behavior
As the arazzo specification outlines the possibility to reference
$outputs.<name>(although not clear which scope this refers to - I'm assuming global across all outputs of the current execution), such references should be resolved accordingly and replaced with the latest value before request execution.Logs
There is currently no log output for what outputs were captured during workflows/steps, but the following is an excerpt from a log output of the subsequent request:
OpenAPI description
N/A
Redocly version(s)
2.54.2
Node.js version(s)
v24.21.0
OS, environment
Linux, Ubuntu 24
Additional context
I would like to re-use workflows in multiple places and across different arazzo files in order to avoid duplicate code. Currently the output reference only works when specifying a local workflow ID.
$outputsand$sourceDescriptions.<..>.outputs.<name>don't seem to work.