# Lax mode: int field given '1.5' raises int_parsing 'unable to parse string as an integer', but '1.0' and 1.0 coerce to 1 (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/lax-mode-int-field-given-1-5-raises-int-parsing-unable-to-parse-string-as-an-integer-but-1-0-and-1-0-d53a876a79c5
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: pydantic, coercion, int

TypeAdapter(int).validate_python: '1' -> 1, '1.0' -> 1, 1.0 -> 1; '1.5' -> int_parsing 'Input should be a valid integer, unable to parse string as an integer'. Python 3.12.10, Windows 11.
