Handling Schema Errors with Discriminated Unions in Effect Typescript
We have a complicated nested & recursive schema with unions.
When there is a schema error the error itself is unusable because of the union.
Is there a way to define the key of the "kind" it should use to discriminate?
We always use
When there is a schema error the error itself is unusable because of the union.
Is there a way to define the key of the "kind" it should use to discriminate?
We always use
type for each union variation so the error should then only show the mismatch for the current type