Skip to content

Canonical environment description and stdlib subsetting#1125

Merged
TristonianJones merged 5 commits into
cel-expr:masterfrom
TristonianJones:describe-env
Feb 11, 2025
Merged

Canonical environment description and stdlib subsetting#1125
TristonianJones merged 5 commits into
cel-expr:masterfrom
TristonianJones:describe-env

Conversation

@TristonianJones

@TristonianJones TristonianJones commented Feb 7, 2025

Copy link
Copy Markdown
Collaborator

Support for subsetting the CEL standard environment via a canonical environment
description which is YAML-serializable.

This change also removes a behavior which would potentially break forward compatible
changes, as now type declarations are not included into the variable declaration set.
In the past a duplicate declaration for int would accept the precedence of the variable
with the same name (erroring if there were type differences) rather than permitting
the user-provided variable to mask the type identifier.

Closes #1078
Closes #899
Closes #844
Closes #290

l46kok
l46kok previously approved these changes Feb 10, 2025
Comment thread common/env/env.go Outdated
Comment thread common/env/env.go
@TristonianJones TristonianJones merged commit fddae56 into cel-expr:master Feb 11, 2025
@TristonianJones TristonianJones deleted the describe-env branch February 11, 2025 01:49
@sergiitk

Copy link
Copy Markdown

This resolved #1050 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants