autorest icon indicating copy to clipboard operation
autorest copied to clipboard

long-running-operation without a response body doesn't compile

Open emgerner-msft opened this issue 10 years ago • 4 comments

Long running operations (like below) result in output code that doesn't compile.

    "responses": {
      "202": {
        "description": ""
      }
    },
    "x-ms-long-running-operation": true

The output error is:

The type arguments for method 'AzureClientExtensions.GetPutOrPatchOperationResultAsync(IAzureClient, AzureOperationResponse, Dictionary<string, List>, CancellationToken)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

emgerner-msft avatar Mar 02 '16 01:03 emgerner-msft

i am facing a similar issue with my spec. is there any work around for this?

parvezah avatar Apr 04 '16 15:04 parvezah

It is in the backlog. We will take this up soon.

amarzavery avatar Apr 04 '16 16:04 amarzavery

@parvezah, please open a pull request if it is blocking you. We're happy to review it :).

devigned avatar Apr 04 '16 16:04 devigned

https://github.com/Azure/autorest/pull/917 Raised a PR. Can you have a look.

parvezah avatar Apr 05 '16 13:04 parvezah