-
Notifications
You must be signed in to change notification settings - Fork 7
Update UserInfo.kt #6
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,12 +1,22 @@ | ||||
| package com.onelogin.oidc.userInfo | ||||
|
|
||||
| import com.google.gson.annotations.SerializedName | ||||
|
|
||||
| data class UserInfo( | ||||
| @SerializedName("sub") | ||||
| val sub: String, | ||||
| @SerializedName("email") | ||||
| val email: String, | ||||
| @SerializedName("preferred_username") | ||||
| val preferredUsername: String?, | ||||
| @SerializedName("name") | ||||
|
||||
| @SerializedName("name") |
Copilot
AI
Jan 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The @SerializedName annotation for 'groups' is unnecessary since the JSON key matches the Kotlin property name. Consider removing this redundant annotation.
| @SerializedName("groups") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
@SerializedNameannotations for 'sub' and 'email' are unnecessary since the JSON keys already match the Kotlin property names. Remove these redundant annotations to reduce clutter and follow the convention of only annotating fields where the names differ.