A new 0.2.0 version has just been released. Thanks to all the contributors (including Outreachy applicants!), there’s a lot of nice additions including:
-
to_yamlandof_yamlattributes allowing you to add custom encoders and decoders - a
skip_unknownflag for ignoring yaml keys so you can partially decode yaml values - a
defaultattribute -
[@@deriving yaml]is now an alias to[@@deriving to_yaml]and[@@ deriving of_yaml]so you can get decoders, encoders or both.
See the documentation in the README: GitHub - patricoferris/ppx_deriving_yaml: OCaml types to Yaml types and back again