Integration with Zod and/or other data validation libraries #243
Emilcrafter
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
I'm looking for exactly the same functionality. Defining the schema with Zod seems like the perfect fit. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This has been asked for before, but I am still a bit unclear what that would look like. Is your thought that an Entity would accept a Zod schema instead of a Schema? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am in the ideation stages of a project to build an open-source CQRS Event Sourcing framework for DynamoDB. Parts of the library will require similar functionality to what ElectroDB offers. I had envisioned building something very similar, but with a neater process for schemas. For example, using Zod. From what I've seen, there shouldn't really be any compatibility issues between ElectroDB and Zod. Even "default values" are possible to implement. If the maintainers of this project are interested and able to provide some support, this is something I would be interested in collaborating on (instead of building functionality that already exists). So please enlighten me on whether there is any interest in creating first-class Zod (Or another data validation library if there are better options) integration in ElectroDB).
Beta Was this translation helpful? Give feedback.
All reactions