Repository navigation
Commit f8781ee
test(v3): cover a nested member's own properties where v2 keeps a map
#2571 made v2 keep the properties an allOf member declares next to its
own allOf, but only where the merge already has properties: elsewhere
v2 generates a map or a bare union, and adding a field would change that
type. Three shapes cover those cases under both versions:
- next to typed additionalProperties: v2 `map[string]string`, v3 a
struct with B and AdditionalProperties;
- next to an empty object: v2 `map[string]any`, v3 a struct with B;
- next to a oneOf: v2 a bare union, v3 the union with a B field.
Every cell round-trips its samples: v2's map and union keep b as data,
v3 gives it a field. The v2 cells are new; no existing cell changes.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 887d678 commit f8781ee
38 files changed
Lines changed: 20165 additions & 0 deletions
File tree
- internal/test/aggregates/matrix
- shapes
- v2
- allof_nested_own_properties_empty
- allof_nested_own_properties_map
- allof_nested_own_properties_union
- v3
- allof_nested_own_properties_empty
- allof_nested_own_properties_map
- allof_nested_own_properties_union
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments