Skip to content

Commit cb8c9a3

Browse files
committed
Add config to validate default values
1 parent d964e8e commit cb8c9a3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

properties_pane/samples.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"validateAs": "number",
4+
"constraintsFromField": {
5+
"min": "minimum",
6+
"exclusiveMin": "exclusiveMinimum",
7+
"max": "maximum",
8+
"exclusiveMax": "exclusiveMaximum",
9+
"multipleOf": "multipleOf",
10+
"divisibleBy": "divisibleBy"
11+
},
12+
"dependency": {
13+
"type": "and",
14+
"values": [
15+
{
16+
"key": "childType",
17+
"value": "numeric"
18+
},
19+
{
20+
"key": "default",
21+
"valueType": "number"
22+
}
23+
]
24+
}
25+
},
26+
{
27+
"validateAs": "string",
28+
"dependency": {
29+
"type": "and",
30+
"values": [
31+
{
32+
"key": "childType",
33+
"value": "numeric"
34+
},
35+
{
36+
"key": "default",
37+
"valueType": "string"
38+
}
39+
]
40+
}
41+
}
42+
]

0 commit comments

Comments
 (0)