Azure / Azure/azure-sdk-tools

[LintDiff][False positive][~[Staging] Swagger LintDiff failed] Incorrect validation rule "DeleteResponseCodes"

Open
#6,199 4 comments 1 reaction 2 assignees Claimed by @bdefoy View on GitHub
ARM bug Central-EngSys Spec PR Tools
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

**Describe the bug**
The rule [DeleteResponseCodes](https://github.com/Azure/azure-openapi-validator/blob/main/docs/delete-response-codes.md) might be incorrect. I believe, an async api implementation may choose to complete the operation Synchronously based on some conditions and return 200 instead of 202.

**Reference**: [DeleteOperationAsyncResponseValidation](https://github.com/Azure/azure-openapi-validator/blob/main/docs/delete-operation-async-response-validation.md)

Example where the validation failed: https://github.com/Azure/azure-rest-api-specs/pull/24037/checks?check_run_id=13566776598

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.