Using `@effect/schema` for Refinements with Nested Schemas
I've started looking into refinements. As I understand, the way you do it in
Now, what if
@effect/schema is that you use Schema.is where you pass in a schema. Simple example:Now, what if
flag is nested many many levels deep? Do I need to "duplicate" the schema and introduce the Schema.literal(true) change at the appropriate level? Does schema provide a simpler way to achieve it through the concept of optics?