package conformist
Conformist allows you to define schemas to decode, validate and sanitize input data declaratively
Install
Dune Dependency
Authors
Maintainers
Sources
conformist-0.2.1.tbz
sha256=80321b97c08f27985a678c64e24224267e420e5efa9f9c5c3a4a7da6aedc6ea8
sha512=1154d81a8e1bc3034889ef7f1e6221ed6a83cb4f401683a4cd48ed9d3d47b6a2c3860fc147675eb5902c1e626873b44d2c1c202648b353600065fc530874af74
CHANGES.md.html
0.2.1 - 2021-03-16
Changed
Replace
ppx_deriving
withsexplib
[0.2.0] - 2021-03-07
Changed
A field that is
optional
can be missing from the input data or the value can be[]
. Decoding and validation will still work as expected. The decoded value isNone
.
[0.1.0] - 2020-09-29
Added
Conformist.Field.type_
can be used to retrieve a string representation of the typeSupport for custom
encoders
for custom typesSupport for encoding default values if present, this can be used to print schemas
Fixed
Move mandatory field name parameter to the end of create functions in order to get rid of the trailing () argument
[0.0.2] - 2020-09-29
Fixed
Move
fold_left
to top level module and acceptConformist.t
as input
[0.0.1] - 2020-09-20
Added
Initial release supporting
int
,float
,string
,bool
,Ptime.date
and custom types
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>