-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialization of flatten type not supported #20
Comments
Thank you for this issue and your research on the item. Good find |
Not sure if strictly related to this, but I've noticed there's now map ser/de support in the upstream crate (serde-json-core). I can integrate it if you think it's worth it / would help fix this. |
@ethanfrey now it's been a while since the upstream added map support, which means that |
Map support was just merged to main. In order to close this ticket, I think we should have explicit |
Reference to: CosmWasm/cw-plus#57
The
#[serde(flatten)]
serializes withserialize_struct_as_map
, however, this lib does not fully implement theSerializeMap
function.This issue can be replicated when one uses
cosmwasm_std::to_vec()
on a struct with the flatten attributeThe text was updated successfully, but these errors were encountered: