-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Run the following command
Test-Json -Path 'UserConfigurations.json' -SchemaFile "Schema.json"With these 2 files
UserConfigurations.json
Schema.json
Expected behavior
The JSON is not valid with the schema: Value should have at least 9 properties at ''Actual behavior
The JSON is not valid with the schema: Value should have at least9 properties at ''
There is no space between "least" and "9" in the error messageError details
Test-Json: untitled:Untitled-1:1:1
Line |
1 | Test-Json -Path 'C:\Users\Admin\.WDACConfig\UserConfigurations.json' …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The JSON is not valid with the schema: Value should have at least9 properties at ''Environment data
Name Value
---- -----
PSVersion 7.5.0-preview.1
PSEdition Core
GitCommitId 7.5.0-preview.1
OS Microsoft Windows 10.0.22635
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue