Effect CommunityEC
Effect Community2y ago
7 replies
Marvinside

Creating Meaningful Errors with S.filter Refinement in Schema

How do I create meaningful errors?

I'm having a schema with a S.filter Refinement.
I can create errors, but those do not specify the property path anymore.

I tried to do this myself with the AST, however I have no experience with AST in general and I could not find any documentation.

I've created a small file to reproduce the issue without any other distractions here: https://gist.github.com/marvinside/440f5cbd5b49f3b073d473239290eeb1
Was this page helpful?