Skip to content

Small typo in Test-Json -SchemaFile error message - PowerShell 7.5-Beta1 #21106

@HotCakeX

Description

@HotCakeX

Prerequisites

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 message

Error 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.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions