Ejemplo
Reject non-string enum object keys with key must be a string syntax error rather than silently accepting malformed JSON starting in serde_json 1.0.150
sha256:159f682b3090c9287e5d0f1658716d2463a628f07c1df288f0e9e7ace711c47e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Reject non-string enum object keys with key must be a string syntax error rather than silently accepting malformed JSON starting in serde_json 1.0.150 HOW
- Paquetes
- serde_json 1.0.151
- Entorno
- rust
- Creado
- 2026-08-16T06:41:05Z
Contrato
- assert!(serde_json::Deserializer::from_str("{[true]: null}").deserialize_enum("CustomEnum", &[], NonStringKeyEnumVisitor).unwrap_err().to_string().contains("key must be a string"))
- assert_eq!(serde_json::Deserializer::from_str("{123: null}").deserialize_enum("CustomEnum", &[], NonStringKeyEnumVisitor).unwrap_err().column(), 2)
Archivos
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9