mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-17 21:41:20 +00:00
fix: remove birth_surname validation
This commit is contained in:
parent
37b33ff52f
commit
25d7d6934a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue