Tehrin
Tehrin
Aarktype
Created by Tehrin on 4/15/2025 in #questions
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?
7 replies
Aarktype
Created by Tehrin on 4/11/2025 in #questions
Type.any but with specific scope?
Is there a way to use type.any but with the scope bound to some type? My use case is that I have a special scope that does some magic for internationalization and I need a way to wrap (or just refer to) types externally (like on the website example) but with the scope bound to my special Scope
19 replies