(union Union, visitorType reflect.Type)
| 50 | } |
| 51 | |
| 52 | func simplifyUnion(union Union, visitorType reflect.Type) { |
| 53 | _ = normalizeUnion(union, visitorType) |
| 54 | *union.discriminator() = "" |
| 55 | } |
| 56 | |
| 57 | func normalizeUnion(union Union, visitorType reflect.Type) error { |
| 58 | err := updateDiscriminator(union, visitorType) |