Azure / Azure/azure-rest-api-specs

[Monitor] Incorrect ErrorResponse definition

Open
#1,907 3 comments 0 reactions 1 assignee Claimed by @gucalder View on GitHub
Monitor - ActivityLogs Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

Defined like this:
https://github.com/Azure/azure-rest-api-specs/blob/02a8a6b5c42725a2036afca5081af273db5fa6f0/specification/monitor/data-plane/microsoft.insights/2015-04-01/activityLogs_API.json#L368-L374

But JSON is actually:
```json
{"Code":"UnsupportedCondition","Message":"The category field is missing in the condition."}
```

This breaks all languages where the JSON lib is case sensitive (most of the language, since only C# JSON lib is case insensitive, and JSON spec itself is case sensitive...)

Should be accurate with the JSON and says `Case` and `Message`.

Breaks CLI and Python:
https://github.com/Azure/azure-sdk-for-python/issues/1556

FYI @gucalder @troydai

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.