Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
Comment on lines +6 to +8
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @SerializedName annotations 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.

Suggested change
@SerializedName("sub")
val sub: String,
@SerializedName("email")
val sub: String,

Copilot uses AI. Check for mistakes.
val email: String,
@SerializedName("preferred_username")
val preferredUsername: String?,
@SerializedName("name")
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @SerializedName annotation for 'name' is unnecessary since the JSON key matches the Kotlin property name. Consider removing this redundant annotation.

Suggested change
@SerializedName("name")

Copilot uses AI. Check for mistakes.
val name: String?,
val updatedAt: String?,
@SerializedName("updated_at")
val updatedAt: Int?,
@SerializedName("given_name")
val givenName: String?,
@SerializedName("family_name")
val familyName: String?,
@SerializedName("groups")
Copy link

Copilot AI Jan 7, 2026

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.

Suggested change
@SerializedName("groups")

Copilot uses AI. Check for mistakes.
val groups: List<String>?
)