<PackageReference Include="Newtonsoft.Json" Version="8.0.1" />

JsonValidatingReader

Represents a reader that provides JsonSchema validation.

JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.
public JsonReader Reader { get; }

Gets the JsonReader used to construct this JsonValidatingReader.

public JsonSchema Schema { get; set; }

Gets or sets the schema.

Sets an event handler for receiving schema validation errors.

Initializes a new instance of the JsonValidatingReader class that validates the content returned from the given JsonReader.