You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
It successfully deserializes, when env: HashMap<String, String> is inside a struct
It fails to deserialize if inside an untaggedenum
It fails to deserialize if the struct is flattened inside another struct
It successfully deserializes if struct is notflattened inside another struct
I understand why. It just feels very inconsistent. It seems that 123 gets deserialized into a number, before the context of interpreting it as a string is known. So that context is lost, and it then fails to deserialize.
Given the following YAML:
env: HashMap<String, String>
is inside astruct
untagged
enum
struct
isflatten
ed inside anotherstruct
struct
is notflatten
ed inside anotherstruct
I understand why. It just feels very inconsistent. It seems that
123
gets deserialized into a number, before the context of interpreting it as a string is known. So that context is lost, and it then fails to deserialize.Minimal Example
Rust Playground
The text was updated successfully, but these errors were encountered: