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

selectors with wrapped schemas #20

Closed ikitommi closed 8 years ago

ikitommi commented 9 years ago
(st/get-in {:a (s/maybe {:schema s/Bool})} [:a :schema])
;  {:schema java.lang.Boolean}

is bit surprising as the :schema matches Maybes internals. Should return s/Bool...?

Deraen commented 8 years ago

Partially implemented by b9f8f069c486ccdf42f428e0a34f88437a78d128

Deraen commented 8 years ago

This was tried but decided it was even less consistent to automatically walk over Schema internal fields. I guess we should just close this as I don't think there is any solution to this.