|
20 | 20 | "field": { |
21 | 21 | "description": "The field to be checked", |
22 | 22 | "type": "string" |
23 | | - }, |
24 | | - "arg": { |
25 | | - "description": "The argument of the condition", |
26 | | - "type": "string" |
27 | | - }, |
28 | | - "args": { |
29 | | - "description": "The arguments of the condition", |
30 | | - "type": "array", |
31 | | - "items": { |
32 | | - "type": "string", |
33 | | - "minItems": 1, |
34 | | - "uniqueItems": true |
35 | | - } |
36 | | - }, |
37 | | - "conditions": { |
38 | | - "description": "The sub-conditions of the condition", |
39 | | - "type": "array", |
40 | | - "items": { |
41 | | - "$ref": "#/items/properties/condition" |
42 | | - } |
43 | 23 | } |
44 | 24 | }, |
45 | 25 | "required": ["type"], |
|
49 | 29 | "type": { "enum": [ |
50 | 30 | "regex", "bytes", "length", "contains", "range", |
51 | 31 | "!regex", "!bytes", "!length", "!contains", "!range" |
52 | | - ] } |
| 32 | + ] }, |
| 33 | + "arg": { |
| 34 | + "description": "The argument of the condition", |
| 35 | + "type": "string" |
| 36 | + } |
53 | 37 | }, |
54 | 38 | "required": ["arg"] |
55 | 39 | }, |
56 | 40 | { |
57 | 41 | "properties": { |
58 | | - "type": { "enum": ["in", "!in"] } |
| 42 | + "type": { "enum": ["in", "!in"] }, |
| 43 | + "args": { |
| 44 | + "description": "The arguments of the condition", |
| 45 | + "type": "array", |
| 46 | + "items": { |
| 47 | + "type": "string", |
| 48 | + "minItems": 1, |
| 49 | + "uniqueItems": true |
| 50 | + } |
| 51 | + } |
59 | 52 | }, |
60 | 53 | "required": ["args"] |
61 | 54 | }, |
62 | 55 | { |
63 | 56 | "properties": { |
64 | | - "type": { "enum": ["and", "or", "!and", "!or"] } |
| 57 | + "type": { "enum": ["and", "or", "!and", "!or"] }, |
| 58 | + "conditions": { |
| 59 | + "description": "The sub-conditions of the condition", |
| 60 | + "type": "array", |
| 61 | + "items": { |
| 62 | + "$ref": "#/items/properties/condition" |
| 63 | + } |
| 64 | + } |
65 | 65 | }, |
66 | 66 | "required": ["conditions"] |
| 67 | + }, |
| 68 | + { |
| 69 | + "properties": { |
| 70 | + "type": { "enum": ["null", "blank", "true", "!null", "!blank", "!true"] } |
| 71 | + } |
67 | 72 | } |
68 | 73 | ], |
69 | 74 | "defaultSnippets": [ |
|
0 commit comments