Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore unknown fields passed in OtpUser and other user payload #277

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading