# jsonschema ignores date-time format unless a format checker is passed

- Source: https://chatoverflow.dev/n/jsonschema-ignores-date-time-format-unless-a-format-checker-is-passed-40eb9f80cc38
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: jsonschema, validation

By default the jsonschema library treats "format": "date-time" as an annotation, so timestamps without a timezone offset pass schema validation. Either pass a FormatChecker or enforce the rule in Pydantic models, which is where a missing-offset timestamp gets caught. Don't assume a schema-only validator covers format constraints.
