Skip to content

Fixes for bug 147 - #148

Merged
NowinskiK merged 1 commit into
Azure-Player:masterfrom
NJLangley:bug-147
Oct 1, 2021
Merged

NowinskiK merged 1 commit into
Azure-Player:masterfrom
NJLangley:bug-147

Conversation

@NJLangley

Copy link
Copy Markdown
Contributor

The Conversion back from an OrderedHashSet to an array was allowing unboxing of an array with a single item, which stripped the array brackets from the JSON. The array is now forced, meaning the output JSON will always have an array if the source JSON had an array.

…ray was allowing unboxing of an array with a single item, which stripped the array brackets from the JSON. The array is now forced, meaning the output JSON will always have an array if the source JSON had an array.
@NJLangley

Copy link
Copy Markdown
Contributor Author

There are 3 tests failing locally in the test/Update-PropertiesFromFile.Tests.ps1 file, but I had to mess about a bit to get them to run on a mac anyway, so that might not be helping. The ones that are failing are not getting an expected exception, Kamil could you give them a run and check?

The tests I added are passing fine. They do a few extra asserts to make sure the arrays in the source JSON come back as arrays in the modified JSON.

@NowinskiK

Copy link
Copy Markdown
Member

No worries, I will check this out.
I know that at least one is failing on local pc, but is ok in DevOps.

@NowinskiK
NowinskiK merged commit 78f32ee into Azure-Player:master Oct 1, 2021
@NowinskiK NowinskiK linked an issue Oct 1, 2021 that may be closed by this pull request
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.

BUG: Broken pipelines deploying after new release.

2 participants