Skip to content

Unnamed union with named members on the model level #7124

Answered by timotheeguerin
pawel-kow asked this question in Q&A
Discussion options

You must be logged in to vote

this is not possible with the current syntax. Closest you can do is creating foo as a union of the 2 variants and spread the common properties

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pawel-kow
Comment options

@timotheeguerin
Comment options

@pawel-kow
Comment options

Answer selected by pawel-kow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants