atdgen-codec-runtime

Runtime for atdgen generated bucklescript converters
Library atdgen-codec-runtime
module type Param = sig ... end

Default parameters, using type_field_name = "type".

Default adapter assuming a "type" field.

include S
val normalize : Json.t -> Json.t

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

val restore : Json.t -> Json.t

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

module Make (Param : Param) : S

Functor, allowing the use of a custom parameter: