Effect CommunityEC
Effect Community3y ago
5 replies
imagio

Constraints and Filters in Schema: Exploring Possibilities for Cross-Property Constraints

Out of curiosity, might it be possible to have constraints/filters across different properties in a Schema? Such as "if prop X is foo then prop Y must be positive, otherwise fail"? You can represent something like that as a union I guess if the number of cases are small but I wonder about data with more complex or transitive cross-property constraints.... Just brainstorming, not sure if there's even a use case for such a thing or if it would just be terrible schema design haha
Was this page helpful?