Dont return requesttype and customfields parameters by default

This commit is contained in:
Petri Asikainen 2021-05-16 08:37:04 +03:00
parent 3804a6df17
commit 7dde5ce1de

View file

@ -26,13 +26,13 @@ function Get-ParameterValue {
$Parameters
,
[string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose')
[string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose','RequestType','customfields')
)
if ($MyInvocation.Line[($MyInvocation.OffsetInLine - 1)] -ne '.') {
throw "Get-ParameterValue must be dot-sourced, like this: . Get-ParameterValues"
}
$ParameterValues = @{}
foreach ($parameter in $Parameters.GetEnumerator()) {