We have internal tooling that uses the Manifest struct to generate substreams.yaml files.
Without the omitempty, those files have a lot of noise, so adding it.
The mapSlice type didn't had a MarshalYAML defined resulting in it getting marshaled as a slice instead of a map. When reading back a substreams.yaml generated this way into the Manifest struct, the yaml decoder fails to decode it. So, added the MarshalYAML to fix the same.
We have internal tooling that uses the
Manifest
struct to generatesubstreams.yaml
files.omitempty
, those files have a lot of noise, so adding it.mapSlice
type didn't had aMarshalYAML
defined resulting in it getting marshaled as a slice instead of a map. When reading back asubstreams.yaml
generated this way into theManifest
struct, the yaml decoder fails to decode it. So, added theMarshalYAML
to fix the same.