Skip to content

UnmarshalJSON is limited to the default Tree #275

@Wondertan

Description

@Wondertan

Problem

When we deserialize the EDS we hardcode the default tree. This is problematic because computed Row and Col roots of the deserialized eds will be utterly different if another custom tree is used.

Solutions

  1. Have a global tree constructor var/registry that UnmarshalJSON would use instead
    • Users would then register their trees by name
      • The name would be serialized in the json and deserialization would then get the proper tree by the name
    • This is exactly what happens with the codec.
  2. UnmarshalEDS func that accepts the tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions