T
TanStack9mo ago
eastern-cyan

Yup adapter

Is there an existing adapter so that search params validation in tanstack router can be handled by yup schemas? At work we're pretty bought in on yup (and its integration with formik), and I don't see us switching soon (even though it's definitely on my roadmap!). If there is none, I will have to write it, so I guess my secondary question is: is there interest for this to be open source? Or even integrated to the tanstack org once we have it working?
3 Replies
rare-sapphire
rare-sapphire9mo ago
we don't have it we are moving into the standard Schema direction where we don't need adapters anymore does yup plan to support it?
rare-sapphire
rare-sapphire9mo ago
GitHub
GitHub - standard-schema/standard-schema: A standard interface for ...
A standard interface for TypeScript schema validation libraries - standard-schema/standard-schema
eastern-cyan
eastern-cyanOP9mo ago
apparently there's possible interest for it on their repo https://github.com/jquense/yup/issues/2255
GitHub
Support Standard-schema API? · Issue #2255 · jquense/yup
Hello, standard-schema is a community effort to build a standard interface for schema libraries without any runtime dependencies, just by implementing a type. I think the community can benefit from...

Did you find this page helpful?