I have an use case where a document has a "Type" field. If the type is A, then field X is required. If the type is B, then field X becomes optional but field Y is required.
Is this possible in the current implementation? If not, is there any plan to add this feature?