Skip to content

Duplicate "accept" action in v1.0 metadata breaks DevX API #59

Closed

Description

@peombwa

Getting the latest v1.0 OpenAPI document from DevX API results in a duplicate key error for accept action.
Repro steps:

It looks like this change is coming from our XSLT transform step which adds an additional accept action that is bound to an event.

This is currently blocking the release of PR microsoftgraph/msgraph-sdk-powershell#519.
Related to https://github.com/microsoftgraph/microsoft-graph-explorer-api/issues/432.

\cc Michael Mainer (@MIchaelMainer), Mustafa Zengin (@zengin)
AB#7828

Activity

  1. MIchaelMainer commented on Jan 27, 2021

    @MIchaelMainer
    Contributor

    Caused by #53.

    We'll need to revert that change in the XSLT. Action overload does not include changes to the parameter order so this change wasn't OData compliant (action overload resolution.

    Mustafa Zengin (@zengin) I don't think we can maintain both. Could we make a change in the docs to help with this scenario?

  2. zengin commented on Jan 27, 2021

    @zengin
    Contributor

    Interesting limitation from OData. I am looking at how we can address this. We can't fix it in the docs as we need the parameter that we are adding. The backwards compatible version is there only because we don't want to break code. It misses the intended functionality.

  3. zengin commented on Jan 27, 2021

    @zengin
    Contributor

    Meanwhile I think I can just revert the latest change. Michael Mainer (@MIchaelMainer) did we generate any SDKs using this version of the XSLT?

  4. MIchaelMainer commented on Jan 27, 2021

    @MIchaelMainer
    Contributor

    No, because we have a bug in the generation pipeline. I'm looking at that now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions