Skip to content

Commit

Permalink
Json schema (#484)
Browse files Browse the repository at this point in the history
* fix: JSON schema for final condition property

Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>

* fix: JSON schema for foreach condition property

Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>

---------

Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>
  • Loading branch information
deathiop authored Oct 9, 2023
1 parent 101b997 commit 938d3a4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion hack/template-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,15 @@
"check"
]
},
"foreach": {
"type": "string",
"description": "Whether this skip condition stops the parent or the children of a foreach step (parent forbidden ouside of foreach or on a check condition)",
"default": "children",
"enum": [
"parent",
"children"
]
},
"if": {
"type": "array",
"items": {
Expand Down Expand Up @@ -850,6 +859,11 @@
"type": "object",
"description": "Describes state changement if all conditions match"
},
"final": {
"type": "boolean",
"description": "Whether the condition execution continues if this one evaluates to true",
"default": false
},
"message": {
"type": "string",
"description": "Message to display in the UI if condition match"
Expand Down Expand Up @@ -1167,4 +1181,4 @@
"type": "boolean"
}
}
}
}

0 comments on commit 938d3a4

Please sign in to comment.