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

Adds discriminator object to complex types which have derived types #238

Merged
merged 3 commits into from
Jun 22, 2022

Conversation

irvinesunday
Copy link
Contributor

Fixes #233

This PR:

  • Fixes the function that fetches the derived types of structured types and adds them to the discriminator object. The fix includes retrieving the derived types of complex properties and removing the condition that checks for base types before adding the discriminator object. Discriminator objects are not only required to be added to structured types which have base types.
  • Adds test to validate the above fix.
  • Adds release note info.

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.

Discriminator information for parent types used in properties
2 participants