<PackageReference Include="NJsonSchema" Version="11.3.0" />

JsonSchemaValidator

public class JsonSchemaValidator
public JsonSchemaValidator(IFormatValidator[] customValidators)

public ICollection<ValidationError> Validate(string jsonData, JsonSchema schema, SchemaType schemaType = 0)

public ICollection<ValidationError> Validate(JToken token, JsonSchema schema, SchemaType schemaType = 0)

protected virtual ICollection<ValidationError> Validate(JToken token, JsonSchema schema, SchemaType schemaType, string propertyName, string propertyPath)

Validates the given JSON token.