Schpec is a utility library for clojure.spec.
[com.gfredericks/schpec "0.1.0"]
In the com.gfredericks.schpec
namespace:
xor
: likes/or
but values can only match exactly one specexcl-keys
: likes/keys
, but does not allow extra keysalias
: likeclojure.core/alias
, but can alias to non-existing namespaces
It is currently empty but is intended to be a home for all manner of things, such as:
- other common specs
- generators related to specs
- other helper functions/macros for defining specs
- whatever other feature you miss from plumatic/schema
- etc.
Pull requests! I welcome anything related to clojure.spec that is at least half-baked. Sufficiently weird things will be relegated to sufficiently obscure namespaces.
Copyright © 2016 Gary Fredericks
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.