Effect CommunityEC
Effect Community2w ago
8 replies
Jakob Kruse

Trouble with Default Values and Optional Types in VariantSchema

Hey, I'm having trouble getting default values to work with (and without) VariantSchema. I expected having a Schema.optionalWith(...) also make the type optional, but it does not. Is it a difference between
Schema.Struct
and
Schema.Class
?

I created a Demo Playground that hopefully illustrates my issue.
Was this page helpful?