-
Notifications
You must be signed in to change notification settings - Fork 163
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
Schema deterministic hashcode for DynamicValue #655
Comments
/bounty $175 |
💎 $175 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-schema! Add a bounty • Share on socials
|
/attempt #655
|
💡 @BijenderKumar1 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
@jdegoes Just a gentle reminder to please review my pull request. Thanks! |
I'm creating a ddd store for Entity and ValueObject.
ValueObject will use it's hashcode as key in the store (and I'll manage collisions storing a list instead of a single value object)
My current approach use something like this:
This way I can do something like
store.getValueObject[T: ValueObject](valueObject: T).filter(found => found.isSameValueObjectAs(valueObject).runHead
However in my tests I observe the hashCode generated using DynamicValue changes, making my code fail.
The text was updated successfully, but these errors were encountered: