Commit Graph

5 Commits

Author SHA1 Message Date
Daniel Chao cf45d102cb
Fix Swift mapping of ints within unions (#47)
This fixes an issue where a union with an int member cannot decode
any value that is out of the Int8 bounds.

Also: make SingleValueDecodingContainer throw `typeMismatch` errors
when the expected type doesn't match.
2025-02-26 09:12:56 -08:00
Daniel Chao 9c36448681
Make enums of string literals conform to CodingKeyRepresentable (#45)
Fixes an issue where mappings of enums fail to be decoded into Swift
2025-02-25 07:10:50 -08:00
Daniel Chao b253e83f7b
Fix enum decoding (#39)
Fixes an issue where `5.0` in Pkl can possibly be cast to `Int`
2025-02-03 10:50:36 -08:00
Krzysztof Zabłocki cec993dc2c
type id's should not generate as mutable var (#3)
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com>
2024-02-06 16:45:48 +00:00
Dan Chao 34ea34f487 Init 2024-02-01 21:47:57 -08:00