File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -25,22 +25,25 @@ Inside each `.json` file is a single array containing objects. It's easiest to
2525illustrate the structure of these with an example:
2626
2727``` json
28- {
29- "description" : " the description of the test case" ,
30- "schema" : {"the schema that should" : " be validated against" },
31- "tests" : [
32- {
33- "description" : " a specific test of a valid instance" ,
34- "data" : " the instance" ,
35- "valid" : true
36- },
37- {
38- "description" : " another specific test this time, invalid" ,
39- "data" : 15 ,
40- "valid" : false
41- }
42- ]
43- }
28+ {
29+ "description" : " The description of the test case" ,
30+ "schema" : {
31+ "description" : " The schema against which the data in each test is validated" ,
32+ "type" : " string"
33+ },
34+ "tests" : [
35+ {
36+ "description" : " Test for a valid instance" ,
37+ "data" : " the instance to validate" ,
38+ "valid" : true
39+ },
40+ {
41+ "description" : " Test for an invalid instance" ,
42+ "data" : 15 ,
43+ "valid" : false
44+ }
45+ ]
46+ }
4447```
4548
4649In short: a description, a schema under test, and some tests, where each test
You can’t perform that action at this time.
0 commit comments