Custom error message for union type in Effect Typescript library
It looks like
On parse errors I will get 2 errors with the default message:
I guess I can use
What would be the best approach to get a union type with a single message?
annotations.message added to Schema.Literal are overridden:On parse errors I will get 2 errors with the default message:
Expected "foo", actual "hello" and Expected "bar", actual "hello".I guess I can use
Schema.String.pipe(Schema.filter) for these cases but it widens the Type to StringWhat would be the best approach to get a union type with a single message?
