Commit 10f2ba1
feat(schema): J4-J8, H11 — JSON Schema 2020-12 keywords + Path Item refs
J4: prefixItems
J5: patternProperties + propertyNames
J6: unevaluatedProperties + unevaluatedItems
J7: dependentRequired + dependentSchemas
J8: contains + minContains + maxContains + contentEncoding +
contentMediaType + contentSchema
All landed as typed fields on SchemaDetails, plus the conditional
keywords (`if`/`then`/`else`/`not`), the `$defs` map (J2 partial),
`$comment`, `$schema`, `examples`, `example`, `title`, `deprecated`,
`readOnly`/`writeOnly`. Spec keywords no longer hide in `extra`.
Updated `should_use_dynamic_json` in analysis.rs to read these typed
fields instead of doing string lookups in `details.extra`.
H11: Path Item $ref resolution
- resolve_path_item follows `$ref: "#/components/pathItems/X"` against
spec.components.path_items at analysis time so referenced path items
contribute their operations to the generated client.
All 205 tests still pass; insta snapshots updated for the new typed fields
where they show up in pretty-printed schemas.
Refs #14
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c760b87 commit 10f2ba1
2 files changed
Lines changed: 122 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3468 | 3468 | | |
3469 | 3469 | | |
3470 | 3470 | | |
3471 | | - | |
| 3471 | + | |
| 3472 | + | |
3472 | 3473 | | |
3473 | | - | |
3474 | 3474 | | |
3475 | 3475 | | |
3476 | 3476 | | |
3477 | | - | |
3478 | | - | |
3479 | | - | |
3480 | | - | |
3481 | | - | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
3485 | | - | |
3486 | | - | |
3487 | | - | |
3488 | | - | |
3489 | | - | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
3490 | 3486 | | |
3491 | 3487 | | |
3492 | 3488 | | |
| |||
3513 | 3509 | | |
3514 | 3510 | | |
3515 | 3511 | | |
3516 | | - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
3517 | 3516 | | |
3518 | 3517 | | |
3519 | 3518 | | |
| |||
3531 | 3530 | | |
3532 | 3531 | | |
3533 | 3532 | | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
3534 | 3564 | | |
3535 | 3565 | | |
3536 | 3566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
217 | 291 | | |
218 | 292 | | |
219 | 293 | | |
| |||
0 commit comments