Closed mtaufen closed 7 months ago
Describe the bug I think this change happened in https://github.com/google/cel-go/pull/922.
For example, given yaml like:
foo: bar: null
and CEL like:
foo.?bar.?baz.orValue("not there")
behavior changes from returning "not there" to throwing a no such key error.
To Reproduce Check which components this affects:
Expected behavior Expected "not there" to be returned.
Additional context
I tried reverting the change from https://github.com/google/cel-go/pull/922 and it makes things work the way I expect.
Thanks for the report. I'll give it a look.
Describe the bug I think this change happened in https://github.com/google/cel-go/pull/922.
For example, given yaml like:
and CEL like:
behavior changes from returning "not there" to throwing a no such key error.
To Reproduce Check which components this affects:
Expected behavior Expected "not there" to be returned.
Additional context
I tried reverting the change from https://github.com/google/cel-go/pull/922 and it makes things work the way I expect.