oav icon indicating copy to clipboard operation
oav copied to clipboard

Model validation rule "LRO_RESPONSE_HEADER" does not check for the Operation-Location header

Open joseharriaga opened this issue 3 years ago • 1 comments

I have authored a long-running operation that is getting flagged even though I have specified that it returns the Operation-Location header.

The rule that is being triggered has the following description:

Long running operation must return location header or azure-AsyncOperation header in response when this operation is annotated with x-ms-long-running-operation:true.

However, according to the latest Azure REST API Guidelines

✅ DO return the status monitor URL in the Operation-Location response header.

In other words, validation should check and accept either one of the following headers: Location, Azure-AsyncOperation, or Operation-Location.

joseharriaga avatar Apr 28 '22 01:04 joseharriaga

@joseharriaga , it looks like the header requirement is changed in above document and ARM RPC that states that PATCH/DELETE/POST LRO must return Location header.

raych1 avatar May 06 '22 01:05 raych1