Skip to content

Instantly share code, notes, and snippets.

@mikekistler
Last active December 5, 2023 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikekistler/1983a8249c0df56a46f94b4df1b7181d to your computer and use it in GitHub Desktop.
Save mikekistler/1983a8249c0df56a46f94b4df1b7181d to your computer and use it in GitHub Desktop.
Proposal for links in OpenAPI v4
@ralfhandl
Copy link

We should try to also address the "for any entry in the list" case, for example with a wildcard array index [*]:

          links:
            keyId:
              operationId: RegenerateKey
              # The id field of the first key can be set as id property of the request body of RegenerateKey
              requestBody:
                '/id': '$.response/body#value[*].id'

Extracting paired items could then be achieved by using both [*].id and [*].etag in a link object.

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