Skip to content

Commit

Permalink
Re-add old JsonSchemaValidator constructor to fix backwards compatabi…
Browse files Browse the repository at this point in the history
…lity issues. (#1520)

* Re-add old JsonSchemaValidator constructor to fix backwards compatability issues.

* Update JsonSchemaValidator.cs

Co-authored-by: Rico Suter <mail@rsuter.com>
  • Loading branch information
drinehim and RicoSuter authored May 23, 2022
1 parent 25960a0 commit d3a37e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/NJsonSchema/Validation/JsonSchemaValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class JsonSchemaValidator
private readonly IDictionary<string, IFormatValidator[]> _formatValidatorsMap;
private readonly JsonSchemaValidatorSettings _settings;

/// <summary>
/// Initializes JsonSchemaValidator
/// </summary>
public JsonSchemaValidator(params IFormatValidator[] customValidators)
: this(new JsonSchemaValidatorSettings() { FormatValidators = customValidators })
{
}

/// <summary>
/// Initializes JsonSchemaValidator
/// </summary>
Expand Down

0 comments on commit d3a37e2

Please sign in to comment.