Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor enum handing #426

Merged
merged 3 commits into from
Jun 9, 2024
Merged

Refactor enum handing #426

merged 3 commits into from
Jun 9, 2024

Conversation

xvrh
Copy link
Collaborator

@xvrh xvrh commented Jun 9, 2024

Instead of generating 2 extensions with toValue() and to<EnumName>(), we use "enhanced enums" feature to store the value string directly in the enum.

@xvrh xvrh requested review from isoos and Schwusch June 9, 2024 08:55
Copy link
Contributor

@isoos isoos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@isoos
Copy link
Contributor

isoos commented Jun 9, 2024

Note: I think I'll deprecate most of the old, per-API packages in the coming days/weeks on pub.dev. After that, we may just delete these in the repository, to reduce the overhead of such PRs.

@xvrh
Copy link
Collaborator Author

xvrh commented Jun 9, 2024

Thanks

I think I'll deprecate most of the old, per-API packages in the coming days/weeks on pub.dev

@isoos ok, let me know when this is done so I can clean up the repo & generator appropriately.

@xvrh xvrh merged commit 8fa6113 into agilord:master Jun 9, 2024
2 checks passed
@xvrh xvrh deleted the xha/enums branch June 9, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants