Skip to content

Commit

Permalink
feat: disallow depending on itself for single condition
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jan 16, 2024
1 parent f2cce3c commit 4a0e2b6
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
{
"allOf": [
{
"if": {
"required": [
"id",
"condition"
]
},
"then": {
"not": {
"properties": {
"condition": {
"required": [
"property"
],
"properties": {
"property": {
"const": {
"$data": "2/id"
}
}
}
}
}
}
}
}
],
"properties": {
"id": {
"type": "string",
Expand Down

0 comments on commit 4a0e2b6

Please sign in to comment.