Closed
Description
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
Type
Projects
Status
Done