(validate key data)
Validates data
, returning a result map.
data
is a vector containing maps. Each map has a file information as
follows:
{:file-path The file path relative to the base directory.
:file-type The file type, any of :csv
, :text
, and :yaml
.
:raw-content The raw content of the file.
:parsed-content The parsed data of :raw-content
. The structure of
the data depends on :file-type
.}
validate
multimethods returns the result map consisting of the following
keys:
{:errors A vector of maps indicating errors. Each error map consists of
{:file-path The file path in which an error occurs.
:error-value The error value.
:error-block A block in `:parsed-content` containing the
error location.
:error-keys Keys in `:error-block` for indicating the
specific error location.}
If there are no errors, set `nil` or an empty sequence.
:message An optional error message.}
Validates `data`, returning a result map. `data` is a vector containing maps. Each map has a file information as follows: {:file-path The file path relative to the base directory. :file-type The file type, any of `:csv`, `:text`, and `:yaml`. :raw-content The raw content of the file. :parsed-content The parsed data of `:raw-content`. The structure of the data depends on `:file-type`.} `validate` multimethods returns the result map consisting of the following keys: {:errors A vector of maps indicating errors. Each error map consists of {:file-path The file path in which an error occurs. :error-value The error value. :error-block A block in `:parsed-content` containing the error location. :error-keys Keys in `:error-block` for indicating the specific error location.} If there are no errors, set `nil` or an empty sequence. :message An optional error message.}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close