Use oneOf instead of union_types