-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathparallel.json
More file actions
38 lines (38 loc) · 1.01 KB
/
parallel.json
File metadata and controls
38 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
{
"description": "parallel evaluation",
"schemas": [
{ "$ref": "http://www.jsonscript.org/schema/schema.json#" },
{ "$ref": "http://www.jsonscript.org/schema/schema.json#parallel" },
{ "$ref": "http://www.jsonscript.org/schema/schema_strict.json#" },
{ "$ref": "http://www.jsonscript.org/schema/schema_strict.json#parallel" }
],
"tests": [
{
"description": "object with scripts is valid",
"data": {
"foo": { "$exec": "foo" },
"bar": { "$exec": "bar" },
"baz": 3
},
"valid": true
},
{
"description": "object with invalid scripts is invalid",
"data": {
"foo": { "$exec": "foo", "$extra": {} },
"bar": { "$exec": "bar" }
},
"valid": false
},
{
"description": "properties starting with $ is invalid",
"data": {
"$foo": { "$exec": "foo" },
"bar": { "$exec": "bar" }
},
"valid": false
}
]
}
]