Skip to content

Conversation

@smaye81
Copy link
Contributor

@smaye81 smaye81 commented Apr 29, 2025

This fixes the way lists were being bound in the EvaluatorBuilder. The call to DescriptorMappings.protoKindToCELType(fieldDescriptor.getType()) was incorrect because the field descriptor type will be the type of the elements in the list and not the list itself. This was resulting in a list of ints getting bound to just an int value.

@smaye81 smaye81 requested review from a user, pkwarren and timostamm April 29, 2025 21:46
@smaye81 smaye81 merged commit 4801a39 into main Apr 29, 2025
5 checks passed
@smaye81 smaye81 deleted the sayers/fix_list_binding branch April 29, 2025 22:06
@smaye81 smaye81 changed the title Fix list binding Fix CEL bindings for lists for this variable May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants