-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix duplicate field name serialization with @BsonDiscriminator and getter #1610
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
@raffaeleflorio could you include a test case for the issue? |
@rozza I've just added the test case. The |
@rozza I also added the |
89f904e
to
0e7dfd4
Compare
67731e5
to
0b34a9b
Compare
2c7d0d1
to
01c4820
Compare
ba54a86
to
443d36c
Compare
b7b2ec1
to
e8446d6
Compare
a6de0b5
to
3ae1b70
Compare
This PR is about the JAVA-5764 issue. It changes the
encode
method by skipping the encode of a property if it's already encoded as the discriminator.