Commit dcf5e59
committed
Upgrade coverage.json schema to JSON Schema 2020-12
Draft-07 is from 2018. 2020-12 is the current published draft, supported
by every modern validator (including json_schemer in the dev Gemfile)
and by every IDE that auto-resolves $schema URLs. There is no
compatibility reason to ship a 2018-era contract as the public schema.
Update the meta-schema URI in both schema files (the versioned canonical
and the unversioned alias) and switch the spec assertion from
JSONSchemer.draft7 to JSONSchemer.draft202012. Retitle the README
section to "JSON Schema for coverage.json" so it is searchable for
someone looking for "JSON schema simplecov" rather than for the internal
filename, and tighten the opening paragraph (the second bullet was
redundant with the prose that followed).1 parent 590da07 commit dcf5e59
4 files changed
Lines changed: 9 additions & 12 deletions
File tree
- schemas
- spec/formatter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
| 1154 | + | |
1155 | 1155 | | |
1156 | | - | |
| 1156 | + | |
1157 | 1157 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1158 | + | |
1162 | 1159 | | |
1163 | 1160 | | |
1164 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments