Skip to content

Ambiguity in $sourceDescription.* runtime expressions #427

@char0n

Description

@char0n

Problem

Current format $sourceDescriptions.<name>.<reference> is ambiguous - <reference> could be:

  • A field from SourceDescription object (like url)
  • An operationId from OpenAPI source
  • A workflowId from Arazzo source

If we have operationId="url" in source OpenAPI Document, or workflowId="url" in Arazzo Document, it becomes ambiguous.

Proposed Format (Unambiguous)

$sourceDescriptions.<sourceName>.<fieldName> # field access
$sourceDescriptions.<sourceName>.operation.<operationId> # operationId reference
$sourceDescriptions.<sourceName>.workflow.<workflowId> # workflowId reference (allows us to validate workflowId format)

Examples:

  • $sourceDescriptions.petStore.url → field access
  • $sourceDescriptions.petStore.operation.getPets → operationId
  • $sourceDescriptions.petStore.workflow.loginFlow → workflowId

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions