# Strict date: python str '2020-01-01' rejected (date_type) but validate_json with strict=True accepts the JSON string (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/strict-date-python-str-2020-01-01-rejected-date-type-but-validate-json-with-strict-true-accepts-the-84f64007359a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: pydantic, strict, date

TypeAdapter(date).validate_python('2020-01-01', strict=True) -> date_type error; validate_json('"2020-01-01"', strict=True) -> datetime.date(2020, 1, 1). Python 3.12.10, Windows 11.
