We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a value class, and some data class to represent the CSV contents:
@JvmInline @Serializable value class MyId(val value: String) @Serializable data class Entry( @SerialName("my_id") val id: MyId, @SerialName("my_content") val content: String, )
this will correctly decode the following CSV
my_id, my_content A, A Test B, B Test
but when serializing a list of Entry objects, the column name for Entry.id includes the value property from the MyId class.
Entry
Entry.id
value
MyId
my_id.value, my_content A, A Test B, B Test
The value/inline class's property should be serialized directly without the hierarchical property name.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given a value class, and some data class to represent the CSV contents:
this will correctly decode the following CSV
but when serializing a list of
Entry
objects, the column name forEntry.id
includes thevalue
property from theMyId
class.The value/inline class's property should be serialized directly without the hierarchical property name.
The text was updated successfully, but these errors were encountered: