A collection of handy functions to utilize the specs in this library
A collection of handy functions to utilize the specs in this library
(coerce spec data)
Coerce data
to a given spec
while eliminating non-conforming keys and values
Coerce `data` to a given `spec` while eliminating non-conforming keys and values
(conform spec data)
Conform data
to a given spec
while eliminating non-conforming keys and values
Conform `data` to a given `spec` while eliminating non-conforming keys and values
(emit-json cbf-data cbf-spec)
Encode cbf-data
as an instance of cbf-spec
and return the equivalent json
Encode `cbf-data` as an instance of `cbf-spec` and return the equivalent json
(emit-xml cbf-data cbf-spec)
Encode cbf-data
as an instance of cbf-spec
and return the equivalent XML
Encode `cbf-data` as an instance of `cbf-spec` and return the equivalent XML
(parse-and-coerce-json json-blob cbf-spec)
Parse the string json-blob
and decode it as an instance of cbf-spec
Parse the string `json-blob` and decode it as an instance of `cbf-spec`
(parse-and-coerce-xml xml-doc cbf-spec)
Parse the string xml-doc
and decode it as an instance of cbf-spec
Parse the string `xml-doc` and decode it as an instance of `cbf-spec`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close