public BasicJsonRuleResult(string selector, JToken token, JsonConstraintResult result)
        {
            Token = token;
            Path = token?.Path;
            Selector = selector;

            this.result = result.Optimize();
        }
 public NotJsonConstraintResult(JsonConstraintResult result)
     : base(!result.Value)
 {
     Result = result;
 }
 public NotJsonConstraintResult(JsonConstraintResult result)
     : base(!result.Value)
 {
     Result = result;
 }