-
Notifications
You must be signed in to change notification settings - Fork 40
[Feature Request] Bitwise operation support in predefined CEL #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oh, sorry. I just checked the cel-spec repo. Looks like bitwise operations have not been implement on their side. google/cel-spec#286. When they support them, |
However, the |
Hi, @KeXiangWang. We're trying to both follow the spec and keep our implementations consistent, so we'd rather not deviate quite yet if we don't have to. That being said, this is a fair request for when it gets added to the spec. Would you mind creating an issue for adding this on the protovalidate-go repo? |
Understood. Thanks! |
I've copied most of the information of this issue to bufbuild/protovalidate-go#246. Feel free to close this issue if you think it's inappropriate to be here. |
Sure. Appreciate the interest. 👍 |
Feature description:
Support bitwise operations in predefined CEL rules.
For example,
although the above rules can be successfully complied by
protoc
, when execute, I got this error:I think CEL itself support bitwise operations? I'm not sure whether
protovalidate
disable it or there's some reason it doesn't work.My toolchain version:
protoc:
libprotoc 3.21.9
validate.proto: https://github.com/bufbuild/protovalidate/blob/51ee9b3a85ed11c19a2b8023aa2520cca82f431e/proto/protovalidate/buf/validate/validate.proto
protovalidate-go:
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250425153114-8976f5be98c1.1
Problem it solves or use case:
When predefining some more complicated rules.
Proposed implementation or solution:
Sorry, I'm still not familiar with the implementation yet.
Contribution:
Will to contribute, if I can get necessary guidance.
Examples or references:
None
Additional context:
None
The text was updated successfully, but these errors were encountered: