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

JsonSchemaResolver

public class JsonSchemaResolver

Resolves JsonSchema from an id.

JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.
using Newtonsoft.Json.Utilities.LinqBridge; using System; using System.Collections.Generic; namespace Newtonsoft.Json.Schema { [Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")] public class JsonSchemaResolver { public IList<JsonSchema> LoadedSchemas { get; set; } public JsonSchemaResolver() { LoadedSchemas = new List<JsonSchema>(); } public virtual JsonSchema GetSchema(string reference) { JsonSchema jsonSchema = LoadedSchemas.SingleOrDefault((JsonSchema s) => string.Equals(s.Id, reference, StringComparison.Ordinal)); if (jsonSchema == null) jsonSchema = LoadedSchemas.SingleOrDefault((JsonSchema s) => string.Equals(s.Location, reference, StringComparison.Ordinal)); return jsonSchema; } } }