Skip to content

Register string extension functions to match pv-go#439

Merged
pkwarren merged 2 commits intomainfrom
pkw/issue-438
Mar 27, 2026
Merged

Register string extension functions to match pv-go#439
pkwarren merged 2 commits intomainfrom
pkw/issue-438

Conversation

@pkwarren
Copy link
Copy Markdown
Member

Currently, protovalidate-java doesn't register the same string extension functions at protovalidate-go, making custom CEL rules not supported across platforms.

Register the CEL string extension functions available in cel-java. These are identical to the ones available in protovalidate-go except it is missing a quote and reverse function. We could implement custom versions but it would be better to get this addressed upstream for consistency across CEL runtimes.

Fixes #438.

Currently, protovalidate-java doesn't register the same string extension
functions at protovalidate-go, making custom CEL rules not supported
across platforms.

Register the CEL string extension functions available in cel-java. These
are identical to the ones available in protovalidate-go except it is
missing a `quote` and `reverse` function. We could implement custom
versions but it would be better to get this addressed upstream for
consistency across CEL runtimes.

Fixes #438.
@pkwarren pkwarren merged commit 25684da into main Mar 27, 2026
4 checks passed
@pkwarren pkwarren deleted the pkw/issue-438 branch March 27, 2026 19:39
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

Successfully merging this pull request may close these issues.

[BUG] CEL string extension functions (substring, lastIndexOf, etc) fail to compile in protovalidate-java

2 participants