Proper schema building for union types
Union types validation