std.lib.schema.base

+scope+

+scope-brief+

all-auto-defaults

added in 3.0

(all-auto-defaults)(all-auto-defaults meta)

all automatic defaults for the schema

(base/all-auto-defaults) => {:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}

all-defaults

added in 3.0

(all-defaults)(all-defaults meta)

attr-add-defaults

added in 3.0

(attr-add-defaults [k [attr :as v]] dfts)

adds defaults to a given schema property pair

attr-add-ident

added in 3.0

(attr-add-ident [k [attr :as v]])

adds the key of a pair as :ident to a schema property pair

base-meta

check-scope

added in 4.0

(check-scope scope)

check if a scope is valid

defaults

added in 3.0

(defaults [k prop])

constructs a map according to specifics

(base/defaults :person/name {:default “Unknown” :auto true}) => {:default “Unknown”, :auto true, :id :person/name}

expand-scopes

added in 4.0

(expand-scopes m)(expand-scopes m expanded)

expand scopes for all globbed keywords

type-checks

multimethod

added in 3.0

gets type-checks according to category

((base/type-checks :default :string) “Hello”) => true