We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description of the issue
Incorrect deserialization of nested arrays with non-objects. This is related to issue #109.
To Reproduce
Steps to reproduce the issue:
{ "Properties": { "n": [ "1", "2", "3" ] } }
Rule 'countN' { ($TargetObject.properties.n | Measure-Object).Count -ge 3 }
Expected behaviour
The rule should pass, returns an exception Read json failed instead.
Module in use and version:
Captured output from $PSVersionTable:
$PSVersionTable
Name Value ---- ----- PSVersion 5.1.17763.316 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.316 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Additional context
The issue also affects PSRule v0.3.0.
The text was updated successfully, but these errors were encountered:
Fix de-serialization of non-object arrays #111
1c849e4
Fix de-serialization of non-object arrays #111 (#112)
f093774
- Fix incorrect JSON de-serialization of non-object arrays. #111
BernieWhite
No branches or pull requests
Description of the issue
Incorrect deserialization of nested arrays with non-objects. This is related to issue #109.
To Reproduce
Steps to reproduce the issue:
Expected behaviour
The rule should pass, returns an exception Read json failed instead.
Module in use and version:
Captured output from
$PSVersionTable
:Additional context
The issue also affects PSRule v0.3.0.
The text was updated successfully, but these errors were encountered: