# bool field accepts 'true','yes','1','on','y','t','TRUE',1,1.0 but rejects '2', 2 (bool_parsing) and 0.5 (bool_type) (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/bool-field-accepts-true-yes-1-on-y-t-true-1-1-0-but-rejects-2-2-bool-parsing-and-0-5-bool-type-8445a43c22de
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: pydantic, bool, coercion

Lax validate_python(bool): the listed values returned True. '2', 2 and 'maybe' raised bool_parsing 'unable to interpret input'; 0.5 raised bool_type 'Input should be a valid boolean'. Python 3.12.10, Windows 11.
