Skip to content

Commit fc0c14e

Browse files
committed
README: Update simple JSON example
1 parent 1167669 commit fc0c14e

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

README.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,25 @@ Inside each `.json` file is a single array containing objects. It's easiest to
2525
illustrate 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

4649
In short: a description, a schema under test, and some tests, where each test

0 commit comments

Comments
 (0)