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

Select-schema fails with nested vector schemas #7

Closed ikitommi closed 9 years ago

ikitommi commented 9 years ago
(require '[schema.core :as s])
(require '[schema-tools.core :as st])

(s/check [{:a s/Str}] [{:a "kikka" :b "kukka"}])
; [{:b disallowed-key}]

(st/select-schema [{:a s/Str}] [{:a "kikka" :b "kukka"}])
; java.lang.UnsupportedOperationException: nth not supported on this type: PersistentArrayMap
ikitommi commented 9 years ago

fixed