Skip to content

Commit

Permalink
πŸ‘½ : add JsonProperty to isAdmin field
Browse files Browse the repository at this point in the history
isAdmin field was serialized as "admin" in Json with previous versions
of jackson-databind
with the newest version, it is serialized as "isAdmin", which does not
seem correct, so adding @JsonProperty to force serialization to correct
field
  • Loading branch information
juwit committed Aug 5, 2022
1 parent 891632d commit 0b1a652
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/gaia_app/organizations/bo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class User(
@Id val username: String,
@DBRef val organization: Organization?) {

@JsonProperty("admin")
var isAdmin: Boolean = false

var oAuth2User: OAuth2User? = null
Expand Down

0 comments on commit 0b1a652

Please sign in to comment.