Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
fix: fix rero/rero-ils#9 add date pattern for birth validation
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Milhit <[email protected]>
  • Loading branch information
Igor Milhit committed Jul 3, 2018
1 parent 52f8128 commit 6533d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reroils_data/patrons/jsonschemas/patrons/patron-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"title": "Date of birth",
"type": "string",
"format": "date",
"pattern": "^\\d{4}(\\-\\d{2}){2}$",
"pattern": "\\d{4}-((0[1-9])|(1[0-2]))-(((0[1-9])|[1-2][0-9])|(3[0-1]))$",
"validationMessage": "Required. Should be in the ISO 8601, YYYY-MM-DD."
},
"email": {
Expand Down Expand Up @@ -111,4 +111,4 @@
"description": "Qualify this user as a staff member."
}
}
}
}

0 comments on commit 6533d66

Please sign in to comment.