Merge pull request #177 from EETagent/validators_fix

fix: remove birth_surname validation
This commit is contained in:
Vojtěch Jungmann 2023-01-26 23:26:37 +01:00 committed by GitHub
commit 119a28e51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,10 +65,10 @@ pub struct CandidateDetails {
pub name: String,
#[validate(length(min = 1, max = 255))]
pub surname: String,
#[validate(length(min = 1, max = 255))]
pub birth_surname: String,
#[validate(length(min = 1, max = 255))]
pub birthplace: String,
// NaiveDate validated natively
pub birthdate: NaiveDate,
#[validate(length(min = 1, max = 255))]
pub address: String,
@ -89,6 +89,7 @@ pub struct CandidateDetails {
pub grades: GradeList,
pub first_school: School,
pub second_school: School,
#[validate(length(min = 1, max = 255))]
pub test_language: String,
}
impl CandidateDetails {