metosin / schema-tools

Clojure(Script) tools for Plumatic Schema
http://metosin.github.io/schema-tools/
Eclipse Public License 2.0
107 stars 16 forks source link

Make open #35

Closed ikitommi closed 7 years ago

ikitommi commented 7 years ago

Some say think Spec is better than Schema as the KeySets are open.

(deftest make-open-test
  (is (= {:a Long, :b [(s/maybe {:a Long, s/Any s/Any})], s/Any s/Any}
        (st/make-open {:a Long, :b [(s/maybe {:a Long})]}))))