plumatic / schema

Clojure(Script) library for declarative data description and validation
Other
2.4k stars 256 forks source link

Introduce polymorphic schemas #445

Closed frenchy64 closed 1 year ago

frenchy64 commented 2 years ago

Adds polymorphic schemas with direct support for s/{de}fn etc.

My goal for this first pass is to represent the schema for sequence arities of clojure.core/map in one function. We'd need to (at least) look into https://github.com/plumatic/schema/issues/446 for the transducer arities.

frenchy64 commented 2 years ago

Seems pretty solid for s/defn. Going to test s/fn, s/letfn and others.

frenchy64 commented 2 years ago

Pretty happy with this now. Can't see anything extraneous.

frenchy64 commented 1 year ago

Moved https://github.com/frenchy64/schema-incubator