sveltekit-superforms
sveltekit-superforms copied to clipboard
feat: init @effect/schema at 0.73.4
This pr adds support for @effect/schema
Would close #415
The tests at src/tests/superValidate.test.ts
pass, with the exception of the tags
check. It seems that when there is an error with the minimum length of an array, and an error with the items inside it (in this case, each element should have a minimum length), then effect
's ArrayFormater
does not return both errors.
If they happen on their own (so either the array length is wrong or the elements), then it works as intended, but not both at the same time. I asked on their discord about this, if it's fixable I'll update this pr. For now I just skip the tags
length check in the test.