Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -94,6 +94,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Changed
|
||||
|
||||
- `DecodeError` and `EncodeError` carry one `Path` type, a list of segments
|
||||
(`"items"`, `"[0]"`, `"weight"`) with a `String()` rendering the TOML
|
||||
notation, `items[0].weight`. The decode error used to hold a bare
|
||||
`[]string`, the encode error a plain string. Both messages render the same
|
||||
way now, `interpres: items[0].weight: ...`, with one `interpres:` prefix
|
||||
where the composition used to double it.
|
||||
- `omitempty` follows the encoding/json semantics: the field is skipped when
|
||||
it holds an empty string, a zero number, `false`, a nil pointer or
|
||||
interface, or a nil or empty slice, array or map. In 1.x the option covered
|
||||
|
||||
Reference in New Issue
Block a user