Skip to content

Commit

Permalink
Add exception docs, closes #776
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Sep 21, 2018
1 parent c70c193 commit 617e10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/NJsonSchema/JsonSchema4.cs
Expand Up @@ -756,6 +756,7 @@ public bool InheritsSchema(JsonSchema4 parentSchema)

/// <summary>Validates the given JSON data against this schema.</summary>
/// <param name="jsonData">The JSON data to validate. </param>
/// <exception cref="JsonReaderException">Could not deserialize the JSON data.</exception>
/// <returns>The collection of validation errors. </returns>
public ICollection<ValidationError> Validate(string jsonData)
{
Expand Down
2 changes: 2 additions & 0 deletions src/NJsonSchema/Validation/JsonSchemaValidator.cs
Expand Up @@ -11,6 +11,7 @@
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace NJsonSchema.Validation
Expand All @@ -21,6 +22,7 @@ public class JsonSchemaValidator
/// <summary>Validates the given JSON data.</summary>
/// <param name="jsonData">The json data.</param>
/// <param name="schema">The schema.</param>
/// <exception cref="JsonReaderException">Could not deserialize the JSON data.</exception>
/// <returns>The list of validation errors.</returns>
public ICollection<ValidationError> Validate(string jsonData, JsonSchema4 schema)
{
Expand Down

0 comments on commit 617e10c

Please sign in to comment.