lro-location-header
@azure-tools/typespec-azure-resource-manager/lro-location-headerA 202 response should include a Location response header.
@azure-tools/typespec-azure-resource-manager/lro-location-headerLong-running (LRO) operations with 202 responses must have a “Location” response header.
Impact
Section titled “Impact”- Area: API
A long-running operation without the standard Location header violates the RPC contract.
LintDiff Equivalent
Section titled “LintDiff Equivalent”This rule corresponds to the LintDiff rule LroLocationHeader.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface Employees { delete is ArmResourceDeleteWithoutOkAsync<Employee, EmployeeProperties, LroHeaders = {}>;}✅ Correct
Section titled “✅ Correct”@armResourceOperationsinterface Employees { delete is ArmResourceDeleteWithoutOkAsync<Employee, EmployeeProperties>;}Suppression
Section titled “Suppression”Suppress per the RPC guidelines; otherwise use the standard Async templates.