Skip to content

Kiota regression for discriminator mapping #7529

@MIchaelMainer

Description

@MIchaelMainer

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Source Build

Client library/SDK language

None

Describe the bug

Discovered an issue when generating the Microsoft Graph V1.0 client library. The Kiota generated client library has added a breaking change that is not described by either a CSDL or OpenApi based change (unless missed, need to double check).

The issues are in microsoftgraph/msgraph-sdk-dotnet#3074. The issue is in Applications/Delta/GetDeltaResponse where the return type has been changed from Application to its base DirectoryObject.

Image

Built Kiota, generated, and diff for these scenarios:

  • v1.30.0
  • main
  • mmainer/fixDiscriminator (PR)
  • pre v1.30.0 (todo)

Looking at the results of (v1.30.0 --> main) sdvdiff 6ccf6da832742181cba0ab02588c5795b2185e13 80bbd97a29fdac9f5c71694d712c85d946a9a117 may indicate that the cause is from the discriminator mapping.

Expected behavior

The generated client library uses the correct return type for the Appication getDeltaResponse

How to reproduce

Need to still repro

Open API description file

No response

Kiota Version

v1.30.0

Latest Kiota version known to work for scenario above?(Not required)

TBD

Known Workarounds

No response

Configuration

No response

Debug output

Click to expand log ```
</details>


### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions