ARM Error
ARM OpenAPI(swagger) specs
- RPC-Get-V1-10
The response model in the GET collection operation "{0}" does not match with the response model in the individual GET operation "{1}".
Per ARM guidelines, for all resources (top-level and nested), collection GETs should have a response definition with a property "value" containing an array of the "resource" schema.The definition returned in the collection "value" array should be the same as the response body for the individual GET.
July 13, 2020
July 13, 2020
Make sure the collection GETs return an array and its items schema the same as the response schema in corresponding individual GET.
The following response is a good example:
...
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MyNameSpace/MyResourceType/{Name}": {
"get": {
...
...
"responses": {
"200": {
"description": "Success. The response describes the corresponding Service.",
"schema": {
"$ref": "#/definitions/MyResourceSchema"
}
}
...
...
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MyNameSpace/MyResourceType": {
"get": {
.....
"responses": {
"200": {
"description": "Success. The response describes the list of Services in the resource group.",
"schema": {
"$ref": "#/definitions/MyResourceList"
}
},
...
...
"MyResourceList":{
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/MyResourceSchema"
}
},
...