MergePatchUpdate on Union Bodies #7346
Devon-White
started this conversation in
General
Replies: 1 comment
-
hhm yeah, this might be a bit of a limitation of the templates which needs to be of a specific type today. How does your service behave with merge patch when changing to a different union variant? does it drop all the previous properties? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently updated to TypeSpec version
1.0.0
and i am finding thatMergePatchUpdate
only allows you to pass a model.In the past I could do something like:
I however can set the
implicitOptinonality
to get the legacy behavior:Should
MergePatchUpdate
also be able to take a union of models to behave more like the legacy approach or should i always just useimplicitOptionality
in this case?Beta Was this translation helpful? Give feedback.
All reactions