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)
@btw-aak▲ 3 net votes
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.