`allOf{}` and `anyOf{}` should work here.