You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as the generated code ignores one of the discriminators CALL or SMS
because the generated functions are called based on the object (FromPhone) and not on the discriminators
// FromPhone overwrites any union data inside the CommunicationChannel as the provided Phone
func (t *CommunicationChannel) FromPhone(v Phone) error {
v.Type = "SMS"
b, err := json.Marshal(v)
t.union = b
return err
}
The only work around I found is to create 2 new objects
Activity
ishaish103 commentedon Jul 4, 2024
im having the exact same issue
mgabeler-lee-6rs commentedon Oct 2, 2024
Looks like a dupe of #1530