Skip to content

respect doesn't resolve $outputs.<name> references #3146

Description

@sww-at-work

Describe the bug

respect doesn't resolve $outputs.<name> references in arazzo workflows.

To Reproduce

  1. have a workflow or step produce an output called accessToken.
  2. in a subsequent step reference $outputs.accessToken (e.g. Authorization header)
name: Authorization
      in: header
      value: Bearer {$outputs.accessToken}
  1. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions