Skip to content

Commit 4336571

Browse files
authored
Merge pull request #224 from santhosh-tekuri/content_nonstrings
content: ignore non-strings
2 parents 2ca50c0 + 1507e57 commit 4336571

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/draft7/optional/content.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"description": "an invalid JSON document",
1515
"data": "{:}",
1616
"valid": false
17+
},
18+
{
19+
"description": "ignores non-strings",
20+
"data": 100,
21+
"valid": true
1722
}
1823
]
1924
},
@@ -32,6 +37,11 @@
3237
"description": "an invalid base64 string (% is not a valid character)",
3338
"data": "eyJmb28iOi%iYmFyIn0K",
3439
"valid": false
40+
},
41+
{
42+
"description": "ignores non-strings",
43+
"data": 100,
44+
"valid": true
3545
}
3646
]
3747
},
@@ -56,6 +66,11 @@
5666
"description": "an invalid base64 string that is valid JSON",
5767
"data": "{}",
5868
"valid": false
69+
},
70+
{
71+
"description": "ignores non-strings",
72+
"data": 100,
73+
"valid": true
5974
}
6075
]
6176
}

0 commit comments

Comments
 (0)