package openapi

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Yojson_conv = Ppx_yojson_conv_lib.Yojson_conv
type 'a map = (string * 'a) list
val equal_map : 'a. ('a -> 'a -> Ppx_deriving_runtime.bool) -> 'a map -> 'a map -> Ppx_deriving_runtime.bool
val pp_map : 'a. (Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) -> Ppx_deriving_runtime.Format.formatter -> 'a map -> Ppx_deriving_runtime.unit
val show_map : 'a. (Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) -> 'a map -> Ppx_deriving_runtime.string
val yojson_of_map : ('a -> Yojson.Safe.t) -> (string * 'a) list -> Yojson.Safe.t
val map_of_yojson : (Yojson.Safe.t -> 'a) -> Yojson.Safe.t -> 'a map
type any = Yojson.Safe.t
val equal_any : any -> any -> Ppx_deriving_runtime.bool
val pp_any : Stdlib.Format.formatter -> Yojson.Safe.t -> unit
val any_of_yojson : 'a -> 'a
val yojson_of_any : 'a -> 'a
type any_map = any map
val pp_any_map : Ppx_deriving_runtime.Format.formatter -> any_map -> Ppx_deriving_runtime.unit
val show_any_map : any_map -> Ppx_deriving_runtime.string
val equal_any_map : any_map -> any_map -> Ppx_deriving_runtime.bool
val any_map_of_yojson : Yojson.Safe.t -> Yojson.Safe.t map
val yojson_of_any_map : (string * Yojson.Safe.t) list -> Yojson.Safe.t
type 'a or_ref =
  1. | Obj of 'a
  2. | Ref of string
val equal_or_ref : 'a. ('a -> 'a -> Ppx_deriving_runtime.bool) -> 'a or_ref -> 'a or_ref -> Ppx_deriving_runtime.bool
val yojson_of_or_ref : ('a -> [> `Assoc of (string * [> `String of string ]) list ] as 'b) -> 'a or_ref -> 'b
val or_ref_of_yojson : ([> `Assoc of (string * [> `String of string ]) list ] as 'a -> 'b) -> 'a -> 'b or_ref
val pp_or_ref : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a or_ref -> unit
type json_schema_type =
  1. | Null
  2. | Boolean
  3. | Object
  4. | Array
  5. | Number
  6. | String
  7. | Integer
val equal_json_schema_type : json_schema_type -> json_schema_type -> Ppx_deriving_runtime.bool
val string_of_json_schema_type : json_schema_type -> string
val json_schema_type_of_yojson : Yojson.Safe.t -> json_schema_type
val yojson_of_json_schema_type : json_schema_type -> Yojson.Safe.t
val pp_json_schema_type : Stdlib.Format.formatter -> json_schema_type -> unit
type schema = {
  1. schema : string option;
  2. id_ : string option;
  3. title : string option;
  4. description : string option;
  5. default : any option;
  6. examples : any list option;
  7. read_only : bool option;
  8. write_only : bool option;
  9. comment : string option;
  10. typ : json_schema_type or_ref option;
  11. enum : any list option;
  12. const : any option;
  13. multiple_of : float option;
  14. minimum : float option;
  15. exclusiveMinimum : float option;
  16. maximum : float option;
  17. exclusiveMaximum : float option;
  18. properties : schema or_ref map option;
  19. pattern_properties : schema or_ref map option;
  20. additional_properties : schema or_ref option;
  21. required : string list option;
  22. property_names : schema or_ref option;
  23. min_properties : int option;
  24. max_properties : int option;
  25. min_items : int option;
  26. max_items : int option;
  27. items : schema or_ref option;
  28. prefix_items : schema or_ref list option;
  29. format : string option;
  30. pattern : string option;
  31. min_length : int option;
  32. max_length : int option;
  33. all_of : schema or_ref list option;
  34. any_of : schema or_ref list option;
  35. one_of : schema or_ref list option;
  36. defs : schema map option;
}
val equal_schema : schema -> schema -> Ppx_deriving_runtime.bool
val make_schema : ?schema:string -> ?id_:string -> ?title:string -> ?description:string -> ?default:any -> ?examples:any list -> ?read_only:bool -> ?write_only:bool -> ?comment:string -> ?typ:json_schema_type or_ref -> ?enum:any list -> ?const:any -> ?multiple_of:float -> ?minimum:float -> ?exclusiveMinimum:float -> ?maximum:float -> ?exclusiveMaximum:float -> ?properties:schema or_ref map -> ?pattern_properties:schema or_ref map -> ?additional_properties:schema or_ref -> ?required:string list -> ?property_names:schema or_ref -> ?min_properties:int -> ?max_properties:int -> ?min_items:int -> ?max_items:int -> ?items:schema or_ref -> ?prefix_items:schema or_ref list -> ?format:string -> ?pattern:string -> ?min_length:int -> ?max_length:int -> ?all_of:schema or_ref list -> ?any_of:schema or_ref list -> ?one_of:schema or_ref list -> ?defs:schema map -> unit -> schema
val pp_schema : Ppx_deriving_runtime.Format.formatter -> schema -> Ppx_deriving_runtime.unit
val show_schema : schema -> Ppx_deriving_runtime.string
val schema_of_yojson : Yojson.Safe.t -> schema
val yojson_of_schema : schema -> Yojson.Safe.t
module Helpers : sig ... end
OCaml

Innovation. Community. Security.