-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] return error message on invalid dob #8267
Conversation
Co-authored-by: Xavier Lecours <xavier.lecours@mcin.ca>
@xlecours do I need a rebase to 24.1 for this PR? I am not entirely sure |
Yes, 24.1 is the latest release, so it still gets bug fixes. |
Duplicated to #8279 for 24.1 fix |
don't duplicate PRs, they'll get pulled forward eventually.. just rebase this one |
There are lots of changes for the rebase. |
Brief summary of changes
When using
/api/v0.0.3/candidates
with an invalid date format, returns 400 Bad Requests/JSON errors.This PR checks the date of birth and returns the correct format in the message ('yyyy-mm-dd').
Testing instructions (if applicable)
/api/v0.0.3/candidates
endpoint:Link(s) to related issue(s)