{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "action.schema.json",
"type": "object",
"title": "Workflow action",
"required":[ "id", "defaultResult" ],
"additionalProperties": false,
"properties":{
"id":{ "type":"string", "description":"Unique action identifier (within the current step)" },
"meta":{ "type":"object", "description": "Abitrary metadata that you may use to describe the action." },
"isAutomatic":{"type":"boolean", "description":"Whether or not execution of the action occurs using automatic triggers or must be manually triggered." },
"condition":{
"type":"object",
"description":"Optional condition for the action. If specified, the action will only be executed if the condition evaluates true.",
"$ref":"condition.schema.json"
},
"defaultResult":{
"type":"object",
"description":"The default result for this action. If no conditional results are defined or evaluate true, this result will be executed.",
"$ref":"defaultResult.schema.json"
},
"conditionalResults":{
"type":"array",
"minItems":0,
"description":"Array of conditional results that are only chosen if their condition evaluates true.",
"items":{
"type":"object",
"$ref":"conditionalResult.schema.json"
}
}
}
}