Commit 17f006e
fix: Address code review for schema-booleans parser
- Align NeverSchema validator stub with the spec: keyword is now "false"
and the rejected value is passed through via fail() instead of require()
- Drop residual Map cast in parseAdditionalProperties; parse(value) accepts
Object directly so no unchecked cast is needed
- Static-import assertThatThrownBy in SchemaParserTest for consistency
with the existing assertThat static import
- Add parsesArrayWithBooleanFalseItems test covering items: false -> NeverSchema
- Add rejectsNullRawSchema test covering null raw input -> IllegalArgumentException
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4417cba commit 17f006e
1 file changed
Lines changed: 14 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
430 | 444 | | |
0 commit comments