Comments (2)
@jacobmikesell this is a limitation of context protos in that the top level fields are all treated as variables, even within oneof values, so it's practically impossible to tell which one is set and still ensure that all possible variables are defined at runtime. Not publishing a variable in this case would be a runtime error rather than a boolean result.
This is working as intended, and working like field accesses work for oneofs outside the context case. The only difference is you can't test which oneof case was set.
I realize it's a bit confusing, but the feature is really intended to be a simplification for some users who manage a lot of variables in a common location outside CEL.
from cel-go.
@TristonianJones Thanks for the quick response!
from cel-go.
Related Issues (20)
- Trouble building with bazel HOT 3
- Trouble building with protovalidate-go for `no field or method` errors HOT 5
- proto enum type and string conversion HOT 2
- Possible regression in type handling HOT 7
- CEL match enum field HOT 1
- ANTLRv4 - bad import? HOT 5
- go mod tidy fails with `ambiguous import: found package ` error HOT 4
- [Question] Expression functions isEmpty, isNotEmpty, notIn HOT 5
- Deprecation notice recommends nonexistent replacement HOT 1
- OSS-Fuzz issue 62426 HOT 1
- Option to Remove Built-in CEL Functions HOT 2
- Breaking Change in Conversion of Custom Types to Standard Types Post Upgrade from v0.16.0 to v0.18.1 HOT 5
- Move the cost estimator back into cel-go from Kubernetes
- Registering custom type casts with CEL env HOT 3
- Return unknown parameters despite the expression being evaluable HOT 1
- Document CEL Cost Limit Evaluation
- Unable to run codelab HOT 3
- Variable Keys in Struct Literals
- Testing timestamppb fields against null HOT 1
- Issue importing github.com/google/cel-go HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cel-go.