fix(decode): decode into a defined string or bool type

Assisted-by: DeepSeek V4.1 Flash
This commit is contained in:
2026-09-19 02:40:51 +02:00
parent 942c4b1489
commit 9023784da3
3 changed files with 33 additions and 1 deletions
+7
View File
@@ -23,6 +23,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
every major version 2 module: imports change to
`sourcedock.dev/petrbalvin/interpres/v2`.
### Fixed
- Decoding into a defined type whose underlying kind is string or bool, such
as `type Name string`, panicked instead of storing the value, because a
value of the predeclared type is not assignable to a defined type and the
decoder assigned it without a conversion.
## [1.1.0] - 2026-09-18
### Added