[ANN] first release of ppx_deriving_jsonschema

Released 0.0.2 on opam. It feels like the project is in a good shape now.

Changes:

  • support for nativeint, bytes, ref, unit
  • add ~variant_as_array for compatibility with ppx_deriving_yojson
  • support variant payloads
  • support polymorphic variants inheritance
  • fix encoding of tuples
  • change encoding of variants from enum to anyOf

I’m considering making variant_as_array the default in 0.0.3 as it would be more consistent with the ocaml ecosystem.

3 Likes