Skip to content

Conversation

@pkwarren
Copy link
Member

CEL 0.11.1 adds support for native java.time.Instant (WKT Timestamp) and java.time.Duration (WKT Duration). Update protovalidate-java to work with the new functionality, which requires that we convert types to the native representations as we're configuring the CEL runtime with evaluateCanonicalTypesToNativeValues(true).

CEL 0.11.1 adds support for native java.time.Instant (WKT Timestamp) and java.time.Duration (WKT Duration). Update protovalidate-java to work with the new functionality, which requires that we convert types to the native representations as we're configuring the CEL runtime with `evaluateCanonicalTypesToNativeValues(true)`.
}
return out;
}
// Cel understands protobuf message so we return as is (even if it is repeated).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer holds - we need to convert types in repeated messages to their native java.time.* versions.

@pkwarren pkwarren merged commit ca03ac0 into main Oct 27, 2025
5 checks passed
@pkwarren pkwarren deleted the pkw/cel-0.11.1 branch October 27, 2025 16:10
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.

3 participants