Skip to content

Comments

Java bindings ValueDecoder allows decoding values with extra fields #27406 #22751

Open
Viktor-Kalashnykov-da wants to merge 14 commits intomainfrom
feature/27406-value-decoder-unknown-fields
Open

Java bindings ValueDecoder allows decoding values with extra fields #27406 #22751
Viktor-Kalashnykov-da wants to merge 14 commits intomainfrom
feature/27406-value-decoder-unknown-fields

Conversation

@Viktor-Kalashnykov-da
Copy link
Collaborator

Provide overloaded decode() method for GRPC and JSON API that takes the additional 'policy' parameter which instructs Decoder to either throw an error during parsing of DAML Record with additional trailing fields (not known to the Client) into Record class (if STRICT value is provided for policy) or ignore the empty optional trailing fields (if IGNORE value is provided for policy parameter). The default decode() method (that does not take policy parameter) should use STRICT value for the policy by default

…27406 - codegen

More fixes for ValueDecoder and added overriden method for fromJson()
…27406 - codegen

More fixes for ValueDecoder and added overriden method for fromJson()
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da self-assigned this Feb 19, 2026
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da marked this pull request as ready for review February 19, 2026 20:52
# Conflicts:
#	sdk/canton/canton_version.bzl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant