put-operation-response-codes
@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codesPut operations should use the ArmResourceCreateOrReplaceAsync or ArmResourceCreateOrReplaceSync template. They must have 200, 201, default and no other responses.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface Employees { @armResourceCreateOrUpdate(Employee) createOrUpdate(...ApiVersionParameter): { @statusCode _: 200; result: boolean; };}✅ Correct
Section titled “✅ Correct”@armResourceOperationsinterface Employees { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;}Reviewer advice
Section titled “Reviewer advice”Impacts the API: this corresponds to the LintDiff rule PutResponseCodes and causes an RPC violation. Ask the author to use standard createOrUpdate operation templates. Do not accept a suppression unless it is needed to match existing APIs.