Azure / Azure/azure-rest-api-specs

Microsoft.Network/virtualnetworkgateways@2022-01-01 the name of field `"parameters"` should be required

Open
#22,693 1 comment 0 reactions 0 assignees View on GitHub
Network - Application Gateway Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

### **Description**
In `"VirtualNetworkGatewayConnections_StartPacketCapture"` and `"VirtualNetworkGateways_StartPacketCapture"`, field `"parameters"` should be required.

### **API flow:**
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/Microsoft.Network/stable/2022-01-01/virtualNetworkGateway.json

{
"name": "parameters",
"in": "body",
"required": **false**,
"schema": {
"$ref": "#/definitions/VpnPacketCaptureStartParameters"
},
}

As shown above, field `"required"` should be true.
Hope this problem can be fixed, thank you!

Contributor guide

Open the contributing guide

Research direction

Open specification/network/resource-manager/Microsoft.Network/stable/2022-01-01/virtualNetworkGateway.json and inspect the VirtualNetworkGatewayConnections_StartPacketCapture and VirtualNetworkGateways_StartPacketCapture operations. Confirm that the parameters body field is optional, then update its required setting and verify both operations show it as required.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.