Specs

Limited parts of Pedestal are described using Clojure specs.

This includes the structure of the service map, and the various kinds of route specifications.

Use of spec is entirely optional; specs are confined to their own namespaces which are not explicitly loaded by any of Pedestal’s other namespaces.

You can, in your own application’s tests, load these namespaces and instrument functions as appropriate, using Clojure’s built-in instrumention and testing support.

Spec namespaces: