powershell-sdk icon indicating copy to clipboard operation
powershell-sdk copied to clipboard

Removal of references to [System.Nullable[String]]

Open iamcheek opened this issue 1 year ago • 1 comments

Using the Initialize-Search function instead of ConvertFrom-JSONToSearch in order to create the PSObject for search results in the following error

image

Replacing the references of [System.Nullable[String]] to [AllowNull()] fixes this

iamcheek avatar Jul 31 '24 15:07 iamcheek

Steps to reproduce

PS C:\> $Query = Initialize-Query -Query "*"
PS C:\> $Search = Initialize-Search -Indices "accessprofiles" -Query $Query
InvalidOperation: C:\Users\mcheek\Documents\PowerShell\Modules\PSSailPoint\1.3.2\v3\src\PSSailpoint\Model\Search.ps1:65:9
Line |
  65 |          [System.Nullable[String]]
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [System.Nullable[String]]. Details: GenericArguments[0], 'System.String', on 'System.Nullable`1[T]' violates the constraint of type 'T'.

iamcheek avatar Jul 31 '24 16:07 iamcheek