Misconfigured environment variables are a leading cause of "works on my machine" failures and broken deployments. This script validates a .env file against a small JSON schema that declares which variables are required, their expected types (int, bool, url, or string), an optional default, and a minimum length. It parses the .env file safely, ignoring comments and blank lines, stripping surrounding quotes, and warning about malformed lines. Each rule is then enforced: missing required keys, wrong types, and values shorter than a minimum length all produce clear, line-itemized error messages. Variables that are present but not described in the schema generate a gentle note, helping you spot stray or deprecated settings. The script exits with a non-zero status when validation fails, so you can wire it straight into a CI pipeline or a container entrypoint as a pre-flight gate. It uses only the standard library, so there is nothing to install.