-
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
Generated model not matching JSON #241
Comments
@ColtonIdle Got, It will be fixed in next version, Thanks for your feedback 😄 |
Is there anything I can do to help? This is preventing me from using this plugin for the past few months. @wuseal can you reproduce? |
@ColtonIdle Yes, I had reproduced it. if possible, can you help to resolve this problem in branch |
@wuseal How can I try the |
At first you need pull down this project code and switch to branch |
Still broken
My input:
Actual output:
Expecting something along the lines of:
|
The expected result should be like this, all right? data class Output(
val generic: List<Generic> = listOf()
) {
data class Generic(
val name: Name = Name(),
val call_me: String = ""
) {
data class Name(
val address: String = "",
val address_secondary: String = "",
val address_present: Boolean = false,
val none: String = "",
val sure: String = ""
)
}
} I have fixed this issue in branch |
Yes, that's the expected result. @wuseal do you think the result should be different? I will check out the branch later today. |
please try branch 3.6.0-dev for pre said branch has been removed |
It worked! 🙏 This fixes so many issues of mine since one of my backends on a project omits null values, and so they don't come across the wire, but this plugin was completely erasing it from the model.
Thank you @wuseal ! |
My input:
Actual output:
Expecting something along the lines of:
The text was updated successfully, but these errors were encountered: