A generator of clojure specs for data-based API definitions
A generator of clojure specs for data-based API definitions
(command-spec op {:keys [input params path] :as cmd})(command-specs commands)Build a map of operation name to spec, and add an handler
key for a multi-spec dispatch
Build a map of operation name to spec, and add an `handler` key for a multi-spec dispatch
(create-temp-specs {:keys [info resources]})A run through all declared resources for the spec
equivalent of declare to avoid circular dependencies
A run through all declared resources for the spec equivalent of `declare` to avoid circular dependencies
(export x)(generate-specs {:keys [info resources commands] :as api-def})(output-spec command status-map)Build a multispec out of a map of {status spec-def}, using a multispec with dispatch
on status.
Build a multispec out of a map of `{status spec-def}`, using a multispec with dispatch
on `status`.(output-specs commands)Build a map of operation name to output spec.
Build a map of operation name to output spec.
(qualify k)(resource-specs resources)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |