Azure / Azure/azure-rest-api-specs
`microsoft.insights/scheduledqueryrules@2021-08-01` Enum error
- 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

x-ms-request-id: 145a37d8-2023-4037-9d1d-1458f5137b82
### API flow2 `"operator": "Equal"` returns 200

x-ms-request-id: 1f631869-a45d-4924-bab2-4557668df5dd
Contributor 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