Commit 2dafb57
fix(generator): nullable inline object schema crashes on nil value (DataDog#3976)
When a BDD scenario sends null for a nullable field whose schema is an
inline object (no \$ref), reference_to_value raised NotImplementedError
because it tried to look up a NewNullableXxx function that doesn't exist
for anonymous types. Since nil doesn't need wrapping, return it directly.
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 8f012d5 commit 2dafb57
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments