ARM & Data Plane Error
ARM & Data Plane OpenAPI specs
- RPC-Post-V1-09
Operations with a 202 response should specify x-ms-long-running-operation: true
.
GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Add the x-ms-long-running-operation: true
extension to PUT, PATCH, POST, DELETE operationS.
...
"/providers/Microsoft.Music/songs/{songName}" {
"put" {
"responses": {
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/SongName"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
}
}
...
...
"/providers/Microsoft.Music/songs/{songName}" {
"put" {
"responses": {
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/SongName"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
}
}
...