package ocplib-json-typed

  1. Overview
  2. Docs

Parameters

Signature

val construct : 't encoding -> 't -> Repr.value

Same as construct for a custom JSON representation.

val destruct : 't encoding -> Repr.value -> 't

Same as destruct for a custom JSON representation.

val custom : ('t -> Repr.value) -> (Repr.value -> 't) -> schema:Json_schema.schema -> 't encoding

Same as custom for a custom JSON representation.

OCaml

Innovation. Community. Security.