Update PetValidator.java

This commit is contained in:
Yasaswini Desu 2025-02-21 10:35:23 +05:30 committed by GitHub
parent caf296b34c
commit f4b3ad155d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,10 +47,6 @@ public class PetValidator implements Validator {
errors.rejectValue("type", REQUIRED, REQUIRED);
}
// birth date validation
if (pet.getBirthDate() == null) {
errors.rejectValue("birthDate", REQUIRED, REQUIRED);
}
}
/**