Closed ikitommi closed 7 years ago
Some say think Spec is better than Schema as the KeySets are open.
st/coerce
:open?
: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})]}))))
Some say think Spec is better than Schema as the KeySets are open.
st/coerce
could take optional options map with:open?
as an option:open
override the existing special keys? => YES.