exchema v0.4.0 Exchema.Types.Optional
Represents a value which can be nil
You can specify the type when it is not nil, so if you want an
integer that can be nil you can represent it with
{Exchema.Types.Optional, Exchema.Types.Integer}
With that, either nil
and 1
are valid values, however
"this"
is not a valid one.