Skip to content

flowDirective schema does not support task names #862

Closed
@matthias-pichler

Description

@matthias-pichler

What seems off:

the schema for the flow directive is:

{
  "flowDirective": {
    "type": "string",
    "enum": [
      "continue",
      "exit",
      "end"
    ],
    "default": "continue"
  }
}

while the docs mention that one can also specify the name of a task: https://github.com/serverlessworkflow/specification/blob/v1.0.0-alpha1/dsl.md#task-flow

and since flowDirective is also used in the schema for the switch task the examples would not pass validation: https://github.com/serverlessworkflow/specification/blob/v1.0.0-alpha1/dsl-reference.md#switch

What you expected to be:

{
  "flowDirective": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "continue",
          "exit",
          "end"
        ],
        "default": "continue"
      },
      {
        "type": "string"
      }
    ]
  }
}

Anything else we need to know?:

Environment:

  • Specification version used: 1.0.0-alpha1

Metadata

Metadata

Assignees

Labels

area: specChanges in the Specificationchange: fixSomething isn't working. Impacts in a minor version change.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions