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

JsonSchemaValidator

public class JsonSchemaValidator
Class to validate a JSON schema against a given JToken.

Initializes JsonSchemaValidator

public ICollection<ValidationError> Validate(string jsonData, JsonSchema schema)

Validates the given JSON data.

Validates the given JSON token.

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

Validates the given JSON token.