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

Let ScriptHost.ScriptBuilder callers configure limit on max script length #615

Open
msbarry opened this issue Oct 12, 2024 · 1 comment
Open

Comments

@msbarry
Copy link
Contributor

msbarry commented Oct 12, 2024

In planetiler I created a CEL script through ScriptHost.ScriptBuilder and I want to increase the limit on maximum size of a CEL expression. That option appears to be exposed on Parser.parse(options, source) but I can't see a way to configure those options from the top-level script builder API. Would it be possible to let the top-level script builder AI control those parse options? Or is there another way to do this?

@snazy
Copy link
Member

snazy commented Oct 14, 2024

I guess you're referring to expressionSizeCodePointLimit in org.projectnessie.cel.parser.Options.
Looks like these optioned would need to be "wired up" via (new?) options in Env to ScriptHost.
Do you want to give it a try?

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

2 participants