View Source conf_yaml_backend (conf v0.2.5)
Link to this section Summary
Link to this section Types
-type distance_cache() :: #{{string(), string()} => non_neg_integer()}.
-type error_reason() :: {unsupported_application, atom()} | {invalid_yaml_config, yval:error_reason(), yval:ctx()} | {bad_ref, binary(), yaml_error_reason() | conf_file:error_reason()} | {bad_env, conf:error_reason()} | {bad_mod, conf_misc:error_reason()} | {circular_ref, binary()} | yaml_error_reason().
-type yaml() :: term().
-type yaml_error_reason() :: {bad_yaml, term()}.
Link to this section Functions
-spec decode(iodata()) -> {ok, yaml()} | {error, error_reason()}.
-spec format_error(error_reason()) -> unicode:chardata().
-spec mime_types() -> [binary(), ...].
-spec validate(yaml()) -> {ok, conf:apps_config()} | {error, error_reason()}.