Effect CommunityEC
Effect Community3y ago
11 replies
firefox

Accessing `jsonSchema.properties` in the Effect world without exhaustive if/else checks

I see this pattern quite often when dealing with libraries that heavily utilizes union types. Is there a clean solution in the Effect world to access jsonSchema.properties without doing an exhaustive if/else check?
Screen_Shot_2023-11-16_at_10.15.30_PM.png
Was this page helpful?