diff --git a/eval/eval.go b/eval/eval.go index 7716556..8c3dbc4 100644 --- a/eval/eval.go +++ b/eval/eval.go @@ -36,7 +36,6 @@ type EvalResponse struct { var celEnvOptions = []cel.EnvOption{ // 1.0 (1.23) - cel.HomogeneousAggregateLiterals(), cel.EagerlyValidateDeclarations(true), cel.DefaultUTCTimeZone(true), k8s.URLs(), @@ -56,7 +55,6 @@ var celEnvOptions = []cel.EnvOption{ cel.ValidateDurationLiterals(), cel.ValidateTimestampLiterals(), cel.ValidateRegexLiterals(), - cel.ValidateHomogeneousAggregateLiterals(), ), // Strings (from 1.29 onwards) diff --git a/eval/eval_test.go b/eval/eval_test.go index 793f822..2cfd75b 100644 --- a/eval/eval_test.go +++ b/eval/eval_test.go @@ -270,17 +270,17 @@ func TestValidation(t *testing.T) { { name: "Homogeneous Aggregate Validation test 1", exp: `name in ['hello', 0]`, - wantErr: true, + wantErr: false, }, { name: "Homogeneous Aggregate Validation test 2", exp: `{'hello':'world', 1:'!'}`, - wantErr: true, + wantErr: false, }, { name: "Homogeneous Aggregate Validation test 3", exp: `name in {'hello':'world', 'goodbye':true}`, - wantErr: true, + wantErr: false, }, { name: "Homogeneous Aggregate Validation test 4", diff --git a/web/assets/main.wasm.gz b/web/assets/main.wasm.gz index 93e9b59..650fcbc 100755 Binary files a/web/assets/main.wasm.gz and b/web/assets/main.wasm.gz differ