Commit c36b8a2
committed
fix: avoid spectral crash on null example in PATCH settings spec
Spectral 6.16.0 (nimma) crashes with "Cannot read properties of null
(reading 'enum')" when a lint rule traverses a literal null leaf in an
example value — which the merge-patch `remove` example introduced
(target_language: null). Drop the structured null example and show the
null-removes form in the operation description instead. SDK codegen still
learns nullability from the schema (target_language type: [string, "null"]),
so the contract is unchanged.
ENG-12541 parent 55d6f5a commit c36b8a2
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
1338 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1339 | 1340 | | |
1340 | 1341 | | |
1341 | 1342 | | |
| |||
1363 | 1364 | | |
1364 | 1365 | | |
1365 | 1366 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | 1367 | | |
1371 | 1368 | | |
1372 | 1369 | | |
| |||
0 commit comments