diff --git a/src/main/java/org/opentripplanner/middleware/models/AbstractUser.java b/src/main/java/org/opentripplanner/middleware/models/AbstractUser.java index 7164e3491..16ea0ab6f 100644 --- a/src/main/java/org/opentripplanner/middleware/models/AbstractUser.java +++ b/src/main/java/org/opentripplanner/middleware/models/AbstractUser.java @@ -1,6 +1,7 @@ package org.opentripplanner.middleware.models; import com.auth0.exception.Auth0Exception; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.opentripplanner.middleware.auth.Auth0Connection; import org.opentripplanner.middleware.auth.RequestingUser; import org.opentripplanner.middleware.auth.Permission; @@ -19,6 +20,7 @@ * It provides a place to centralize common fields that all users share (e.g., email) and common methods (such as the * authorization check {@link #canBeManagedBy}. */ +@JsonIgnoreProperties(ignoreUnknown = true) public abstract class AbstractUser extends Model { private static final Logger LOG = LoggerFactory.getLogger(AbstractUser.class); private static final long serialVersionUID = 1L;