-
Notifications
You must be signed in to change notification settings - Fork 360
Commit 3763af1
authored
feat: update to latest json schema test suite (#821)
This pull request updates the `json-schema/json-schema-test-suite`
dependency to a newer version and introduces a new test suite for
validating JSON schemas. The goal here is to have a quicker turnaround
then just the bowtie reports. The most important changes are grouped
below:
### Dependency Updates:
* Updated `json-schema/json-schema-test-suite` dependency in
`composer.json` from version `1.2.0` to `^23.2` and updated the package
version and reference in the `repositories` section to match the new
version.
[[1]](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L36-R36)
[[2]](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L62-R66)
### New Test Suite:
* Added a new `JsonSchemaTestSuite` class in
`tests/JsonSchemaTestSuite.php` to run validation tests using the
`json-schema/json-schema-test-suite`. This includes:
- A `testIt` method to validate test cases and assert results.
- A `casesDataProvider` method to dynamically load test cases from the
`json-schema-test-suite` repository, skipping certain drafts.
- A `loadRemotesIntoStorage` helper method to load remote schemas into
the schema storage.1 parent 4118460 commit 3763af1
File tree
10 files changed
+296
-44
lines changed- tests
- Constraints
- Drafts
10 files changed
+296
-44
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | + | ||
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | - | ||
36 | + | ||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
62 | + | ||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | - | ||
66 | + | ||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
27 | 31 |
|
Lines changed: 34 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | - | ||
22 | + | ||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | - | ||
32 | - | ||
31 | + | ||
32 | + | ||
33 | + | ||
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 | - | ||
42 | + | ||
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
53 | + | ||
54 | + | ||
52 | 55 |
| |
53 | - | ||
56 | + | ||
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
63 | - | ||
64 | - | ||
66 | + | ||
67 | + | ||
68 | + | ||
65 | 69 |
| |
66 | 70 |
| |
67 | 71 |
| |
| |||
81 | 85 |
| |
82 | 86 |
| |
83 | 87 |
| |
88 | + | ||
89 | + | ||
84 | 90 |
| |
85 | - | ||
91 | + | ||
86 | 92 |
| |
87 | 93 |
| |
88 | 94 |
| |
89 | 95 |
| |
90 | - | ||
91 | - | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
92 | 100 |
| |
93 | 101 |
| |
94 | 102 |
| |
| |||
103 | 111 |
| |
104 | 112 |
| |
105 | 113 |
| |
114 | + | ||
115 | + | ||
106 | 116 |
| |
107 | - | ||
117 | + | ||
108 | 118 |
| |
109 | 119 |
| |
110 | 120 |
| |
| |||
113 | 123 |
| |
114 | 124 |
| |
115 | 125 |
| |
116 | - | ||
126 | + | ||
117 | 127 |
| |
118 | - | ||
128 | + | ||
119 | 129 |
| |
120 | 130 |
| |
121 | 131 |
| |
| |||
124 | 134 |
| |
125 | 135 |
| |
126 | 136 |
| |
127 | - | ||
137 | + | ||
128 | 138 |
| |
129 | 139 |
| |
130 | 140 |
| |
| |||
141 | 151 |
| |
142 | 152 |
| |
143 | 153 |
| |
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
144 | 164 |
|
Lines changed: 18 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
16 | - | ||
17 | - | ||
18 | - | ||
15 | + | ||
16 | + | ||
19 | 17 |
| |
20 | 18 |
| |
21 | 19 |
| |
22 | 20 |
| |
23 | 21 |
| |
24 | 22 |
| |
25 | 23 |
| |
26 | - | ||
27 | - | ||
24 | + | ||
25 | + | ||
28 | 26 |
| |
29 | 27 |
| |
30 | 28 |
| |
31 | 29 |
| |
32 | 30 |
| |
33 | 31 |
| |
34 | 32 |
| |
35 | - | ||
36 | - | ||
33 | + | ||
34 | + | ||
37 | 35 |
| |
38 | 36 |
| |
39 | 37 |
| |
40 | 38 |
| |
41 | 39 |
| |
42 | 40 |
| |
43 | 41 |
| |
44 | - | ||
45 | - | ||
42 | + | ||
43 | + | ||
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
| |||
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
57 | - | ||
58 | - | ||
59 | - | ||
60 | - | ||
55 | + | ||
56 | + | ||
61 | 57 |
| |
62 | 58 |
| |
63 | 59 |
| |
64 | 60 |
| |
65 | 61 |
| |
66 | 62 |
| |
67 | 63 |
| |
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
64 | + | ||
65 | + | ||
72 | 66 |
| |
73 | 67 |
| |
74 | 68 |
| |
75 | 69 |
| |
76 | 70 |
| |
77 | 71 |
| |
78 | 72 |
| |
79 | - | ||
80 | - | ||
73 | + | ||
74 | + | ||
81 | 75 |
| |
82 | 76 |
| |
83 | 77 |
| |
84 | 78 |
| |
85 | 79 |
| |
86 | 80 |
| |
87 | 81 |
| |
88 | - | ||
89 | - | ||
82 | + | ||
83 | + | ||
90 | 84 |
| |
91 | 85 |
| |
92 | 86 |
| |
| |||
95 | 89 |
| |
96 | 90 |
| |
97 | 91 |
| |
98 | - | ||
99 | - | ||
92 | + | ||
93 | + | ||
100 | 94 |
| |
101 | 95 |
| |
102 | 96 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | - | ||
83 | - | ||
82 | + | ||
83 | + | ||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | - | ||
23 | + | ||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
74 | 79 |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
78 | 92 |
| |
79 | 93 |
| |
80 | 94 |
| |
| |||
113 | 127 |
| |
114 | 128 |
| |
115 | 129 |
| |
130 | + | ||
116 | 131 |
| |
117 | 132 |
| |
118 | 133 |
| |
|
0 commit comments