Freigeben über


TestJsonCommand.Schema Property

Definition

Gets or sets schema to validate the JSON against. This is optional parameter. If the parameter is absent the cmdlet only attempts to parse the JSON string. If the parameter present the cmdlet attempts to parse the JSON string and then validates the JSON against the schema. Before testing the JSON string, the cmdlet parses the schema doing implicitly check the schema too.

[System.Management.Automation.Parameter(Position=1)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string Schema { get; set; }
[System.Management.Automation.ValidateNotNullOrEmpty]
[System.Management.Automation.Parameter(ParameterSetName="SchemaString", Position=1)]
public string Schema { get; set; }
[System.Management.Automation.ValidateNotNullOrEmpty]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonStringWithSchemaString", Position=1)]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonPathWithSchemaString", Position=1)]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonLiteralPathWithSchemaString", Position=1)]
public string Schema { get; set; }
[<System.Management.Automation.Parameter(Position=1)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.Schema : string with get, set
[<System.Management.Automation.ValidateNotNullOrEmpty>]
[<System.Management.Automation.Parameter(ParameterSetName="SchemaString", Position=1)>]
member this.Schema : string with get, set
[<System.Management.Automation.ValidateNotNullOrEmpty>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonStringWithSchemaString", Position=1)>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonPathWithSchemaString", Position=1)>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="JsonLiteralPathWithSchemaString", Position=1)>]
member this.Schema : string with get, set
Public Property Schema As String

Property Value

Attributes

Applies to