Protocols for use across the application, we enumerate them here in one NS so we don't get into circ. dependency errors.
Protocols for use across the application, we enumerate them here in one NS so we don't get into circ. dependency errors.
Things that come from the user and must be validated.
Things that come from the user and must be validated.
(validate this)
Validate the input, which must be read in first. Returns nil if the input is valid, or a vector of error maps each containing: :id - Generated unique ID for error :path - Path of error in input :text - Error message/text
Validate the input, which must be read in first. Returns nil if the input is valid, or a vector of error maps each containing: :id - Generated unique ID for error :path - Path of error in input :text - Error message/text
Things that can be represented as JSON
Things that can be represented as JSON
(read-body-fn this json-result)
Return a new record with the given JSON incorporated
Return a new record with the given JSON incorporated
(read-key-fn this k)
Wrapped in a partial, will coerce k to internal representation.
Wrapped in a partial, will coerce k to internal representation.
(write-body-fn this)
Return the part of the record used to generate json.
Return the part of the record used to generate json.
(write-key-fn this k)
Wrapped in a partial, will coerce k to json representation
Wrapped in a partial, will coerce k to json representation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close