Openapi.Schema
OpenAPI Schema Objects.
Not exactly the same as JSON schemas.
type kind =
Nullable (i.e. non-ref) schemas.
and t =
| Ref of string
| Other of {
title : string option;
description : string option;
nullable : bool;
kind : kind;
}
Object fields.
type maker =
?title:string ->
?description:string ->
?nullable:bool ->
unit ->
t
val boolean : maker
val integer : ?minimum:int -> ?maximum:int -> ?enum:int list -> maker
val number : ?minimum:float -> ?maximum:float -> maker
val string : ?enum:string list -> ?pattern:string -> maker
val any : maker
val reference : string -> t