-
Notifications
You must be signed in to change notification settings - Fork 175
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
Jackson JsonIgnore does not work in Kotlin #308
Milestone
Comments
Please file these issues under |
@cowtowncoder ok. I was not really sure which module it belongs. |
I added the test case as given in this issue locally, but it passes and the output seems correct. See #387 |
dinomite
added a commit
that referenced
this issue
Oct 18, 2020
(#308) Add test for JsonProperty hiding
Fixed by #388 in 2.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to hide DTO
id
field and assign JSONid
field to DTOcityId
build.gradle (there are some spring related which are omitted here)
TestDto.kt
Test case that fails
DTO Object is
TestDto(id=12345, cityId=null)
instead ofTestDto(id=null, cityId=12345)
There was similar issue in FasterXML/jackson-module-kotlin/#124 that is present here #2001, but it should have been resolved till v
2.10.2
by #2002I have opened Stack Overflow question with actual code I am working on, but It seems to be module related issue.
The text was updated successfully, but these errors were encountered: