Commit bd5f2ba
Update json-schema-validator to 2.0.3 and migrate to its new API (#224)
## What
Bumps `com.networknt:json-schema-validator` **1.5.9 → 2.0.3** and
migrates the test schema-validation helper (`BaseExtractorTest`) to the
new 2.x API.
This unblocks the Dependabot group update in #223, whose
`json-schema-validator` bump was failing to compile (`unable to resolve
class JsonSchema` and friends). The other four dependencies in that
group are unrelated and can be handled by Dependabot as usual.
## Why the source changes are needed
json-schema-validator 2.x is a breaking release that renames the core
types out of the old `com.networknt.schema.*` surface:
| 1.5.9 | 2.0.3 |
| --- | --- |
| `JsonSchema` | `Schema` |
| `JsonSchemaFactory` | `SchemaRegistry` |
| `ValidationMessage` | `Error` |
| `JsonSchemaException` | `SchemaException` |
| `SpecVersion.VersionFlag.V4` | `SpecificationVersion.DRAFT_4` |
| `JsonSchemaFactory.builder(getInstance(...)).build()` |
`SchemaRegistry.withDefaultDialect(...)` |
| `schema.validate()` → `Set<ValidationMessage>` | `schema.validate()` →
`List<Error>` |
Imports are now explicit rather than a wildcard, so that the new
`com.networknt.schema.Error` correctly shadows `java.lang.Error`.
## Why 2.0.3 and not 3.x
The 3.x line requires Jackson 3; this project is on Jackson 2.
Dependabot's config already ignores json-schema-validator major v3, so
2.0.3 is the correct Jackson-2-compatible target.
## Verification
- `:plugin-test:test` (full integration suite, which exercises the
schema validation path) ✅
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b2464e3 commit bd5f2ba
2 files changed
Lines changed: 16 additions & 14 deletions
File tree
- gradle
- plugin-test/src/test/groovy/org/gradle/github/dependencygraph
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
261 | | - | |
262 | | - | |
| 265 | + | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| |||
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
273 | | - | |
| 277 | + | |
274 | 278 | | |
275 | 279 | | |
276 | | - | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | | - | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | | - | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
0 commit comments