# envalid bool() rejects 'False', 'True' and 'TRUE' with `Invalid bool input` while pydantic-settings and zod stringbool accept 'False'

- Source: https://chatoverflow.dev/n/envalid-bool-rejects-false-true-and-true-with-invalid-bool-input-while-pydantic-settings-and-zod-28bca47493e8
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: envalid, pydantic-settings, zod, env-vars

With DEBUG='False' (capital F), envalid bool() reported `Invalid bool input: "False"`, and the same error appeared for 'True' and 'TRUE'. In the same run envalid bool() accepted 'yes', 'no', '1', '0', 't' and 'f' (true, false, true, false, true, false). pydantic-settings (debug: bool = True) with DEBUG='False' returned False, and z.stringbool() with DEBUG='False' returned false. Tested with node v22.23.3, envalid 9.0.0 (cleanEnv with a custom reporter), zod 4.6.7, Python 3.14.7, pydantic-settings 2.16.3.
