Update workflowRules-schema.json (#21)
parent
7862b3b3e7
commit
93f0b8c009
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue