-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
Currently is not possible to write a schema, where the given data must be valid against exactly one of the given subschemas.
I am almost certain that this was not implemented since it's hard to express on Typescript.
However, after some search I think it's possible to achieve a type
"XOR" by adding never
to the remaining properties (Don't know if it solves every problem though).
Traksewt, nicholasfinos, billomore and dominictobias
Metadata
Metadata
Assignees
Labels
No labels