Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type options = {
get_env_var : string -> string option;
get_file : filepath -> string;
config_path_filter_map : string -> string;
file_path_filter_map : string -> string;
allow_unused_anchors : bool;
allow_redefining_anchors : bool;
enable_includes : bool;
enable_conditional_includes : bool;
enable_imports : bool;
process_scalar_tag : tag:string ->
string ->
[ `Scalar of string | `YAML of Yaml.yaml ] option;
}
val default_options : options
val make_options :
?get_env_var:(string -> string option) ->
?get_file:(filepath -> string) ->
?config_path_filter_map:(string -> string) ->
?file_path_filter_map:(string -> string) ->
?enable_includes:bool ->
?enable_conditional_includes:bool ->
?enable_imports:bool ->
?allow_unused_anchors:bool ->
?allow_redefining_anchors:bool ->
?process_scalar_tag:
(tag:string -> string -> [ `Scalar of string | `YAML of Yaml.yaml ] option) ->
unit ->
options
val ok_or_raise : ('a, Spec.error list) Stdlib.result -> 'a
module JSON : sig ... end
module YAML : sig ... end
module Spec : sig ... end
val parse :
?options:options ->
?validate:Spec.t ->
of_yojson:(Yojson.Safe.t -> ('a, string) Stdlib.result) ->
string ->
('a, Spec.error list) Stdlib.result