Skip to content

Conversation

@irvinesunday
Copy link
Contributor

Fixes #243

This PR does the following:

Given an example of this schema, which is a base type, which exposes the discriminator mappings as shown:

MicrosoftTeams-image (2)

The following is accomplished:

  1. Adds the @odata.type property in the properties' object
  2. Marks the @odata.type property as required
  3. In the @odata.type property, sets the default value to '#microsoft.graph.entity
  4. Updates tests to validate the above.

After the above, the schema should appear as below:

image

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 object refers to missing property

3 participants