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

Surface @SerialName annotation in top-level documentation #2468

Open
reddaly opened this issue Oct 11, 2023 · 0 comments
Open

Surface @SerialName annotation in top-level documentation #2468

reddaly opened this issue Oct 11, 2023 · 0 comments
Labels

Comments

@reddaly
Copy link

reddaly commented Oct 11, 2023

What is your use-case and why do you need this feature?

The @SerialName is a bit buried in the documentation

It took a few minutes for me to find that.

Describe the solution you'd like

Update the top-level README to contain an example of a custom field name, like so:

@Serializable
class Project(val name: String, @SerialName("lang") val language: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant