-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededspec:0.8
Description
Given:
Workflow definition to be validated
{
"id": "workflow_1",
"name": "workflow_1",
"description": "workflow_1",
"version": "1.0",
"specVersion": "0.8",
"start": "Task1",
"functions": [
{
"name": "increment",
"type": "custom",
"operation": "worker"
}
],
"retries": [
{
"maxAttempts": 3
}
],
"states": [
{
"name": "Task1",
"type": "operation",
"actionMode": "sequential",
"actions": [
{
"functionRef": {
"refName": "increment",
"arguments": {
"input": "some text"
}
},
"retryRef": "const",
"actionDataFilter": {
"toStateData": "${ .result }"
}
}
],
"end": true
}
]
}Expected result:
Validation failed (because of name of RetryDefinition missed)
Actual result:
Validation passed.
The same result(validation passed) if 'name' field is empty or/and maxAttempts not defined.
According to specification 'name ' is required and maxAttempts not.
But in the retrydef.json schema they are required both.
Could you please support us in this question? May be we miss something?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededspec:0.8