Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/Okta.PowerShell/Client/JsonHelper.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# Okta Management
# Allows customers to easily access the Okta Management APIs
# Version: 3.0.0
# Contact: [email protected]
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
#
# Okta Management
# Allows customers to easily access the Okta Management APIs
# Version: 3.0.0
# Contact: [email protected]
# Generated by OpenAPI Generator: https://openapi-generator.tech
#


# Remove null properties from an object recursively
Expand All @@ -19,7 +19,7 @@ function Remove-NullProperties {

$NewObject = @{ }

if ($InputObject -is [string] -or $InputObject.GetType().IsPrimitive) {
if ($InputObject -is [string] -or $InputObject.GetType().IsPrimitive -or $InputObject.GetType().IsValueType) {
return $InputObject
}
elseif ($InputObject -is [System.Collections.IDictionary]) {
Expand Down