Skip to content

[BUG] wrong schema of error response from ScheduledQueryRules_CreateOrUpdate #1055

Open

Description

Error response of https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json#L67

is such

{
  "error": {
    "code": "'properties.schedule.timeWindowInMinutes' was specified as 1, it should be a value between 5 and 2880.",
    "message": {
      "lang": "en-US",
      "value": "'properties.schedule.timeWindowInMinutes' was specified as 1, it should be a value between 5 and 2880."
    }
  }
}

From swagger and ARM contract, the "message" should be a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions