Skip to content

ComputeSoftware/spec-keys

Repository files navigation

spec-keys

A small library that parses a Spec form and returns a set of keys used.

Install

[compute/spec-keys "0.1.2"]

Usage

(require '[clojure.spec.alpha :as s])
(require '[compute.spec-keys.core :as sk])

(s/def ::a int?)
(s/def ::map (s/keys :req [::a]))

(sk/parse-spec-keys ::map)
=> #{::a}

License

Copyright © 2018 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.