diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-08-13 18:44:47 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-08-13 18:44:47 -0400 |
commit | a57d8540bd272d913d57a37b45db3d9fe21a476b (patch) | |
tree | 8ff342040433520e7ddd426dca03c05fd96b212f /tests/draft4/optional/format/ipv6.json | |
parent | 95874db4df84775af2429ddea7afd006523cef08 (diff) | |
download | jsonschema-a57d8540bd272d913d57a37b45db3d9fe21a476b.tar.gz |
Squashed 'json/' changes from ea415537..86f52b87
86f52b87 Fix a clear copy-paste error in the case names for tests from #394.
ec18a7d0 Merge pull request #360 from notEthan/duplicate_uris
cd9a4b9d change schemas with duplicate URIs http://localhost:1234/folder/
43e190e0 Merge pull request #394 from rjmill/rjmill/bools-and-1s-and-0s-inside-objects-and-arrays
85f0d459 Merge pull request #419 from ChALkeR/chalker/format-uri
54436216 Merge pull request #420 from ChALkeR/chalker/format/ip6
ad47b726 Add long valid and invalid ipv6
b2ab70ec More optional ipv6 tests
37189ae6 Test that uri format scheme is validated for allowed chars
2106ed17 backport uniqueItems cases to draft3
49fc2a95 backport const test cases to draft6
79fe60c0 more tests for true != 1 and false != 0 inside objects/arrays
git-subtree-dir: json
git-subtree-split: 86f52b87e3d572b8f808dd074a6b95c3695ba992
Diffstat (limited to 'tests/draft4/optional/format/ipv6.json')
-rw-r--r-- | tests/draft4/optional/format/ipv6.json | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/draft4/optional/format/ipv6.json b/tests/draft4/optional/format/ipv6.json index 9b0881e..2a08cb4 100644 --- a/tests/draft4/optional/format/ipv6.json +++ b/tests/draft4/optional/format/ipv6.json @@ -112,6 +112,41 @@ "description": "ipv4 segment must have 4 octets", "data": "1:2:3:4:1.2.3", "valid": false + }, + { + "description": "leading whitespace is invalid", + "data": " ::1", + "valid": false + }, + { + "description": "trailing whitespace is invalid", + "data": "::1 ", + "valid": false + }, + { + "description": "netmask is not a part of ipv6 address", + "data": "fe80::/64", + "valid": false + }, + { + "description": "zone id is not a part of ipv6 address", + "data": "fe80::a%eth1", + "valid": false + }, + { + "description": "a long valid ipv6", + "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", + "valid": true + }, + { + "description": "a long invalid ipv6, below length limit, first", + "data": "100:100:100:100:100:100:255.255.255.255.255", + "valid": false + }, + { + "description": "a long invalid ipv6, below length limit, second", + "data": "100:100:100:100:100:100:100:255.255.255.255", + "valid": false } ] } |