Skip to content
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

It should be possible to line break CEL validation expressions #1146

Open
alvaroaleman opened this issue Feb 7, 2025 · 2 comments
Open

It should be possible to line break CEL validation expressions #1146

alvaroaleman opened this issue Feb 7, 2025 · 2 comments

Comments

@alvaroaleman
Copy link
Member

We have CEL expressions that are more than 700 characters long and completely unreadable due to the fact that they have to be defined as one single long line. We should find a way to allow defining them over multiple lines.

@sbueringer
Copy link
Member

sbueringer commented Feb 7, 2025

Sounds good. I guess programming in markers has its limits :) (at least today)

@JoelSpeed
Copy link
Contributor

Is it possible to share one of the long expressions?

We have had issues in the past where folks have tried to write supremely long expressions, but always managed to break the expressions down into smaller chunks and create a set of rules, rather than one rule to rule them all. I'd be tempted to say that you can probably achieve something similar but, without seeing an expression it's hard to say

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

No branches or pull requests

3 participants