package openapi

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type contact_object = {
  1. name : string option;
  2. url : string option;
  3. email : string option;
}
val make_contact_object : ?name:string -> ?url:string -> ?email:string -> unit -> contact_object
val pp_contact_object : Ppx_deriving_runtime.Format.formatter -> contact_object -> Ppx_deriving_runtime.unit
val show_contact_object : contact_object -> Ppx_deriving_runtime.string
val contact_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> contact_object
val yojson_of_contact_object : contact_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type license_object = {
  1. name : string;
  2. url : string option;
}
val make_license_object : name:string -> ?url:string -> unit -> license_object
val pp_license_object : Ppx_deriving_runtime.Format.formatter -> license_object -> Ppx_deriving_runtime.unit
val show_license_object : license_object -> Ppx_deriving_runtime.string
val license_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> license_object
val yojson_of_license_object : license_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type server_variable_object = {
  1. enum : string list option;
  2. default : string;
  3. description : string option;
}
val make_server_variable_object : ?enum:string list -> default:string -> ?description:string -> unit -> server_variable_object
val pp_server_variable_object : Ppx_deriving_runtime.Format.formatter -> server_variable_object -> Ppx_deriving_runtime.unit
val show_server_variable_object : server_variable_object -> Ppx_deriving_runtime.string
val server_variable_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> server_variable_object
val yojson_of_server_variable_object : server_variable_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type external_documentation_object = {
  1. description : string option;
  2. url : string;
}
val make_external_documentation_object : ?description:string -> url:string -> unit -> external_documentation_object
val pp_external_documentation_object : Ppx_deriving_runtime.Format.formatter -> external_documentation_object -> Ppx_deriving_runtime.unit
val show_external_documentation_object : external_documentation_object -> Ppx_deriving_runtime.string
val external_documentation_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> external_documentation_object
val yojson_of_external_documentation_object : external_documentation_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type server_object = {
  1. url : string;
  2. description : string option;
  3. variables : server_variable_object Json_schema.map option;
}
val make_server_object : url:string -> ?description:string -> ?variables:server_variable_object Json_schema.map -> unit -> server_object
val pp_server_object : Ppx_deriving_runtime.Format.formatter -> server_object -> Ppx_deriving_runtime.unit
val show_server_object : server_object -> Ppx_deriving_runtime.string
val server_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> server_object
val yojson_of_server_object : server_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type header_object = {
  1. description : string option;
  2. required : bool option;
  3. deprecated : bool option;
  4. allow_empty_value : bool option;
}
val make_header_object : ?description:string -> ?required:bool -> ?deprecated:bool -> ?allow_empty_value:bool -> unit -> header_object
val pp_header_object : Ppx_deriving_runtime.Format.formatter -> header_object -> Ppx_deriving_runtime.unit
val show_header_object : header_object -> Ppx_deriving_runtime.string
val header_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> header_object
val yojson_of_header_object : header_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type example_object = {
  1. summary : string option;
  2. description : string option;
  3. value : Json_schema.any option;
  4. externalValue : string option;
}
val make_example_object : ?summary:string -> ?description:string -> ?value:Json_schema.any -> ?externalValue:string -> unit -> example_object
val pp_example_object : Ppx_deriving_runtime.Format.formatter -> example_object -> Ppx_deriving_runtime.unit
val show_example_object : example_object -> Ppx_deriving_runtime.string
val example_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> example_object
val yojson_of_example_object : example_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type media_type_object = {
  1. schema : Json_schema.schema Json_schema.or_ref option;
  2. example : Json_schema.any option;
  3. examples : example_object Json_schema.or_ref Json_schema.map option;
  4. encoding : Json_schema.any Json_schema.map option;
}
val pp_media_type_object : Ppx_deriving_runtime.Format.formatter -> media_type_object -> Ppx_deriving_runtime.unit
val show_media_type_object : media_type_object -> Ppx_deriving_runtime.string
val media_type_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> media_type_object
val yojson_of_media_type_object : media_type_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type response_object = {
  1. description : string;
  2. headers : header_object Json_schema.or_ref Json_schema.map option;
  3. content : media_type_object Json_schema.map option;
}
val make_response_object : description:string -> ?headers:header_object Json_schema.or_ref Json_schema.map -> ?content:media_type_object Json_schema.map -> ?links:link_object Json_schema.or_ref Json_schema.map -> unit -> response_object
val pp_response_object : Ppx_deriving_runtime.Format.formatter -> response_object -> Ppx_deriving_runtime.unit
val show_response_object : response_object -> Ppx_deriving_runtime.string
val response_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> response_object
val yojson_of_response_object : response_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
val pp_responses_object : Ppx_deriving_runtime.Format.formatter -> responses_object -> Ppx_deriving_runtime.unit
val show_responses_object : responses_object -> Ppx_deriving_runtime.string
val responses_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> responses_object
val yojson_of_responses_object : responses_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type parameter_location =
  1. | Query
  2. | Header
  3. | Path
  4. | Cookie
val pp_parameter_location : Ppx_deriving_runtime.Format.formatter -> parameter_location -> Ppx_deriving_runtime.unit
val show_parameter_location : parameter_location -> Ppx_deriving_runtime.string
val parameter_location_of_yojson : Yojson.Safe.t -> parameter_location
val yojson_of_parameter_location : parameter_location -> [> `String of string ]
type parameter_style =
  1. | Simple
  2. | Form
val pp_parameter_style : Ppx_deriving_runtime.Format.formatter -> parameter_style -> Ppx_deriving_runtime.unit
val show_parameter_style : parameter_style -> Ppx_deriving_runtime.string
val parameter_style_of_yojson : Yojson.Safe.t -> parameter_style
val yojson_of_parameter_style : parameter_style -> [> `String of string ]
type parameter_object = {
  1. name : string;
  2. in_ : parameter_location;
  3. description : string option;
  4. required : bool option;
  5. deprecated : bool option;
  6. allow_empty_value : bool option;
  7. style : parameter_style option;
  8. schema : Json_schema.schema Json_schema.or_ref option;
  9. example : Json_schema.any option;
}
val make_parameter_object : name:string -> in_:parameter_location -> ?description:string -> ?required:bool -> ?deprecated:bool -> ?allow_empty_value:bool -> ?style:parameter_style -> ?schema:Json_schema.schema Json_schema.or_ref -> ?example:Json_schema.any -> unit -> parameter_object
val pp_parameter_object : Ppx_deriving_runtime.Format.formatter -> parameter_object -> Ppx_deriving_runtime.unit
val show_parameter_object : parameter_object -> Ppx_deriving_runtime.string
val parameter_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> parameter_object
val yojson_of_parameter_object : parameter_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type request_body_object = {
  1. description : string option;
  2. content : media_type_object Json_schema.map;
  3. required : bool option;
}
val make_request_body_object : ?description:string -> content:media_type_object Json_schema.map -> ?required:bool -> unit -> request_body_object
val pp_request_body_object : Ppx_deriving_runtime.Format.formatter -> request_body_object -> Ppx_deriving_runtime.unit
val show_request_body_object : request_body_object -> Ppx_deriving_runtime.string
val request_body_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> request_body_object
val yojson_of_request_body_object : request_body_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type security_scheme_object = {
  1. type_ : string;
  2. description : string option;
  3. name : string option;
  4. in_ : string option;
  5. scheme : string option;
  6. bearer_format : string option;
  7. flows : Json_schema.any option;
  8. openid_connect_url : string option;
}
val make_security_scheme_object : type_:string -> ?description:string -> ?name:string -> ?in_:string -> ?scheme:string -> ?bearer_format:string -> ?flows:Json_schema.any -> ?openid_connect_url:string -> unit -> security_scheme_object
val pp_security_scheme_object : Ppx_deriving_runtime.Format.formatter -> security_scheme_object -> Ppx_deriving_runtime.unit
val show_security_scheme_object : security_scheme_object -> Ppx_deriving_runtime.string
val security_scheme_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> security_scheme_object
val yojson_of_security_scheme_object : security_scheme_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type callback_object = Json_schema.any
val pp_callback_object : Ppx_deriving_runtime.Format.formatter -> callback_object -> Ppx_deriving_runtime.unit
val show_callback_object : callback_object -> Ppx_deriving_runtime.string
val callback_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> callback_object
val yojson_of_callback_object : callback_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
val pp_components_object : Ppx_deriving_runtime.Format.formatter -> components_object -> Ppx_deriving_runtime.unit
val show_components_object : components_object -> Ppx_deriving_runtime.string
val components_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> components_object
val yojson_of_components_object : components_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type info_object = {
  1. title : string;
  2. description : string option;
  3. terms_of_service : string option;
  4. contact : contact_object option;
  5. license : license_object option;
  6. version : string;
}
val make_info_object : title:string -> ?description:string -> ?terms_of_service:string -> ?contact:contact_object -> ?license:license_object -> version:string -> unit -> info_object
val pp_info_object : Ppx_deriving_runtime.Format.formatter -> info_object -> Ppx_deriving_runtime.unit
val show_info_object : info_object -> Ppx_deriving_runtime.string
val info_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> info_object
val yojson_of_info_object : info_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type operation_object = {
  1. tags : string list option;
  2. summary : string option;
  3. description : string option;
  4. external_docs : external_documentation_object option;
  5. operation_id : string option;
  6. parameters : parameter_object Json_schema.or_ref list option;
  7. request_body : request_body_object Json_schema.or_ref option;
  8. responses : responses_object;
  9. callbacks : callback_object Json_schema.or_ref Json_schema.map option;
  10. deprecated : bool option;
  11. security : Json_schema.any option;
  12. servers : server_object list option;
}
val make_operation_object : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:external_documentation_object -> ?operation_id:string -> ?parameters:parameter_object Json_schema.or_ref list -> ?request_body:request_body_object Json_schema.or_ref -> responses:responses_object -> ?callbacks:callback_object Json_schema.or_ref Json_schema.map -> ?deprecated:bool -> ?security:Json_schema.any -> ?servers:server_object list -> unit -> operation_object
val pp_operation_object : Ppx_deriving_runtime.Format.formatter -> operation_object -> Ppx_deriving_runtime.unit
val show_operation_object : operation_object -> Ppx_deriving_runtime.string
val operation_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> operation_object
val yojson_of_operation_object : operation_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type path_object = {
  1. summary : string option;
  2. description : string option;
  3. get : operation_object option;
  4. put : operation_object option;
  5. post : operation_object option;
  6. delete : operation_object option;
  7. options : operation_object option;
  8. head : operation_object option;
  9. patch : operation_object option;
  10. trace : operation_object option;
  11. servers : server_object list option;
  12. parameters : parameter_object Json_schema.or_ref list option;
}
val make_path_object : ?summary:string -> ?description:string -> ?get:operation_object -> ?put:operation_object -> ?post:operation_object -> ?delete:operation_object -> ?options:operation_object -> ?head:operation_object -> ?patch:operation_object -> ?trace:operation_object -> ?servers:server_object list -> ?parameters:parameter_object Json_schema.or_ref list -> unit -> path_object
val pp_path_object : Ppx_deriving_runtime.Format.formatter -> path_object -> Ppx_deriving_runtime.unit
val show_path_object : path_object -> Ppx_deriving_runtime.string
val path_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> path_object
val yojson_of_path_object : path_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type paths_object = path_object Json_schema.map
val paths_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> paths_object
val yojson_of_paths_object : paths_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
val pp_paths_object : Ppx_deriving_runtime.Format.formatter -> paths_object -> Ppx_deriving_runtime.unit
val show_paths_object : paths_object -> Ppx_deriving_runtime.string
type tag_object = {
  1. name : string;
  2. description : string option;
  3. external_docs : external_documentation_object option;
}
val make_tag_object : name:string -> ?description:string -> ?external_docs:external_documentation_object -> unit -> tag_object
val pp_tag_object : Ppx_deriving_runtime.Format.formatter -> tag_object -> Ppx_deriving_runtime.unit
val show_tag_object : tag_object -> Ppx_deriving_runtime.string
val tag_object_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> tag_object
val yojson_of_tag_object : tag_object -> Ppx_yojson_conv_lib.Yojson.Safe.t
type t = {
  1. openapi : string;
  2. info : info_object;
  3. servers : server_object list option;
  4. paths : paths_object;
  5. components : components_object option;
  6. security : Json_schema.any option;
  7. tags : tag_object list option;
  8. external_docs : external_documentation_object option;
}
val make : openapi:string -> info:info_object -> ?servers:server_object list -> paths:paths_object -> ?components:components_object -> ?security:Json_schema.any -> ?tags:tag_object list -> ?external_docs:external_documentation_object -> unit -> t
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val t_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> t
val yojson_of_t : t -> Ppx_yojson_conv_lib.Yojson.Safe.t
OCaml

Innovation. Community. Security.