Union type validation
Union types have the potential to be invalid if incorrectly defined.
- The member types of a Union type must all be Object base types; Scalar, Interface and Union types may not be member types of a Union. Similarly, wrapping types may not be member types of a Union.
- A Union type must define one or more member types.