Skip to content

Commit

Permalink
fix(AbstractUser): Ignore unknown fields passed in OtpUser and other …
Browse files Browse the repository at this point in the history
…users payload.
  • Loading branch information
binh-dam-ibigroup committed Dec 5, 2024
1 parent ab994c0 commit c5dfaea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit c5dfaea

Please sign in to comment.