Skip to content
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

2.15.0 : serialization regression for property with name isComplete #3934

Closed
drapej opened this issue May 15, 2023 · 2 comments
Closed

2.15.0 : serialization regression for property with name isComplete #3934

drapej opened this issue May 15, 2023 · 2 comments
Labels
to-evaluate Issue that has been received but not yet evaluated

Comments

@drapej
Copy link

drapej commented May 15, 2023

Describe the bug
Since the v 2.15.0, if a property is declare with the following class, the JSON produce is different. We have something like
{isComplete:true} instead of previously {complete:true}

This problem is I think due to this modification : #3682
What we need to do to have the previous JSON ? (rename the property ?)

Version information
2.15.0

To Reproduce

data class MyClass(
    val objects: Iterable<MyObject> = emptyList()

) { 
  val isComplete
        get() = (objects.filter{it.ok()}.count()) 
}
@drapej drapej added the to-evaluate Issue that has been received but not yet evaluated label May 15, 2023
@pjfanning
Copy link
Member

jackson-databind is a Java library. I think you are running into a documented change in jackson-module-kotlin.

https://github.com/FasterXML/jackson-module-kotlin/blob/2.16/release-notes/VERSION-2.x#L25-L27

@drapej
Copy link
Author

drapej commented May 15, 2023

jackson-databind is a Java library. I think you are running into a documented change in jackson-module-kotlin.

https://github.com/FasterXML/jackson-module-kotlin/blob/2.16/release-notes/VERSION-2.x#L25-L27

Ah sorry of course, i didn't check this lib... thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-evaluate Issue that has been received but not yet evaluated
Projects
None yet
Development

No branches or pull requests

2 participants