arktypea
arktype9mo ago
Tehrin

Standard Schema validation output issues can't be flattened

As far as I can tell the other validation libraries will have multiple issues for the same path, but for arktype they all get grouped in an intersection error type (if I have something like
string < 10 & /some_regex/
and it fails both

I feel like the default should flatten all errors in arktype to match the others behavior, or at least make it configurable?

Or is the intention to just wrap our own StandardSchema around arktype where we flatten if needed?
Was this page helpful?