SDK Error
ARM and Data Plane OpenAPI(swagger) specs
Enum must define its type. All values in an enum must adhere to the specified type.
Enum must define type, and type must not be object. Or it will fail SDK auto-generation.
February 18, 2020
February 20, 2020
Define type in enum.
Invalid:
"status":{
"description":"The state code.",
"enum":[
"Success",
"Failed"
],
"readOnly":true,
"x-ms-enum":{
"name":"RespStatus",
"modelAsString":true
}
}
Valid:
"status":{
"description":"The state code.",
"enum":[
"Success",
"Failed"
],
"readOnly":true,
"type": "string",
"x-ms-enum":{
"name":"RespStatus",
"modelAsString":true
}
}