This repository was archived by the owner on Jan 15, 2025. It is now read-only.
forked from jmespath/jmespath.test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
53 lines (52 loc) · 1.95 KB
/
schema.json
File metadata and controls
53 lines (52 loc) · 1.95 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"given": { "type": ["object", "string", "array", "number", "boolean", "null"] },
"comment": {"type": "string"},
"cases": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"expression": { "type": "string" },
"result": { "type": ["object", "string", "array", "number", "boolean", "null"] },
"comment": {"type": "string"}
},
"required": ["expression", "result"]
},
{
"type": "object",
"properties": {
"expression": { "type": "string" },
"error": {
"enum": ["invalid-arity", "invalid-type",
"invalid-value", "syntax",
"unknown-function"]
},
"comment": {"type": "string"}
},
"required": ["expression", "error"]
},
{
"type": "object",
"properties": {
"expression": { "type": "string" },
"bench": {
"enum": ["parse", "interpret", "full"]
},
"comment": {"type": "string"}
},
"required": ["expression", "comment"]
}
]
}
}
},
"required": ["given", "cases"]
}
}