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

feat(entity): Add support for enum #51

Merged
merged 4 commits into from
Jul 18, 2023
Merged

feat(entity): Add support for enum #51

merged 4 commits into from
Jul 18, 2023

Conversation

pjechris
Copy link
Owner

@pjechris pjechris commented Jul 18, 2023

⚽️ Description

Library now supports enum! 🎉

This should be considered as experimental: it's not been battle tested and maybe I missed some usecase.

🔨 Implementation details

  • Introduce a new protocol, EntityEnumWrapper. Enum won't be considered as entity itself so keypaths will be computed from parent.
  • Add support for the protocol in PartialIdentifiableKeyPath (whose name is now kind of clunky)

@pjechris pjechris added the feature New feature or request label Jul 18, 2023
@pjechris pjechris merged commit c2e9b21 into main Jul 18, 2023
@pjechris pjechris deleted the feat/enum-support branch July 18, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant