std.contract.type

check

added in 3.0

(check schema data)

checks that data fits the spec

combine

added in 3.0

(combine sketch more)

combines spec schemas (usually maps)

common-spec

added in 3.0

(common-spec sketch & more)

creates a common spec

common-spec-invoke

added in 3.0

(common-spec-invoke spec)(common-spec-invoke spec data)(common-spec-invoke spec data _)

invokes the common spec

common-spec-string

added in 3.0

(common-spec-string spec)

displays the common spec

defcase

macro

added in 3.0

(defcase sym dispatch sketch & more)

adds an additional case to the multispec

defmultispec

macro

added in 3.0

(defmultispec sym dispatch & pairs)

macro for defining a multispec

defspec

macro

added in 3.0

(defspec sym sketch & more)

macro for defining a spec

multi-gen-final

added in 3.0

(multi-gen-final dispatch options)

generates the final schema for a multispec

multi-spec

added in 3.0

(multi-spec dispatch options)

creates a multi spec

multi-spec-add

added in 3.0

(multi-spec-add spec dispatch-val schema)

adds additional types to the multi spec

multi-spec-invoke

added in 3.0

(multi-spec-invoke spec)(multi-spec-invoke spec data)(multi-spec-invoke spec data _)

invokes the multi spec

multi-spec-remove

added in 3.0

(multi-spec-remove spec dispatch-val)

removes additional types from the multi spec

multi-spec-string

added in 3.0

(multi-spec-string spec)

displays the multi spec

spec?

added in 3.0

(spec? x)

checks that object is of type spec

valid?

added in 3.0

(valid? spec data)

checks that data is valid