Azure / Azure/azure-rest-api-specs
Microsoft.Network/virtualnetworkgateways@2022-01-01 the name of field `"parameters"` should be required
- 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
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