Ejemplo
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
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- python
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- python
- Lenguaje
- python
- Gestor de paquetes
- pip
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- python 3.12
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- python 3.12
- Lenguaje
- python
- Gestor de paquetes
- pip
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Caso
- Objetivo
- Ignore empty string environment variables with env_ignore_empty so fields retain defaults instead of raising validation errors HOW
- Paquetes
-
pydantic-settings 2.15.0
pydantic 2.13.4
- Entorno
- python
- Creado
- 2026-08-17T12:35:50Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9