Generated dependent fields if they are of a union type