@@ -28,17 +28,53 @@ protected function getFilePaths(): array
28
28
];
29
29
}
30
30
31
+ public function getInvalidTests (): array
32
+ {
33
+ $ tests = parent ::getInvalidTests ();
34
+ unset(
35
+ $ tests ['id.json / id inside an enum is not a real identifier / no match on enum or $ref to id ' ],
36
+ $ tests ['ref.json / $ref prevents a sibling id from changing the base uri / $ref resolves to /definitions/base_foo, data does not validate ' ],
37
+ $ tests ['ref.json / Recursive references between schemas / invalid tree ' ],
38
+ $ tests ['ref.json / refs with quote / object with strings is invalid ' ],
39
+ $ tests ['ref.json / Location-independent identifier / mismatch ' ],
40
+ $ tests ['ref.json / Location-independent identifier with base URI change in subschema / mismatch ' ],
41
+ $ tests ['ref.json / empty tokens in $ref json-pointer / non-number is invalid ' ],
42
+ $ tests ['ref.json / id must be resolved against nearest parent, not just immediate parent / non-number is invalid ' ],
43
+ $ tests ['refRemote.json / Location-independent identifier in remote ref / string is invalid ' ]
44
+ );
45
+
46
+ return $ tests ;
47
+ }
48
+
31
49
public function getInvalidForAssocTests (): array
32
50
{
33
51
$ tests = parent ::getInvalidForAssocTests ();
34
52
unset(
53
+ $ tests ['ref.json / Recursive references between schemas / valid tree ' ],
35
54
$ tests ['type.json / object type matches objects / an array is not an object ' ],
36
55
$ tests ['type.json / array type matches arrays / an object is not an array ' ]
37
56
);
38
57
39
58
return $ tests ;
40
59
}
41
60
61
+ public function getValidTests (): array
62
+ {
63
+ $ tests = parent ::getValidTests ();
64
+ unset(
65
+ $ tests ['ref.json / $ref prevents a sibling id from changing the base uri / $ref resolves to /definitions/base_foo, data validates ' ],
66
+ $ tests ['ref.json / Recursive references between schemas / valid tree ' ],
67
+ $ tests ['ref.json / refs with quote / object with numbers is valid ' ],
68
+ $ tests ['ref.json / Location-independent identifier / match ' ],
69
+ $ tests ['ref.json / Location-independent identifier with base URI change in subschema / match ' ],
70
+ $ tests ['ref.json / empty tokens in $ref json-pointer / number is valid ' ],
71
+ $ tests ['ref.json / naive replacement of $ref with its destination is not correct / match the enum exactly ' ],
72
+ $ tests ['refRemote.json / Location-independent identifier in remote ref / integer is valid ' ]
73
+ );
74
+
75
+ return $ tests ;
76
+ }
77
+
42
78
public function getValidForAssocTests (): array
43
79
{
44
80
$ tests = parent ::getValidForAssocTests ();
0 commit comments