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

id serialization #359

Open
Lewik opened this issue Aug 2, 2022 · 1 comment
Open

id serialization #359

Lewik opened this issue Aug 2, 2022 · 1 comment

Comments

@Lewik
Copy link

Lewik commented Aug 2, 2022

I have make interface for entities (kotlinx serialization)

interface WithId {
    val id: String //I use value class here actually
}

All other entities inherits it
How to deal with _id globally without @SerialName("_id") everywhere ?

@zigzago
Copy link
Member

zigzago commented Aug 7, 2022

I would say this is more a kotlinx.serialization question (see Kotlin/kotlinx.serialization#33). I think it's not feasible for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants