Skip to content

Investigate OpenAPI discriminator support. #19

Open

Activity

  1. added this to the OnDeck milestone on Nov 1, 2019
  2. peombwa commented on Feb 14, 2020

    @peombwa
    MemberAuthor

    Discriminate based on @odata.type as the propertyName e.g. Group owners.

  3. peombwa commented on Mar 6, 2020

    @peombwa
    MemberAuthor

    To support OpenType entities, we need to:

    1. Add an OpenAPI discriminator object on the schema that is inherited from e.g. microsoft.graph.directoryObject.
      image

    2. Ensure schemata that inherit from the base schema (microsoft.graph.directoryObject) are present in the OpenAPI doc and have an AutoREST x-ms-discriminator-value extension.
      modified microsoft.graph.user schema.
      image
      modified microsoft.graph.group schema.
      image

    This generates a polymorphic type that returns appropriate types based on @odata.type.
    image

    Reference:

    cc DeVere Dyett (@ddyett), Irvine Sunday (@irvinesunday)

  4. removed this from the 0.5.0 milestone on Apr 15, 2020
  5. 10 remaining items

  6. peombwa commented on Mar 31, 2022

    @peombwa
    MemberAuthor

    We should also consider implementing #1055 once discriminator support is available in the OpenAPI files.

  7. ddyett commented on Jun 23, 2022

    @ddyett
    Contributor

    will likely be addressed in V3 under Kiota.

  8. modified the milestones: v2, v3 on Jun 28, 2022
  9. removed their assignment
    on Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions