Skip to content

Commit e2b2a4b

Browse files
committed
Change all content* keyword tests to always validate
The Draft 2019-09 specification requires that these be annotation-only.
1 parent f47003f commit e2b2a4b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/draft2019-09/optional/content.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"valid": true
1212
},
1313
{
14-
"description": "an invalid JSON document",
14+
"description": "an invalid JSON document; validates true",
1515
"data": "{:}",
16-
"valid": false
16+
"valid": true
1717
},
1818
{
1919
"description": "ignores non-strings",
@@ -34,9 +34,9 @@
3434
"valid": true
3535
},
3636
{
37-
"description": "an invalid base64 string (% is not a valid character)",
37+
"description": "an invalid base64 string (% is not a valid character); validates true",
3838
"data": "eyJmb28iOi%iYmFyIn0K",
39-
"valid": false
39+
"valid": true
4040
},
4141
{
4242
"description": "ignores non-strings",
@@ -58,14 +58,14 @@
5858
"valid": true
5959
},
6060
{
61-
"description": "a validly-encoded invalid JSON document",
61+
"description": "a validly-encoded invalid JSON document; validates true",
6262
"data": "ezp9Cg==",
63-
"valid": false
63+
"valid": true
6464
},
6565
{
66-
"description": "an invalid base64 string that is valid JSON",
66+
"description": "an invalid base64 string that is valid JSON; validates true",
6767
"data": "{}",
68-
"valid": false
68+
"valid": true
6969
},
7070
{
7171
"description": "ignores non-strings",
@@ -93,29 +93,29 @@
9393
"valid": true
9494
},
9595
{
96-
"description": "an invalid base64-encoded JSON document",
96+
"description": "an invalid base64-encoded JSON document; validates true",
9797
"data": "eyJib28iOiAyMH0=",
98-
"valid": false
98+
"valid": true
9999
},
100100
{
101-
"description": "an empty object as a base64-encoded JSON document",
101+
"description": "an empty object as a base64-encoded JSON document; validates true",
102102
"data": "e30=",
103-
"valid": false
103+
"valid": true
104104
},
105105
{
106106
"description": "an empty array as a base64-encoded JSON document",
107107
"data": "W10=",
108108
"valid": true
109109
},
110110
{
111-
"description": "a validly-encoded invalid JSON document",
111+
"description": "a validly-encoded invalid JSON document; validates true",
112112
"data": "ezp9Cg==",
113-
"valid": false
113+
"valid": true
114114
},
115115
{
116-
"description": "an invalid base64 string that is valid JSON",
116+
"description": "an invalid base64 string that is valid JSON; validates true",
117117
"data": "{}",
118-
"valid": false
118+
"valid": true
119119
},
120120
{
121121
"description": "ignores non-strings",

0 commit comments

Comments
 (0)