CodeSampleX

Beispiel

Cast, load, dump, and introspect mapped and implicit Ecto.Enum fields using current normalization and validation behavior

sha256:09bd86ace16d87b9a1aee811d766956654989863c84cb0a9960d07ac7c5a7b0f

PUBLISHED L3_CONTRACT_PASS MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS

Deklarierte Umgebung

Ausführungskontext
elixir 1
Betriebssystem
linux
Architektur
x64
Runtime
elixir 1
Sprache
elixir
Paketmanager
mix

Umgebungen der Verifizierungsläufe

Ausführungskontext
elixir 1
Betriebssystem
linux alpine · musl
Architektur
x64
Runtime
elixir 1
Sprache
elixir
Paketmanager
mix
Ausführung
container · docker

CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17

Fall

Ziel
Cast, load, dump, and introspect mapped and implicit Ecto.Enum fields using current normalization and validation behavior HOW
Pakete
ecto 3.14.1
Umgebung
elixir 1
Erstellt
2026-08-17T04:42:58Z

Häufige Annahme

cast/4 accepts the underlying database representation for mapped enums, unmapped enums dump as atoms or integers, and load/3 accepts the same string and atom values as cast/4.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed

Verifizierungsbelege