summaryrefslogtreecommitdiff
path: root/json/tests/draft4/enum.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-06-09 19:00:09 -0400
committerJulian Berman <Julian@GrayVines.com>2020-06-09 19:00:09 -0400
commit3f58e36754b3e2872a256874c1ffdd30c677f709 (patch)
tree157cf84b5880faee6fab531f6e90d36e326b99e7 /json/tests/draft4/enum.json
parent3b85db9769390b4dc713fbf09ab76a760e48fea3 (diff)
parent4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82 (diff)
downloadjsonschema-3f58e36754b3e2872a256874c1ffdd30c677f709.tar.gz
Merge commit '4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82'
* commit '4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82': Squashed 'json/' changes from 9d0e0eb..817b724
Diffstat (limited to 'json/tests/draft4/enum.json')
-rw-r--r--json/tests/draft4/enum.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft4/enum.json b/json/tests/draft4/enum.json
index 0191b55..6844578 100644
--- a/json/tests/draft4/enum.json
+++ b/json/tests/draft4/enum.json
@@ -206,5 +206,21 @@
"valid": true
}
]
+ },
+ {
+ "description": "nul characters in strings",
+ "schema": { "enum": [ "hello\u0000there" ] },
+ "tests": [
+ {
+ "description": "match string with nul",
+ "data": "hello\u0000there",
+ "valid": true
+ },
+ {
+ "description": "do not match string lacking nul",
+ "data": "hellothere",
+ "valid": false
+ }
+ ]
}
]