-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single-Value arrays passed through Remove-Null command get converted to Objects #50
Comments
TriggerAu
added a commit
to TriggerAu/okta-powershell-cli
that referenced
this issue
Sep 27, 2024
This adds a forced cast inside the method that prevents Powershell from converting a single valued array to an object. This pr does not include changes to the test methods as Im not sure how the team would intend the use case to be tested Its a revisit on okta#35
laura-rodriguez
pushed a commit
that referenced
this issue
Oct 30, 2024
This adds a forced cast inside the method that prevents Powershell from converting a single valued array to an object. This pr does not include changes to the test methods as Im not sure how the team would intend the use case to be tested Its a revisit on #35 Signed-off-by: Laura Rodriguez <[email protected]>
laura-rodriguez
pushed a commit
that referenced
this issue
Oct 30, 2024
This adds a forced cast inside the method that prevents Powershell from converting a single valued array to an object. This pr does not include changes to the test methods as Im not sure how the team would intend the use case to be tested Its a revisit on #35 Signed-off-by: Laura Rodriguez <[email protected]>
laura-rodriguez
pushed a commit
that referenced
this issue
Oct 30, 2024
This adds a forced cast inside the method that prevents Powershell from converting a single valued array to an object. This pr does not include changes to the test methods as Im not sure how the team would intend the use case to be tested Its a revisit on #35 Signed-off-by: Laura Rodriguez <[email protected]>
TriggerAu
added a commit
to TriggerAu/okta-powershell-cli
that referenced
this issue
Nov 1, 2024
…)" This reverts commit 56a0adb.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Revisiting #35 Issue as that code works with raw JSON, but not when you feedin objects created via the Okta PS Modules
This is the test case in the Module today and works correctly when we convert back to objects as happens at the API end
This is the same test case when the object is created using the API and does not maintain the integrity of the array object
This is caused by some piping in the 1Remove-NullProperties` Ill post a PR in a few minutes
The text was updated successfully, but these errors were encountered: