Customizing "is missing" error messages in Effect schema validation
Hey, I'm writing a library for combining Next.js & Effect. I have code that checks
Here's my example schema:
As Giulio suggested, I'm using the
So my question is, how can I change the "is missing" to something more user-friendly? (Eg. "Please provide a name for your API key")
FormData against a schema, and adds errors to the object if there are schema errors. Here's my example schema:
As Giulio suggested, I'm using the
ParseResult.ArrayFormatter.formatErrorSync(e); function to extract the errors. However, if a key is missing, I get:So my question is, how can I change the "is missing" to something more user-friendly? (Eg. "Please provide a name for your API key")
