fix: decode untagged embedded structs and maps inline
Test / test (push) Successful in 1m26s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-17 20:05:50 +02:00
parent 93c36cf376
commit fc50e3c49a
4 changed files with 226 additions and 28 deletions
+6
View File
@@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Untagged embedded fields now decode symmetrically with encode: an embedded
struct receives its keys inline (a nil embedded pointer struct is
allocated), an embedded map catches the keys no field claims, and a name
clash resolves in favour of the shallower field. A struct with an untagged
embedded field previously decoded with all inline keys dropped and did not
round-trip.
- `Marshal` re-emits arrays that mix tables with scalars: the table elements
render as inline tables inside the value array. A tree that `Parse` accepts
from such a document previously failed with