Liking cljdoc? Tell your friends :D

com.cognitect.vase


ensure-schemaclj

(ensure-schema spec-or-specs)

Given an api-spec or a collection of app-specs, extract the schema norms, ensure they conform, and idempotently transact them into the Datomic DB. Returns a map of {'db-uri' {:connection datomic-conn, :norms {... all merged norms ..}}}.

Given an api-spec or a collection of app-specs,
extract the schema norms, ensure they conform, and idempotently
transact them into the Datomic DB.
Returns a map of {'db-uri' {:connection datomic-conn, :norms {... all merged norms ..}}}.
sourceraw docstring

load-edn-fileclj

(load-edn-file file-path)

Given a path, loads a descriptor using the proper readers to get support for Vase literals.

Given a path, loads a descriptor using the proper readers to get
support for Vase literals.
sourceraw docstring

load-edn-resourceclj

(load-edn-resource res)

Given a resource name, loads a descriptor or app-spec, using the proper readers to get support for Vase literals.

Given a resource name, loads a descriptor or app-spec,
using the proper readers to get support for Vase literals.
sourceraw docstring

routesclj

(routes api-root spec-or-specs)

Return a seq of route vectors for Pedestal's table routing syntax. Routes will all begin with api-root/:api-namespace/api-name-tag.

spec-or-specs is either a single app-spec (as a map) or a collection of app-specs.

The routes will support all the operations defined in the spec. Callers should treat the format of these routes as opaque. They may change in number, quantity, or layout.

Return a seq of route vectors for Pedestal's table routing syntax. Routes
will all begin with `api-root/:api-namespace/api-name-tag`.

`spec-or-specs` is either a single app-spec (as a map) or a collection of app-specs.

The routes will support all the operations defined in the
spec. Callers should treat the format of these routes as
opaque. They may change in number, quantity, or layout.
sourceraw docstring

specsclj

(specs spec-or-specs)

Given a app-spec or collection of app-specs, extract all defined Clojure specs and evaluate them, placing them in spec's registry.

Given a app-spec or collection of app-specs,
extract all defined Clojure specs and evaluate them,
placing them in spec's registry.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close