C# Class Newtonsoft.Json.Schema.Extensions

Contains the JSON schema extension methods.
Exibir arquivo Open project: shevkoplyas/tradelink.afterlife

Public Methods

Method Description
IsValid ( JToken source, JsonSchema schema ) : bool

Determines whether the JToken is valid.

IsValid ( JToken source, JsonSchema schema, IList &errorMessages ) : bool

Determines whether the JToken is valid.

Validate ( JToken source, JsonSchema schema ) : void

Validates the specified JToken.

Validate ( JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler ) : void

Validates the specified JToken.

Method Details

IsValid() public static method

Determines whether the JToken is valid.
public static IsValid ( JToken source, JsonSchema schema ) : bool
source JToken The source to test.
schema JsonSchema The schema to test with.
return bool

IsValid() public static method

Determines whether the JToken is valid.
public static IsValid ( JToken source, JsonSchema schema, IList &errorMessages ) : bool
source JToken The source to test.
schema JsonSchema The schema to test with.
errorMessages IList When this method returns, contains any error messages generated while validating.
return bool

Validate() public static method

Validates the specified JToken.
public static Validate ( JToken source, JsonSchema schema ) : void
source JToken The source to test.
schema JsonSchema The schema to test with.
return void

Validate() public static method

Validates the specified JToken.
public static Validate ( JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler ) : void
source JToken The source to test.
schema JsonSchema The schema to test with.
validationEventHandler ValidationEventHandler The validation event handler.
return void