No ValidationError anymore when using 'yyyy-MM-DD' string with AwareDatetime
type
#8867
Closed
1 task done
AwareDatetime
type
#8867
Initial Checks
Description
In pydantic 2.6.0 the support for
yyyy-MM-DD
string for datetimes was added (issue + PR).When using
AwareDatetime
, no ValidationError is raised anymore in 2.6.0+. However, since no Timezone information is attached to a yyyy-MM-DD string, I would expect a ValidationError to be raised.Potential workaround: As mentioned in this issue a
StrictDatetime
could be possible, if so, how would aStrictUTCDatetime
type work?Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: