Skip to content

Refine iteration variable validation in CEL macros.#1096

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_933941435
Jun 17, 2026
Merged

Refine iteration variable validation in CEL macros.#1096
copybara-service[bot] merged 1 commit into
mainfrom
test_933941435

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Refine iteration variable validation in CEL macros.

This change introduces stricter validation for iteration variables in standard CEL macros like all, exists, map, and filter. Iteration variables must now be simple identifiers, disallowing names that start with a dot (e.g., .x) and preventing the use of the internal accumulator variable __result__. The validation logic is now shared between the standard macros and the comprehensions extension.

This change introduces stricter validation for iteration variables in standard CEL macros like `all`, `exists`, `map`, and `filter`. Iteration variables must now be simple identifiers, disallowing names that start with a dot (e.g., `.x`) and preventing the use of the internal accumulator variable `__result__`. The validation logic is now shared between the standard macros and the comprehensions extension.

PiperOrigin-RevId: 933966053
@copybara-service copybara-service Bot merged commit bb0b958 into main Jun 17, 2026
@copybara-service copybara-service Bot deleted the test_933941435 branch June 17, 2026 22:48
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.

1 participant