Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for unions in generated service serialization #1414

Merged
merged 15 commits into from
Sep 25, 2023

Conversation

cataggar
Copy link
Member

Fixes #1394. It adds new types with Union suffix added to represent the discriminated unions.

@cataggar cataggar marked this pull request as ready for review September 22, 2023 14:30
@demoray demoray merged commit b44f91e into Azure:main Sep 25, 2023
19 checks passed
@cataggar cataggar deleted the unions branch September 25, 2023 13:57
demoray pushed a commit that referenced this pull request Oct 9, 2023
This fixes a bug from #1414 which causes deserialization to fail.

* create the base type without the discriminator
* adds the description to the union type
* fixes union types for vector aliases
* fixes support for nested unions
* removes empty base types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deserialization of discriminator models is broken
2 participants