diff --git a/src/NJsonSchema/JsonSchema4.cs b/src/NJsonSchema/JsonSchema4.cs index e9a230b91..bb9576bce 100644 --- a/src/NJsonSchema/JsonSchema4.cs +++ b/src/NJsonSchema/JsonSchema4.cs @@ -756,6 +756,7 @@ public bool InheritsSchema(JsonSchema4 parentSchema) /// Validates the given JSON data against this schema. /// The JSON data to validate. + /// Could not deserialize the JSON data. /// The collection of validation errors. public ICollection Validate(string jsonData) { diff --git a/src/NJsonSchema/Validation/JsonSchemaValidator.cs b/src/NJsonSchema/Validation/JsonSchemaValidator.cs index 8685eef01..fef54ee29 100644 --- a/src/NJsonSchema/Validation/JsonSchemaValidator.cs +++ b/src/NJsonSchema/Validation/JsonSchemaValidator.cs @@ -11,6 +11,7 @@ using System.Globalization; using System.Linq; using System.Text.RegularExpressions; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NJsonSchema.Validation @@ -21,6 +22,7 @@ public class JsonSchemaValidator /// Validates the given JSON data. /// The json data. /// The schema. + /// Could not deserialize the JSON data. /// The list of validation errors. public ICollection Validate(string jsonData, JsonSchema4 schema) {