Skip to content

Commit 6e81de5

Browse files
these test cases can be combined since the schemas are the same
1 parent cd73775 commit 6e81de5

File tree

5 files changed

+5
-37
lines changed

5 files changed

+5
-37
lines changed

tests/draft2019-09/defs.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
"description": "valid definition schema",
88
"data": {"$defs": {"foo": {"type": "integer"}}},
99
"valid": true
10-
}
11-
]
12-
},
13-
{
14-
"description": "invalid definition",
15-
"schema": {"$ref": "https://json-schema.org/draft/2019-09/schema"},
16-
"tests": [
10+
},
1711
{
1812
"description": "invalid definition schema",
1913
"data": {"$defs": {"foo": {"type": 1}}},

tests/draft2020-12/defs.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@
99
"description": "valid definition schema",
1010
"data": {"$defs": {"foo": {"type": "integer"}}},
1111
"valid": true
12-
}
13-
]
14-
},
15-
{
16-
"description": "invalid definition",
17-
"schema": {
18-
"$ref": "https://json-schema.org/draft/2020-12/schema"
19-
},
20-
"tests": [
12+
},
2113
{
2214
"description": "invalid definition schema",
2315
"data": {"$defs": {"foo": {"type": 1}}},

tests/draft4/definitions.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111
}
1212
},
1313
"valid": true
14-
}
15-
]
16-
},
17-
{
18-
"description": "invalid definition",
19-
"schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
20-
"tests": [
14+
},
2115
{
2216
"description": "invalid definition schema",
2317
"data": {

tests/draft6/definitions.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111
}
1212
},
1313
"valid": true
14-
}
15-
]
16-
},
17-
{
18-
"description": "invalid definition",
19-
"schema": {"$ref": "http://json-schema.org/draft-06/schema#"},
20-
"tests": [
14+
},
2115
{
2216
"description": "invalid definition schema",
2317
"data": {

tests/draft7/definitions.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111
}
1212
},
1313
"valid": true
14-
}
15-
]
16-
},
17-
{
18-
"description": "invalid definition",
19-
"schema": {"$ref": "http://json-schema.org/draft-07/schema#"},
20-
"tests": [
14+
},
2115
{
2216
"description": "invalid definition schema",
2317
"data": {

0 commit comments

Comments
 (0)