|
3 | 3 | "draft4/$ref prevents a sibling id from changing the base uri": { |
4 | 4 | "allOf": [ |
5 | 5 | { |
6 | | - "$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not ttp://localhost:1234/sibling_id/foo.json", |
| 6 | + "$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not http://localhost:1234/sibling_id/foo.json", |
7 | 7 | "$ref": "foo.json", |
8 | 8 | "id": "http://localhost:1234/sibling_id/" |
9 | 9 | } |
|
12 | 12 | "base_foo": { |
13 | 13 | "$comment": "this canonical uri is http://localhost:1234/sibling_id/base/foo.json", |
14 | 14 | "id": "foo.json", |
15 | | - "minimum": 5 |
| 15 | + "type": "number" |
16 | 16 | }, |
17 | 17 | "foo": { |
18 | 18 | "id": "http://localhost:1234/sibling_id/foo.json", |
19 | | - "minimum": 2 |
| 19 | + "type": "string" |
20 | 20 | } |
21 | 21 | }, |
22 | 22 | "id": "http://localhost:1234/sibling_id/base/" |
|
91 | 91 | ], |
92 | 92 | "type": "object" |
93 | 93 | }, |
| 94 | + "draft4/\\d in patternProperties matches [0-9], not unicode digits": { |
| 95 | + "additionalProperties": false, |
| 96 | + "patternProperties": { |
| 97 | + "^\\d+$": {} |
| 98 | + }, |
| 99 | + "type": "object" |
| 100 | + }, |
| 101 | + "draft4/\\w in patternProperties matches [A-Za-z0-9_], not unicode letters": { |
| 102 | + "additionalProperties": false, |
| 103 | + "patternProperties": { |
| 104 | + "\\wcole": {} |
| 105 | + }, |
| 106 | + "type": "object" |
| 107 | + }, |
94 | 108 | "draft4/all integers are multiples of 0.5, if overflow is handled": { |
95 | 109 | "multipleOf": 0.5, |
96 | 110 | "type": "number" |
|
182 | 196 | } |
183 | 197 | } |
184 | 198 | }, |
| 199 | + "draft4/id must be resolved against nearest parent, not just immediate parent": { |
| 200 | + "allOf": [ |
| 201 | + { |
| 202 | + "$ref": "http://example.com/b/d.json" |
| 203 | + } |
| 204 | + ], |
| 205 | + "definitions": { |
| 206 | + "x": { |
| 207 | + "id": "http://example.com/b/c.json", |
| 208 | + "not": { |
| 209 | + "definitions": { |
| 210 | + "y": { |
| 211 | + "id": "d.json", |
| 212 | + "type": "number" |
| 213 | + } |
| 214 | + } |
| 215 | + } |
| 216 | + } |
| 217 | + }, |
| 218 | + "id": "http://example.com/a.json" |
| 219 | + }, |
185 | 220 | "draft4/maximum validation (explicit false exclusivity)": { |
186 | 221 | "exclusiveMaximum": false, |
187 | 222 | "maximum": 3.0 |
|
233 | 268 | "draft4/unicode digits are more than 0 through 9": { |
234 | 269 | "additionalProperties": false, |
235 | 270 | "patternProperties": { |
236 | | - "^\\d+$": {} |
| 271 | + "^\\p{digit}+$": {} |
237 | 272 | }, |
238 | 273 | "type": "object" |
239 | 274 | }, |
240 | 275 | "draft4/unicode semantics should be used for all patternProperties matching": { |
241 | 276 | "additionalProperties": false, |
242 | 277 | "patternProperties": { |
243 | | - "\\wcole": {} |
| 278 | + "\\p{Letter}cole": {} |
244 | 279 | }, |
245 | 280 | "type": "object" |
246 | 281 | }, |
|
286 | 321 | } |
287 | 322 | } |
288 | 323 | }, |
| 324 | + "draft7/$id must be resolved against nearest parent, not just immediate parent": { |
| 325 | + "$id": "http://example.com/a.json", |
| 326 | + "allOf": [ |
| 327 | + { |
| 328 | + "$ref": "http://example.com/b/d.json" |
| 329 | + } |
| 330 | + ], |
| 331 | + "definitions": { |
| 332 | + "x": { |
| 333 | + "$id": "http://example.com/b/c.json", |
| 334 | + "not": { |
| 335 | + "definitions": { |
| 336 | + "y": { |
| 337 | + "$id": "d.json", |
| 338 | + "type": "number" |
| 339 | + } |
| 340 | + } |
| 341 | + } |
| 342 | + } |
| 343 | + } |
| 344 | + }, |
289 | 345 | "draft7/$ref prevents a sibling $id from changing the base uri": { |
290 | 346 | "$id": "http://localhost:1234/sibling_id/base/", |
291 | 347 | "allOf": [ |
292 | 348 | { |
293 | | - "$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not ttp://localhost:1234/sibling_id/foo.json", |
| 349 | + "$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not http://localhost:1234/sibling_id/foo.json", |
294 | 350 | "$id": "http://localhost:1234/sibling_id/", |
295 | 351 | "$ref": "foo.json" |
296 | 352 | } |
|
299 | 355 | "base_foo": { |
300 | 356 | "$comment": "this canonical uri is http://localhost:1234/sibling_id/base/foo.json", |
301 | 357 | "$id": "foo.json", |
302 | | - "minimum": 5 |
| 358 | + "type": "number" |
303 | 359 | }, |
304 | 360 | "foo": { |
305 | 361 | "$id": "http://localhost:1234/sibling_id/foo.json", |
306 | | - "minimum": 2 |
| 362 | + "type": "string" |
307 | 363 | } |
308 | 364 | } |
309 | 365 | }, |
|
437 | 493 | ], |
438 | 494 | "type": "object" |
439 | 495 | }, |
| 496 | + "draft7/\\d in pattern matches [0-9], not unicode digits": { |
| 497 | + "pattern": "^\\d+$" |
| 498 | + }, |
| 499 | + "draft7/\\d in patternProperties matches [0-9], not unicode digits": { |
| 500 | + "additionalProperties": false, |
| 501 | + "patternProperties": { |
| 502 | + "^\\d+$": true |
| 503 | + }, |
| 504 | + "type": "object" |
| 505 | + }, |
| 506 | + "draft7/\\w in patternProperties matches [A-Za-z0-9_], not unicode letters": { |
| 507 | + "additionalProperties": false, |
| 508 | + "patternProperties": { |
| 509 | + "\\wcole": true |
| 510 | + }, |
| 511 | + "type": "object" |
| 512 | + }, |
| 513 | + "draft7/\\w in patterns matches [A-Za-z0-9_], not unicode letters": { |
| 514 | + "pattern": "\\wcole" |
| 515 | + }, |
440 | 516 | "draft7/a schema given for items": { |
441 | 517 | "items": { |
442 | 518 | "type": "integer" |
|
848 | 924 | "if": false |
849 | 925 | } |
850 | 926 | }, |
| 927 | + "draft7/date format": { |
| 928 | + "format": "date" |
| 929 | + }, |
| 930 | + "draft7/date-time format": { |
| 931 | + "format": "date-time" |
| 932 | + }, |
851 | 933 | "draft7/dependencies": { |
852 | 934 | "dependencies": { |
853 | 935 | "bar": [ |
|
884 | 966 | } |
885 | 967 | } |
886 | 968 | }, |
| 969 | + "draft7/email format": { |
| 970 | + "format": "email" |
| 971 | + }, |
887 | 972 | "draft7/enum with 0 does not match false": { |
888 | 973 | "enum": [ |
889 | 974 | 0 |
|
1012 | 1097 | null |
1013 | 1098 | ] |
1014 | 1099 | }, |
| 1100 | + "draft7/hostname format": { |
| 1101 | + "format": "hostname" |
| 1102 | + }, |
1015 | 1103 | "draft7/id inside an enum is not a real identifier": { |
1016 | 1104 | "anyOf": [ |
1017 | 1105 | { |
|
1042 | 1130 | } |
1043 | 1131 | } |
1044 | 1132 | }, |
| 1133 | + "draft7/idn-email format": { |
| 1134 | + "format": "idn-email" |
| 1135 | + }, |
| 1136 | + "draft7/idn-hostname format": { |
| 1137 | + "format": "idn-hostname" |
| 1138 | + }, |
1045 | 1139 | "draft7/if and else without then": { |
1046 | 1140 | "else": { |
1047 | 1141 | "multipleOf": 2 |
|
1128 | 1222 | } |
1129 | 1223 | } |
1130 | 1224 | }, |
| 1225 | + "draft7/ipv4 format": { |
| 1226 | + "format": "ipv4" |
| 1227 | + }, |
| 1228 | + "draft7/ipv6 format": { |
| 1229 | + "format": "ipv6" |
| 1230 | + }, |
| 1231 | + "draft7/iri format": { |
| 1232 | + "format": "iri" |
| 1233 | + }, |
| 1234 | + "draft7/iri-reference format": { |
| 1235 | + "format": "iri-reference" |
| 1236 | + }, |
1131 | 1237 | "draft7/items + contains": { |
1132 | 1238 | "contains": { |
1133 | 1239 | "multipleOf": 3 |
|
1193 | 1299 | false |
1194 | 1300 | ] |
1195 | 1301 | }, |
| 1302 | + "draft7/json-pointer format": { |
| 1303 | + "format": "json-pointer" |
| 1304 | + }, |
1196 | 1305 | "draft7/maxItems validation": { |
1197 | 1306 | "maxItems": 2 |
1198 | 1307 | }, |
|
1674 | 1783 | } |
1675 | 1784 | } |
1676 | 1785 | }, |
| 1786 | + "draft7/regex format": { |
| 1787 | + "format": "regex" |
| 1788 | + }, |
1677 | 1789 | "draft7/regexes are not anchored by default and are case sensitive": { |
1678 | 1790 | "patternProperties": { |
1679 | 1791 | "X_": { |
|
1731 | 1843 | } |
1732 | 1844 | } |
1733 | 1845 | }, |
| 1846 | + "draft7/relative-json-pointer format": { |
| 1847 | + "format": "relative-json-pointer" |
| 1848 | + }, |
1734 | 1849 | "draft7/remote ref": { |
1735 | 1850 | "$ref": "http://localhost:1234/integer.json" |
1736 | 1851 | }, |
|
1812 | 1927 | }, |
1813 | 1928 | "type": "object" |
1814 | 1929 | }, |
| 1930 | + "draft7/time format": { |
| 1931 | + "format": "time" |
| 1932 | + }, |
1815 | 1933 | "draft7/type as array with one item": { |
1816 | 1934 | "type": [ |
1817 | 1935 | "string" |
|
1840 | 1958 | "draft7/unicode digits are more than 0 through 9": { |
1841 | 1959 | "additionalProperties": false, |
1842 | 1960 | "patternProperties": { |
1843 | | - "^\\d+$": true |
| 1961 | + "^\\p{digit}+$": true |
1844 | 1962 | }, |
1845 | 1963 | "type": "object" |
1846 | 1964 | }, |
1847 | 1965 | "draft7/unicode semantics should be used for all pattern matching": { |
1848 | | - "pattern": "\\wcole" |
| 1966 | + "pattern": "\\p{Letter}cole" |
1849 | 1967 | }, |
1850 | 1968 | "draft7/unicode semantics should be used for all patternProperties matching": { |
1851 | 1969 | "additionalProperties": false, |
1852 | 1970 | "patternProperties": { |
1853 | | - "\\wcole": true |
| 1971 | + "\\p{Letter}cole": true |
1854 | 1972 | }, |
1855 | 1973 | "type": "object" |
1856 | 1974 | }, |
|
1906 | 2024 | ], |
1907 | 2025 | "uniqueItems": false |
1908 | 2026 | }, |
| 2027 | + "draft7/uri format": { |
| 2028 | + "format": "uri" |
| 2029 | + }, |
| 2030 | + "draft7/uri-reference format": { |
| 2031 | + "format": "uri-reference" |
| 2032 | + }, |
| 2033 | + "draft7/uri-template format": { |
| 2034 | + "format": "uri-template" |
| 2035 | + }, |
1909 | 2036 | "draft7/validate against correct branch, then vs else": { |
1910 | 2037 | "else": { |
1911 | 2038 | "multipleOf": 2 |
|
1920 | 2047 | "draft7/validate definition against metaschema": { |
1921 | 2048 | "$ref": "http://json-schema.org/draft-07/schema#" |
1922 | 2049 | }, |
1923 | | - "draft7/validation of IDN e-mail addresses": { |
1924 | | - "format": "idn-email" |
1925 | | - }, |
1926 | | - "draft7/validation of IDN hostnames": { |
1927 | | - "format": "idn-hostname" |
1928 | | - }, |
1929 | 2050 | "draft7/validation of IP addresses": { |
1930 | 2051 | "format": "ipv4" |
1931 | 2052 | }, |
|
1935 | 2056 | "draft7/validation of IRI References": { |
1936 | 2057 | "format": "iri-reference" |
1937 | 2058 | }, |
1938 | | - "draft7/validation of IRI references": { |
1939 | | - "format": "iri-reference" |
1940 | | - }, |
1941 | 2059 | "draft7/validation of IRIs": { |
1942 | 2060 | "format": "iri" |
1943 | 2061 | }, |
1944 | | - "draft7/validation of JSON pointers": { |
1945 | | - "format": "json-pointer" |
1946 | | - }, |
1947 | 2062 | "draft7/validation of JSON-pointers (JSON String Representation)": { |
1948 | 2063 | "format": "json-pointer" |
1949 | 2064 | }, |
|
1953 | 2068 | "draft7/validation of URI References": { |
1954 | 2069 | "format": "uri-reference" |
1955 | 2070 | }, |
1956 | | - "draft7/validation of URI references": { |
1957 | | - "format": "uri-reference" |
1958 | | - }, |
1959 | | - "draft7/validation of URI templates": { |
1960 | | - "format": "uri-template" |
1961 | | - }, |
1962 | 2071 | "draft7/validation of URIs": { |
1963 | 2072 | "format": "uri" |
1964 | 2073 | }, |
|
1984 | 2093 | "draft7/validation of host names": { |
1985 | 2094 | "format": "hostname" |
1986 | 2095 | }, |
1987 | | - "draft7/validation of hostnames": { |
1988 | | - "format": "hostname" |
1989 | | - }, |
1990 | 2096 | "draft7/validation of internationalized host names": { |
1991 | 2097 | "format": "idn-hostname" |
1992 | 2098 | }, |
1993 | | - "draft7/validation of regexes": { |
1994 | | - "format": "regex" |
1995 | | - }, |
1996 | 2099 | "draft7/validation of regular expressions": { |
1997 | 2100 | "format": "regex" |
1998 | 2101 | }, |
1999 | | - "draft7/validation of relative JSON pointers": { |
2000 | | - "format": "relative-json-pointer" |
2001 | | - }, |
2002 | 2102 | "draft7/validation of string-encoded content based on media type": { |
2003 | 2103 | "contentMediaType": "application/json" |
2004 | 2104 | }, |
|
0 commit comments