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

feature request: zod as schema validation #509

Open
naranyala opened this issue Oct 6, 2023 · 3 comments
Open

feature request: zod as schema validation #509

naranyala opened this issue Oct 6, 2023 · 3 comments

Comments

@naranyala
Copy link

naranyala commented Oct 6, 2023

is it possible in the future that Orama Search supports zod as schema validation when initializing persistent data?

I hope we can explore more types of searchable data, which zod is one of the feature-rich libraries for validation

@micheleriva
Copy link
Member

I think we could use a plugin to do that. Right now, we want Orama to stay dependency-free as much as possible. Do you have any particular API in mind? Can you share some pseudocode on how you'd like it to work?

@rishi-raj-jain
Copy link
Contributor

rishi-raj-jain commented Nov 6, 2023

Happy to help and get this done. @naranyala can you help me with the expectations of what it shall help with vs what's currently missing?

@nktnet1
Copy link

nktnet1 commented Mar 17, 2025

Implementing the standard-schema would be a great addition.

This way, zod, valibot, arctype and anything that supports this schema will work.

Docs:


Right now, we want Orama to stay dependency-free as much as possible.

@micheleriva the best part is that orama can still stay dependency-free (as per the README):

This interface can be found below in its entirety. Libraries wishing to implement the spec can copy/paste the code block below into their codebase. It's also available at @standard-schema/spec on npm and JSR. There will be zero changes without a major version bump.

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

No branches or pull requests

4 participants