Skip to content

Commit 3bf8671

Browse files
committed
Add validation for HTTP method parameter in Invoke-HaloRequest
1 parent bec1386 commit 3bf8671

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Public/Invoke/Invoke-HaloRequest.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function Invoke-HaloRequest {
5252
[Hashtable]$WebRequestParams,
5353
# HTTP method for the request.
5454
[Parameter( ParameterSetName = 'RequestParameters', Mandatory = $True )]
55+
[ValidateSet('GET', 'POST', 'DELETE', 'PUT', 'PATCH', 'HEAD', 'OPTIONS')]
5556
[string]$Method,
5657
# URI or path for the request.
5758
[Parameter( ParameterSetName = 'RequestParameters' )]

0 commit comments

Comments
 (0)