File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - " 3.5"
4
+ install : " pip install jsonschema==2.5.1"
5
+ script : ls tests/*.json | xargs -I {} jsonschema schema.json -i {}
Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " array" ,
3
+ "items" : {
4
+ "type" : " object" ,
5
+ "additionalProperties" : " false" ,
6
+ "properties" : {
7
+ "given" : {},
8
+ "comment" : {"type" : " string" },
9
+ "cases" : {
10
+ "type" : " array" ,
11
+ "items" : {
12
+ "type" : " object" ,
13
+ "additionalProperties" : false ,
14
+ "properties" : {
15
+ "expression" : {"type" : " string" },
16
+ "result" : {},
17
+ "error" : {
18
+ "enum" : [" invalid-arity" , " invalid-type" ,
19
+ " invalid-value" , " syntax" ,
20
+ " unknown-function" ]
21
+ },
22
+ "bench" : {
23
+ "enum" : [" parse" , " interpret" , " full" ]
24
+ },
25
+ "comment" : {"type" : " string" }
26
+ },
27
+ "required" : [" expression" ],
28
+ "anyOf" : [
29
+ {"required" : [" result" ]},
30
+ {"required" : [" error" ]},
31
+ {"required" : [" bench" ]}
32
+ ]
33
+ }
34
+ }
35
+ },
36
+ "required" : [" given" , " cases" ]
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments