Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Should we not use the EnumClass for enums so that we can exhaustive match? #617

Open
GP4cK opened this issue Nov 20, 2024 · 1 comment
Open

Comments

@GP4cK
Copy link
Contributor

GP4cK commented Nov 20, 2024

I'm not sure it's even possible but I find it annoying that we can't do exhaustive match on enums because of the EnumClass in built_value.

google/built_value.dart#1315

@knaeckeKami
Copy link
Collaborator

Yes, me too.

there's already gql-dart/gql#297.

I think it might be possible to stop generating EnumClass classes and use normal enums instead, if we generate Serializers for the enums in gql_code_builder.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants