Table of Contents

Class Extensions

Namespace
Newtonsoft.Json.Schema
Assembly
Newtonsoft.Json.dll
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public static class Extensions
Inheritance
Extensions
Inherited Members

Methods

IsValid(JToken, JsonSchema)

[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public static bool IsValid(this JToken source, JsonSchema schema)

Parameters

source JToken
schema JsonSchema

Returns

bool

IsValid(JToken, JsonSchema, out IList<string>)

[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public static bool IsValid(this JToken source, JsonSchema schema, out IList<string> errorMessages)

Parameters

source JToken
schema JsonSchema
errorMessages IList<string>

Returns

bool

Validate(JToken, JsonSchema)

[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public static void Validate(this JToken source, JsonSchema schema)

Parameters

source JToken
schema JsonSchema

Validate(JToken, JsonSchema, ValidationEventHandler)

[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
public static void Validate(this JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler)

Parameters

source JToken
schema JsonSchema
validationEventHandler ValidationEventHandler