Effect CommunityEC
Effect Community10mo ago
2 replies
Coda-Cola

Interrogating schemas

Say I have an instance of Schema<unknown>. I'd like to "interrogate" it to discover if it encodes a literal, a string, a record, a union, etc. Or if it's nullable, or optional.

I've worked my way through the docs and can't see any way of doing this, can anyone offer some pointers as to where I should be looking?
Was this page helpful?