in src/Analyzer.JsonRuleEngine/Operators/HasValueOperator.cs [40:54]
public override bool EvaluateExpression(JToken tokenToEvaluate)
{
if (tokenToEvaluate == null || tokenToEvaluate.Type == JTokenType.Null)
{
return !EffectiveValue ^ this.IsNegative;
}
if (tokenToEvaluate.Type == JTokenType.String
&& tokenToEvaluate.Value<string>().Length == 0)
{
return !EffectiveValue ^ this.IsNegative;
}
return EffectiveValue ^ this.IsNegative;
}