Skip to content

Support Scala 3 Enums #1017

Open
Open
@nemoo

Description

Let's be honest, this is a feature request, not a bug report.

Play-json currently supports Enumerations out of the box via methods like Json.formatEnum(X)
https://github.com/playframework/play-json/blob/main/play-json/shared/src/main/scala/play/api/libs/json/Reads.scala#L437

It would be great if the current Scala 3 way of doing enums: https://docs.scala-lang.org/scala3/reference/enums/enums.html would also be supported in a similar fashion.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions