Hey there!
A while ago, we moved ppx_deriving_jsonschema into the melange-json project, so one PPX now provides both json decoding/encoding and jsonschema tools. At that point, melange-json no longer described it well, so we renamed melange-json to jsonkit as a project that provides OCaml json tooling. It works exactly like melange-json used to, but you can also handle jsonschema with the same ppx:
open Jsonkit.Primitives
type user = { name : string; age : int } [@@deriving json, jsonschema]
let schema = Jsonkit.Jsonschema.make user_jsonschema
New package names:
| before | after |
|---|---|
melange-json / melange-json.ppx |
jsonkit-melange / jsonkit-melange.ppx |
melange-json-native / melange-json-native.ppx |
jsonkit / jsonkit.ppx |
See the changelog for what changed since the migration.