Comment Comment by mullsork IIRC that's what oneOf is for. i.e. a discriminated union / sum type. My experience with oneOf is that tooling support for it is terrible. parent mullsork 3 years ago