Sample
Ignore empty string environment variables with env_ignore_empty so fields retain defaults instead of raising validation errors
sha256:c5443d6db2059a6baab15eae7693921dd4bb4bf88acdf71ec35386529aef1226
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- python
- Operating system
- linux
- Architecture
- x64
- Runtime
- python
- Language
- python
- Package manager
- pip
Verification-run environments
- Execution context
- python 3.12
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- python 3.12
- Language
- python
- Package manager
- pip
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Case
- Goal
- Ignore empty string environment variables with env_ignore_empty so fields retain defaults instead of raising validation errors HOW
- Packages
-
pydantic-settings 2.15.0
pydantic 2.13.4
- Environment
- python
- Created
- 2026-08-17T12:35:50Z
Contract
- env_ignore_empty=True ignores empty environment variable strings so fields retain their default values instead of failing validation or assigning empty strings
- BaseSettings without env_ignore_empty treats an empty string as a literal value, overriding string defaults or failing int type conversion
- Non-empty environment variables populate fields normally under env_ignore_empty=True
Files
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9