SDK Error
ARM and Data Plane OpenAPI(swagger) specs
There is no declared valid status code.
Every operation response must contain a valid code like "200","201","202" or "204" which indicates the operation is succeed and it's not allowed that a response schema just contains a "default" code.
If a Swagger just contains "default" status code, this actually means "everything is an error". All track2 SDK will systematically raise an exception at runtime, if there is no declared valid status code.
November 23, 2020
November 23, 2020
Add a valid response code . The following would be valid:
...
"responses": {
"200": {
"description": "Succeeded",
"schema": {
"$ref": "#/definitions/MySimpleResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
...