SDK Error
ARM and Data Plane OpenAPI(swagger) specs
Please provide an items property for array type: '{0}'.
A schema of array type must always contain an items property. without it, AutoRest will fail to generate an SDK.
AutoRest needs to know the type of item contained in the array so that it can correctly generate the corresponding code.
Correctly specify the items section for given array type. The items can be of any primitive type or can be a reference to another object type.
Example with primitive type.
"MyPrimitiveArray":{
"type": "array",
"items": {
type: "number"
}
}Example with object reference type
"MyComplexArray":{
"type": "array",
"items": {
"$ref": "#/definitions/MySimpleObject"
}
}