(schemas/meet int? string?) (schemas/valid? int? {int true}) (let [int? (fn [v] false)] (schemas/valid? int? 8)) (schemas/valid? [not int?] "x") (schemas/valid? [not [not int?]] 3) (schemas/meet int? [not int?]) (let [positive? (fn [x] (> x 0))] [(schemas/valid? positive? "x") (schemas/valid? [not positive?] "x")]) (schemas/valid? {items :count} {items [1 2]}) [(schemas/valid? {age itn?} {age 3})] (schemas/valid? {default 5 not true} {default 5 not true}) [(schemas/valid? {mode not} {mode 1})] (schemas/valid? {nick [optional string?]} {}) (schemas/valid? {nick [optional string?]} {nick null}) (schemas/valid? {nick [maybe string?]} {}) (schemas/valid? {nick [maybe string?]} {nick null}) (schemas/valid? {nick [not null]} {}) (schemas/match {} ({nick [optional [bind nick string?]]} nick)) (schemas/valid? [meet [map-of int?] {total int?}] {total 5 a 1}) (schemas/valid? [meet [map-of int?] {total int?}] {a 1}) (schemas/valid? [is != 3] "a") (schemas/valid? [not [is = 3]] "a") (schemas/valid? {age #builtin "int?"} {age 3}) [(schemas/valid? (documents/value (encoding/decode "dust" "{age int?}")) {age 3})] (schemas/explain {a int? b (fn positive? [x] (> x 0)) c (fn [x] (> x 0))} {a "x" b -1 c -1})