Skip to content

Commit

Permalink
Merge pull request #277 from ibi-group/support-otpuser-unknown-fields
Browse files Browse the repository at this point in the history
Ignore unknown fields passed in OtpUser and other user payload
  • Loading branch information
binh-dam-ibigroup authored Dec 9, 2024
2 parents ab994c0 + c5dfaea commit ee7e247
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 ee7e247

Please sign in to comment.