package resto-json

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Encoding exposes the minimal part Json_encoding that allow to construct new encodings as well as pre-made encodings for values useful to Resto.

It also makes the type of encodings 'a t concrete ('a Json_encoding.encodings) which allows for further use -- see VALUE.

type 'a t = 'a Json_encoding.encoding
type schema = Json_schema.schema
val unit : unit t
val untyped : string t
val conv : ('a -> 'b) -> ('b -> 'a) -> 'b t -> 'a t
val schema : ?definitions_path:string -> 'a t -> schema
val description_request_encoding : Resto.Description.request t
val description_answer_encoding : schema Resto.Description.directory t
OCaml

Innovation. Community. Security.