wasmCloud / wadm

wasmCloud Application Deployment Manager (wadm) is a Wasm-native orchestrator for managing and scaling declarative wasmCloud applications.
https://wasmcloud.com
Apache License 2.0
108 stars 28 forks source link

[BUG] Add `default` to fields that also have `skip_serializing_if` #466

Open brooksmtownsend opened 1 month ago

brooksmtownsend commented 1 month ago

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 using wadm-client, the annotations 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 add default there (see labels for an example)

This is a great first issue to fix a frustrating bug.