Closed ikitommi closed 6 years ago
Would be super in conjunction with select-schema:
(s/defschema Abba {:a s/Str, :b {:c s/Str}}) (st/with-extra-keys Abba) ; => {:a s/Str, s/Any s/Any, :b {:c s/Str, s/Any s/Any}} (st/with-extra-keyword-keys Abba) ; => {:a s/Str, s/Keyword s/Any, :b {:c s/Str, s/Keyword s/Any}}
and the reverse functions too:
(st/without-extra-keys {:a s/Str, s/Any s/Any, :b {:c s/Str, s/Keyword s/Any}}) ; => {:a s/Str, :b {:c s/Str}}
st/open-schema
Would be super in conjunction with select-schema: