Library bringing erlang typespecs to runtime.
Provides on-the-fly type validation, typed structs with upserts validation and more.
def deps do
[
{:tyyppi, "~> 0.1"}
]
end
0.12.3
— update to modern stack + eliminate warnings0.12.2
—Tyyppi.Value.float
0.12.0
—Tyyppi.Value.date
0.11.1
—{Struct,Value}.valid?/1
,Struct.errors/1
0.11.0
—{Struct,Value}.flatten/{1,2}
0.10.0
—mix tyyppi.dump
to dump types to dets or binary for theStats
process0.9.0
—Struct.as_value(%Struct{})
0.8.1
— Cosmetics, better dialyzer,Value.string()
and various fixes0.8.0
—Tyyppi.Valuable
behaviour + better docs0.7.0
— Generators + Collectable + Enumerable + Nested Structs0.6.0
—Tyyppi.Value
forStruct
+Jason.Encoder
ifJason
is presented + bugfixes0.5.0
—Tyyppi.Value
+ constructors +~t||
sigil to produceTyyppi
types0.4.0
— per-field coercions and validations viacast_field/1
andvalidate_field/1
0.3.0
— use:ets
for type information when the process was not started