-
Notifications
You must be signed in to change notification settings - Fork 118
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
LocalDateDeserializer
accept "numeric String" (like, "7"), should not
#106
Comments
Not quite sure if a flag is needed, but I agree in that it seems strange that a STRING value like this would be accepted -- it does not conform to any ISO-8601 format I think. So I think it should rather fail with format mismatch. |
Thinking about this, I think I will want to tackle this via "leniency" setting, introduced by
But I think that number-as-String should not be allowed either way; I consider this issue to cover that specific case. |
LocalDateDeserializer
accept "numeric String" (like, "7"), should not
Implemented via #129, will add usage notes there. |
Following dateofbirth(LocalDate) is a valid request(by jackson) even its an integer. It just add days to 1970-01-01 which is 1970-01-07.
Not every one need this to be valid. Its important to have flag in the @DateTimeFormat to disable this
More details available here
The text was updated successfully, but these errors were encountered: