Azure / Azure/azure-rest-api-specs

`microsoft.insights/scheduledqueryrules@2021-08-01` Enum error

Open
#21,794 1 comment 0 reactions 0 assignees View on GitHub
Insights Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

### swagger:
https://github.com/Azure/azure-rest-api-specs/blob/1be09531e4c6edeafde41d6562371566d39669e8/specification/monitor/resource-manager/Microsoft.Insights/stable/2021-08-01/scheduledQueryRule_API.json#L572-L580
`Equals` should be `Equal`

### API flow1 `"operator": "Equals"` returns 400
![image](https://user-images.githubusercontent.com/104055472/206126794-939a58e7-dac1-4b23-8de8-276d813a6883.png)
x-ms-request-id: 145a37d8-2023-4037-9d1d-1458f5137b82

### API flow2 `"operator": "Equal"` returns 200
![image](https://user-images.githubusercontent.com/104055472/206126593-c683507c-ad36-4233-ae49-9de24a64548c.png)
x-ms-request-id: 1f631869-a45d-4924-bab2-4557668df5dd

Contributor guide

Open the contributing guide

Research direction

Open specification/monitor/resource-manager/Microsoft.Insights/stable/2021-08-01/scheduledQueryRule_API.json at lines 572-580 and inspect the operator enum. Compare it with the two API flows in the issue, where Equal succeeds and Equals returns 400. Done means the specification reflects the service-accepted enum value; the issue names no test or validation command.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.