conditions
conditions copied to clipboard
Can't access nested map fields
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