This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 170
Deserialize empty map and default value #304
Comments
Fixed in 0.9.7. |
molpopgen
added a commit
to molpopgen/demes-rs
that referenced
this issue
Aug 22, 2022
serde_yaml 0.9.7 resulted in a regression, accepting `metadata:` (empty metadata mappings) instead of returning Err. See dtolnay/serde-yaml#304 and dtolnay/serde-yaml#312 This change uses a custom deserializer to error in this case.
molpopgen
added a commit
to molpopgen/demes-rs
that referenced
this issue
Aug 22, 2022
serde_yaml 0.9.7 resulted in a regression, accepting `metadata:` (empty metadata mappings) instead of returning Err. See dtolnay/serde-yaml#304 and dtolnay/serde-yaml#312 This change uses a custom deserializer to error in this case.
molpopgen
added a commit
to molpopgen/demes-rs
that referenced
this issue
Aug 22, 2022
serde_yaml 0.9.7 resulted in a regression, accepting `metadata:` (empty metadata mappings) instead of returning Err. See dtolnay/serde-yaml#304 and dtolnay/serde-yaml#312 This change uses a custom deserializer to error in this case.
molpopgen
added a commit
to molpopgen/demes-rs
that referenced
this issue
Aug 22, 2022
* refactor: Metadata now uses custom deserializer serde_yaml 0.9.7 resulted in a regression, accepting `metadata:` (empty metadata mappings) instead of returning Err. See dtolnay/serde-yaml#304 and dtolnay/serde-yaml#312 This change uses a custom deserializer to error in this case. * fix: fix clippy::unnecessary_to_owned lint
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have this code
I'd expect the
Request.m
to be an empty map.but it actually throws:
why it's showing as
uint
?can I get an empty map in this case?
playgroud: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f2b451c3a8e43672a1e8632afcab23db
thanks
The text was updated successfully, but these errors were encountered: