I would propose to have a new pre-merge validation rule that validates that all input object types need to be annotated with the @oneOf directive, if at least one in their set is annotated with it. The rule could be called INPUT_WITH_MISSING_ONEOF.
If that rule passes the @oneOf directive is composed onto the composite input object type.