You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an OpenAPIdiscriminator object on the schema that is inherited from e.g. microsoft.graph.directoryObject.
Ensure schemata that inherit from the base schema (microsoft.graph.directoryObject) are present in the OpenAPI doc and have an AutoREST x-ms-discriminator-valueextension. modified microsoft.graph.user schema. modified microsoft.graph.group schema.
This generates a polymorphic type that returns appropriate types based on @odata.type.
Activity
peombwa commentedon Feb 14, 2020
Discriminate based on
@odata.typeas thepropertyNamee.g. Group owners.peombwa commentedon Mar 6, 2020
To support
OpenTypeentities, we need to:Add an

OpenAPIdiscriminator object on the schema that is inherited from e.g.microsoft.graph.directoryObject.Ensure schemata that inherit from the base schema (


microsoft.graph.directoryObject) are present in the OpenAPI doc and have an AutoRESTx-ms-discriminator-valueextension.modified microsoft.graph.user schema.
modified microsoft.graph.group schema.
This generates a polymorphic type that returns appropriate types based on

@odata.type.Reference:
cc DeVere Dyett (@ddyett), Irvine Sunday (@irvinesunday)
10 remaining items
peombwa commentedon Mar 31, 2022
We should also consider implementing #1055 once discriminator support is available in the OpenAPI files.
ddyett commentedon Jun 23, 2022
will likely be addressed in V3 under Kiota.