Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.51k stars 4.94k forks source link

[BUG] `Microsoft.Insights/diagnosticSettings@2021-05-01-preview` returns undefined property "location" #29198

Open ms-henglu opened 1 month ago

ms-henglu commented 1 month ago

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettings_API.json#L330

API Spec version

2021-05-01-preview

Describe the bug

In the GET response, the location field is returned but not defined in the swagger.

Expected behavior

In the GET response, the location should not be returned, or should be defined in the swagger.

Actual behavior

In the GET response, the location field is returned but not defined in the swagger.

Reproduction Steps

  1. Create the resource.
  2. Call GET API and check the response.

Environment

No response

zzhxiaofeng commented 1 month ago

@ruowan Please help have a look, thank you.