Commit 7632038
fix: handle nullable without type in OpenAPI 3.0 normalization
Schemas using `nullable: true` without a `type` field (e.g. allOf
compositions) were not being normalized, causing Ajv to throw
"nullable cannot be used without type". Wrap these in anyOf with
a null branch, matching the existing pattern for oneOf/anyOf/type cases.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c0b25ed commit 7632038
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
0 commit comments