You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.4 KiB
79 lines
2.4 KiB
2 years ago
|
{
|
||
|
"$schema": "http://json-schema.org/anubhavjana/schema#",
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"dag": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(odd-even-action|even-print-action|odd-print-action|prime-check-action)$"
|
||
|
},
|
||
|
"properties": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"label": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(Odd Even Action|Even Print Action|Odd Print Action|Prime Check Action)$"
|
||
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(conditional|serial|parallel)$"
|
||
|
},
|
||
|
"condition": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"source": {
|
||
|
"type": "string",
|
||
|
"enum": ["result"]
|
||
|
},
|
||
|
"operator": {
|
||
|
"type": "string",
|
||
|
"enum": ["equals"]
|
||
|
},
|
||
|
"target": {
|
||
|
"type": "string",
|
||
|
"enum": ["even"]
|
||
|
}
|
||
|
},
|
||
|
"required": ["source", "operator", "target"],
|
||
|
"additionalProperties": false
|
||
|
},
|
||
|
"next": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(prime-check-action|)$"
|
||
|
},
|
||
|
"branch_1": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(even-print-action|)$"
|
||
|
},
|
||
|
"branch_2": {
|
||
|
"type": "string",
|
||
|
"pattern": "^(odd-print-action|)$"
|
||
|
},
|
||
|
"arguments": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"number": {
|
||
|
"type": "integer",
|
||
|
"enum": [17]
|
||
|
}
|
||
|
},
|
||
|
"additionalProperties": false
|
||
|
}
|
||
|
},
|
||
|
"required": ["label", "type", "condition", "next", "branch_1", "branch_2", "arguments"],
|
||
|
"additionalProperties": false
|
||
|
}
|
||
|
},
|
||
|
"required": ["id", "properties"],
|
||
|
"additionalProperties": false
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"required": ["dag"],
|
||
|
"additionalProperties": false
|
||
|
}
|