FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refine iteration variable validation in CEL macros. by copybara-service[bot] · Pull Request #1096 · cel-expr/cel-java · GitHub

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

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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL