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: add new resolver @badrap/valita #756

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jozan
Copy link

@jozan jozan commented Mar 22, 2025

this adds new resolver @badrap/valita

@jozan jozan force-pushed the feat/valita-schema branch from 798e4ee to 81e95d1 Compare March 22, 2025 11:33
@jozan jozan changed the title feat: add @badrap/valita feat: add new resolver @badrap/valita Mar 22, 2025
@jorisre
Copy link
Member

jorisre commented Apr 1, 2025

Thanks for the contribution! 🙌 Can you resolve the merge conflicts so we can get this merged? Let us know if you need any help!

@jozan
Copy link
Author

jozan commented Apr 1, 2025

yes, of course.

how should i go about fitting valita into the Input/Output model as it doesn't have schema-like transformations like zod or io-ts? any examples to follow?

@jozan jozan force-pushed the feat/valita-schema branch from 81e95d1 to 2fc978e Compare April 1, 2025 21:07
@jorisre
Copy link
Member

jorisre commented Apr 2, 2025

Valita supports transformations using map see custom parsers
For a good reference, you can take a look at the Zod resolver implementation.

Let me know if you need any help!

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