fix: remove birth_surname validation

This commit is contained in:
Sebastian Pravda 2023-01-26 23:09:22 +01:00
parent 37b33ff52f
commit 25d7d6934a
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

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 {