-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Labels
area: specChanges in the SpecificationChanges in the Specificationchange: fixSomething isn't working. Impacts in a minor version change.Something isn't working. Impacts in a minor version change.
Milestone
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
cdavernas
Metadata
Metadata
Assignees
Labels
area: specChanges in the SpecificationChanges in the Specificationchange: fixSomething isn't working. Impacts in a minor version change.Something isn't working. Impacts in a minor version change.
Type
Projects
Status
Done