Skip to content

Conversation

@laura-rodriguez
Copy link
Contributor

Copy link
Contributor

@bryanapellanes-okta bryanapellanes-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straight forward 👍

TriggerAu and others added 2 commits October 30, 2024 12:10
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 <rdz.maria.laura@gmail.com>
- Update Remove-NullPropertiesFromArray to ensure an array is always returned
- Add tests to verify functionality
- Fix #43

Signed-off-by: Laura Rodriguez <rdz.maria.laura@gmail.com>
@laura-rodriguez laura-rodriguez force-pushed the TriggerAu-Bug_JSONHelperArrayFix branch from 658677e to 4849f7a Compare October 30, 2024 16:10
Copy link
Contributor

@bryanapellanes-okta bryanapellanes-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@laura-rodriguez laura-rodriguez merged commit f78b2c6 into main Oct 30, 2024
@laura-rodriguez laura-rodriguez deleted the TriggerAu-Bug_JSONHelperArrayFix branch October 30, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove-NullProperties function in JsonHelper.ps1 causes depth overflow error when called

4 participants