Skip to content

[typespec-azure-core]: function getLroMetadata fails to retrieve finalStateVia in tspfile #2364

Open
@dolauli

Description

@dolauli

Describe the bug

Below are two cases: one for LRO update and the other for LRO deletion

https://github.com/Azure/azure-rest-api-specs/blob/fa6c6015b1633a701edb629c1a759433aa1fdaf2/specification/scvmm/ScVmm.Management/VmmServer.tsp#L44-L48

https://github.com/Azure/azure-rest-api-specs/blob/fa6c6015b1633a701edb629c1a759433aa1fdaf2/specification/scvmm/ScVmm.Management/VmmServer.tsp#L54-L59

When I attempt to use the following code to retrieve finalStateVia

const lro = getLroMetadata(...);
const finalStateVia = lro.finalStateVia;

Expected value of finalStateVia:

azure-async-operation

Actual value:

location

Reproduction

Added in the description

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Activity

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

    bugSomething isn't workingcli/pshIssues for Azure CLI/PSH features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions