ARM Error
ARM OpenAPI(swagger) specs
-
if missing the systemData , output: The response of operation '{operationId}' is defined without 'systemData'. Consider adding the systemData to the response.
-
if the systemData is not read only, output: The property systemData in the response of operation:'${operationId}' is not read only. Please add the readonly for the systemData.
Per common-api-contracts, all Azure resources should implement the systemData
object property in new api-version. The systemData should be readonly.
May 21, 2020
February 26, 2021
For each response in the GET/PUT/PATCH operation add a readonly systemData property. It's recommended to refer to the 'systemData' defined in v2/types.json which is provided for fixing the error.
"MyResource": {
"properties": {
...
...
"systemData": {
"$ref": "v2/types.json#/definitions/systemData",
"readOnly" : true
}
}
}