Skip to content

bug(versioned): Fix how we (de)serialize enums in the tracking status #1301

Open

Description

@Techassi

Discovered in #1294.

By default, yaml_serde/serde_yaml (de)serialize enums as a custom YAML tag instead of a map. The error looks like this:

thread 'PersonSpec_roundtrip_down_up' (600819) panicked at crates/stackable-versioned/tests/person.rs:45:1:
called `Result::unwrap()` on an `Err` value: Error("invalid type: map, expected a Value::Tagged enum")

To fix this, we need to serialize and deserialize using with::singleton_map_recursive. I'm interested to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions