File tree Expand file tree Collapse file tree 1 file changed +73
-13
lines changed
tests/JsonSchema/Tests/Constraints Expand file tree Collapse file tree 1 file changed +73
-13
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,83 @@ public function getInvalidTests()
1616 return array (
1717 array (
1818 '{
19- "string":null,
20- "number":null,
21- "integer":null,
22- "boolean":null,
23- "object":null,
24- "array":null,
19+ "string":null
20+ } ' ,
21+ '{
22+ "type":"object",
23+ "properties": {
24+ "string":{"type":"string"}
25+ },
26+ "additionalProperties":false
27+ } '
28+ ),
29+ array (
30+ '{
31+ "number":null
32+ } ' ,
33+ '{
34+ "type":"object",
35+ "properties": {
36+ "number":{"type":"number"}
37+ },
38+ "additionalProperties":false
39+ } '
40+ ),
41+ array (
42+ '{
43+ "integer":null
44+ } ' ,
45+ '{
46+ "type":"object",
47+ "properties": {
48+ "integer":{"type":"integer"}
49+ },
50+ "additionalProperties":false
51+ } '
52+ ),
53+ array (
54+ '{
55+ "boolean":null
56+ } ' ,
57+ '{
58+ "type":"object",
59+ "properties": {
60+ "boolean":{"type":"boolean"}
61+ },
62+ "additionalProperties":false
63+ } '
64+ ),
65+ array (
66+ '{
67+ "object":null
68+ } ' ,
69+ '{
70+ "type":"object",
71+ "properties": {
72+ "object":{"type":"object"}
73+ },
74+ "additionalProperties":false
75+ } '
76+ ),
77+ array (
78+ '{
79+ "array":null
80+ } ' ,
81+ '{
82+ "type":"object",
83+ "properties": {
84+ "array":{"type":"array"}
85+ },
86+ "additionalProperties":false
87+ } '
88+ ),
89+ array (
90+ '{
2591 "null":1
2692 } ' ,
2793 '{
2894 "type":"object",
29- "properties":{
30- "string":{"type":"string"},
31- "number":{"type":"number"},
32- "integer":{"type":"integer"},
33- "boolean":{"type":"boolean"},
34- "object":{"type":"object"},
35- "array":{"type":"array"},
95+ "properties": {
3696 "null":{"type":"null"}
3797 },
3898 "additionalProperties":false
You can’t perform that action at this time.
0 commit comments