Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.67k stars 5.1k forks source link

[BUG] `Microsoft.Security/locations/jitNetworkAccessPolicies@2020-01-01` returns undefined property "location" #30478

Open CoolDuke opened 1 month ago

CoolDuke commented 1 month ago

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/b3d5c34b3447f71ca8474aa9d32449aafe3996a2/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json#L434

API Spec version

2020-01-01

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

CoolDuke commented 1 month ago

Related to #30259 and #29198.

v-jiaodi commented 1 month ago

@ronf11 Please help take a look, thanks.