Test-Configuration
SYNOPSIS
Tests whether a string is a valid JSON document.
SYNTAX
1 2 |
|
DESCRIPTION
The Test-Configuration function tests whether a string is a valid JavaScript Object Notation (JSON) document and verifies that JSON document against a provided schema.
EXAMPLES
EXAMPLE 1
1 2 |
|
PARAMETERS
-Json
Specifies the JSON string to test for validity.
1 2 3 4 5 6 7 8 9 |
|
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by the Write-Progress cmdlet. The Write-Progress cmdlet creates progress bars that show a command's status.
The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.
1 2 3 4 5 6 7 8 9 |
|
-SchemaDirectory
Full path to directory where schemas are located.
1 2 3 4 5 6 7 8 9 |
|
-SchemaFile
Name of schema file to test JSON against.
1 2 3 4 5 6 7 8 9 |
|
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.