Effect CommunityEC
Effect Community2y ago
4 replies
mattphillips

Understanding `S.compose` Behavior with `S.is` in Schema Validation

Hey am I correctly understanding how S.compose works when it comes to S.is? I expect that when composing two schemas together if either of the is checks fails then the result should be false

I'm getting true back when composing S.Positive and S.Int or vice-versa as if S.is is only taking into account the last schema in the compose

Playground here: https://effect.website/play#66508b1c16bf
Was this page helpful?