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

JsonValidatingReader

Represents a reader that provides JsonSchema validation.
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.