diff --git a/pkg/engine/assert/parse.go b/pkg/engine/assert/parse.go index 094854a8..ebcf5c02 100644 --- a/pkg/engine/assert/parse.go +++ b/pkg/engine/assert/parse.go @@ -129,7 +129,6 @@ func (n *scalarNode) assert(path *field.Path, value interface{}, bindings bindin expression := parseExpression(rhs) // we only project if the expression uses the engine syntax // this is to avoid the case where the value is a map and the RHS is a string - // TODO: we need a way to escape the projection if expression != nil && expression.engine != "" { if expression.foreachName != "" { return nil, field.Invalid(path, rhs, "foreach is not supported on the RHS")