package atdgen-runtime

  1. Overview
  2. Docs

Functor, allowing the use of a custom parameter:

module Kind = Type_field.Make (struct type_field_name = "kind" end)

Parameters

module Param : Param

Signature

val normalize : Yojson.Safe.t -> Yojson.Safe.t

Convert a real json tree into an atd-compliant form.

val restore : Yojson.Safe.t -> Yojson.Safe.t

Convert an atd-compliant json tree into a real json tree.