package conformist

  1. Overview
  2. Docs
Conformist allows you to define schemas to decode, validate and sanitize input data declaratively

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=7b09116430251ed48c7d21ac878cdcc3
sha512=8f562e8b54631bdcaab803348fa491b77cef95dff82ea0a01d9d0b88d9346261103123102aacd4fb1d7ab021b4f67ee602120239e08d09507a4247ecb5bce509

CHANGES.md.html

Changelog

[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 is None.

[0.1.0] - 2020-09-29

Added

  • Conformist.Field.type_ can be used to retrieve a string representation of the type

  • Support for custom encoders for custom types

  • Support 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 accept Conformist.t as input

[0.0.1] - 2020-09-20

Added

  • Initial release supporting int, float, string, bool, Ptime.date and custom types

OCaml

Innovation. Community. Security.