Repository navigation
feat: Add Standard Schema validator to Qwik Router - #7281
fabian-hiller wants to merge 3 commits into
Conversation
|
|
Please give me feedback on the changes and implementation. Once everything looks good and it is planned to merge the PR, I (or someone else) can update tests and docs. |
wmertens
left a comment
There was a problem hiding this comment.
haven't looked closely yet, but we should have type tests in the unit tests
|
Any updates on this? Would very much like to be using ArkType with Qwik through this Standard Schema support! Edit: seems some of the tests need to be updated for the |
|
Unfortunately, I do not have time to finish this PR, but I think @wmertens will take it over. |
|
Closing this in favor of an upcoming PR, which will be based on #8707 |
What is it?
Description
I implemented a
schema$validator function based on Standard Schema that should replacezod$andvalibot$in the long run.New features:
schema$function that supports any Standard Schema copatiple schema library including Zod, ArkType and ValibotBreaking changes:
z.fieldErrorsarray[].keytoarray.${number}.keyOther changes:
zod$andvalibot$as well as any directly related functions and typesvalibot$as it was in@betastage and marked as experimentalChecklist
pnpm change