mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 02:50:47 +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,
|
pub name: String,
|
||||||
#[validate(length(min = 1, max = 255))]
|
#[validate(length(min = 1, max = 255))]
|
||||||
pub surname: String,
|
pub surname: String,
|
||||||
#[validate(length(min = 1, max = 255))]
|
|
||||||
pub birth_surname: String,
|
pub birth_surname: String,
|
||||||
#[validate(length(min = 1, max = 255))]
|
#[validate(length(min = 1, max = 255))]
|
||||||
pub birthplace: String,
|
pub birthplace: String,
|
||||||
|
// NaiveDate validated natively
|
||||||
pub birthdate: NaiveDate,
|
pub birthdate: NaiveDate,
|
||||||
#[validate(length(min = 1, max = 255))]
|
#[validate(length(min = 1, max = 255))]
|
||||||
pub address: String,
|
pub address: String,
|
||||||
|
|
@ -89,6 +89,7 @@ pub struct CandidateDetails {
|
||||||
pub grades: GradeList,
|
pub grades: GradeList,
|
||||||
pub first_school: School,
|
pub first_school: School,
|
||||||
pub second_school: School,
|
pub second_school: School,
|
||||||
|
#[validate(length(min = 1, max = 255))]
|
||||||
pub test_language: String,
|
pub test_language: String,
|
||||||
}
|
}
|
||||||
impl CandidateDetails {
|
impl CandidateDetails {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue