Skip to content

Commit

Permalink
adminapi: allow ignoring newer unknown fields in UserInfo (minio#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Apr 21, 2022
1 parent aa559c7 commit fa596e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adminapi/src/main/java/io/minio/admin/UserInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package io.minio.admin;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collections;
Expand All @@ -28,6 +29,7 @@
import javax.annotation.Nullable;

/** Represents user information. */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfo {
@JsonProperty("secretKey")
private String secretKey;
Expand Down

0 comments on commit fa596e3

Please sign in to comment.