[BUG] Add default
to fields that also have skip_serializing_if
#466
Labels
bug
Something isn't working
good first issue
Good for newcomers
hacktoberfest
This issue is specifically designated as a good issue for Hacktoberfest
rust
Pull requests that update Rust code
In the
Metadata
example: https://github.com/wasmCloud/wadm/blob/main/crates/wadm-types/src/lib.rs#L180 if you construct a manifest and try to deploy it usingwadm-client
, theannotations
field will not be serialized, and then wadm will fail to deserialize the manifest.For any of our BTreeMap / HashMaps that have the serde
skip_serializing_if
annotation, we also need to adddefault
there (seelabels
for an example)This is a great first issue to fix a frustrating bug.
The text was updated successfully, but these errors were encountered: