conditions icon indicating copy to clipboard operation
conditions copied to clipboard

Can't access nested map fields

Open shira-redlich opened this issue 2 years ago • 0 comments

I'm trying to use nested args. e.g.: "{ "EventData" : { "Count" : 2, "sum" : 3, }, } " and my expression is: ({EventData}{Count} > 3)

But I'm getting error: argument: EventData.Count not found

Seems like there is an issue in https://github.com/zhouzhuojie/conditions/blob/master/evaluator.go#L68 We try to access the argument directly instead of checking if this is a nested arg

shira-redlich avatar Sep 21 '22 16:09 shira-redlich