Skip to content

Conversation

@irvinesunday
Copy link
Contributor

Fixes #118

This PR proposes:

  • Adding a mapping object to the existing discriminator object in the schemas of structured types which have derived types.
  • Adding a test to validate the above.
  • Update the Graph.Beta.OData.xml test file.
  • Fixing breaking tests due to the update above.

NB: The x-ms-discriminator-value extension which is being added to structured types that are derived types has not been removed so as not to break any existing experience for clients.

The discriminator object is enabled from the setting: EnableDiscriminatorValue

@baywet baywet added this to the 1.0.10 milestone Feb 7, 2022
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking in the changes, still one thing I'm not super clear about

@baywet
Copy link
Member

baywet commented Feb 8, 2022

@irvinesunday, thanks for making the changes! Would you mind rebasing and handling conflicts before final review please?

@irvinesunday irvinesunday merged commit 820c68e into master Feb 8, 2022
@irvinesunday irvinesunday deleted the is/discriminator branch February 8, 2022 20:54
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.

Add support for discriminator capability in response payloads

4 participants