email or empty string not working
Is giving runtime error:
ParseError: Key $ is not valid on maxLength schema
but it works with just string.email
3 Replies
Definitely something going very wrong here, will take a look thanks!
https://github.com/arktypeio/arktype/issues/1221
GitHub
Error in union with length constraint · Issue #1221 · arktypeio/ark...
export const feedbackSchema = type({ // ParseError: Key $ is not valid on maxLength schema contact: "string.email | string == 0", });
This will be fixed in next release!
Thanks