Update workflowRules-schema.json (#21)

pull/32/head
Abbas Cyclewala 2020-05-20 13:55:29 +05:30 committed by GitHub
parent 7862b3b3e7
commit 93f0b8c009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 10 deletions

View File

@ -2,18 +2,27 @@
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"definitions": { "definitions": {
"Rule": { "Rule": {
"title": "Rule",
"properties": { "properties": {
"RuleName": { "RuleName": {
"type": "string" "type": "string"
}, },
"Operator": { "Operator": {
"enum": [ "And", "AndAlso", "Or", "OrElse" ] "enum": [
"And",
"AndAlso",
"Or",
"OrElse"
]
}, },
"ErrorMessage": { "ErrorMessage": {
"type": "string" "type": "string"
}, },
"ErrorType": { "ErrorType": {
"enum": [ "Warning", "Error" ] "enum": [
"Warning",
"Error"
]
}, },
"SuccessEvent": { "SuccessEvent": {
"type": "string" "type": "string"
@ -22,8 +31,12 @@
"type": "array", "type": "array",
"items": { "items": {
"anyOf": [ "anyOf": [
{ "$ref": "#/definitions/LeafRule" }, {
{ "$ref": "#/definitions/Rule" } "$ref": "#/definitions/LeafRule"
},
{
"$ref": "#/definitions/Rule"
}
] ]
} }
} }
@ -36,6 +49,7 @@
"type": "object" "type": "object"
}, },
"LeafRule": { "LeafRule": {
"title": "Leaf Rule",
"type": "object", "type": "object",
"required": [ "required": [
"RuleName", "RuleName",
@ -50,13 +64,18 @@
"type": "string" "type": "string"
}, },
"RuleExpressionType": { "RuleExpressionType": {
"enum": [ "LambdaExpression" ] "enum": [
"LambdaExpression"
]
}, },
"ErrorMessage": { "ErrorMessage": {
"type": "string" "type": "string"
}, },
"ErrorType": { "ErrorType": {
"enum": [ "Warning", "Error" ] "enum": [
"Warning",
"Error"
]
}, },
"SuccessEvent": { "SuccessEvent": {
"type": "string" "type": "string"
@ -72,16 +91,19 @@
"type": "array", "type": "array",
"items": { "items": {
"anyOf": [ "anyOf": [
{ "$ref": "#/definitions/LeafRule" }, {
{ "$ref": "#/definitions/Rule" } "$ref": "#/definitions/LeafRule"
},
{
"$ref": "#/definitions/Rule"
}
] ]
} }
} }
}, },
"required": [ "required": [
"WorkflowName", "WorkFlowName",
"Rules" "Rules"
], ],
"type": "object" "type": "object"
} }