Azure / Azure/azure-openapi-validator
CreateOperationAsyncResponseValidation should accept the other ARM supported way of 202 Accepted + Location Header
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 57
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
ARM supports LongRunningOperations in two ways:
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations#status-codes-for-asynchronous-operations
**To Reproduce**
https://github.com/Azure/azure-rest-api-specs/blob/cf504ebd2a93347df9955f1ff4d8210a693829ad/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-04-01-preview/machineLearningServices.json#L2080
**Expected behavior**
202 Response code shouldn't be marked for violation of this rule.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Additional context**
We can't change response code for our existing APIs. It will break all existing clients.
Contributor guide
Assessment
This issue has not been assessed yet.