Skip to content

Make serializable decorator for Enum #5

Description

@drhagen

It is straightforward to make Enums serializable. It would be very similar to a serializer(Literal[...]) except that the data would get serialized into a proper member of the enum. I would always use the name of the enum as the serialized value, but others may want to use the enum value. For that reason, it may be better to add this feature as @enum_serializable so that a flag could be added in the future to use the enum values instead of the name as the serialized data.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions