Liking cljdoc? Tell your friends :D

hyperphor.alzabo.schema


*dir*clj

source

all-fieldsclj/s

(all-fields schema kind-name)

Get all fields for a kind including inherited fields merged with local fields

Get all fields for a kind including inherited fields merged with local fields
sourceraw docstring

clean-enum-valueclj/s

(clean-enum-value v)
source

clean-stringclj/s

(clean-string s)
source

deep-merge-fieldclj/s

(deep-merge-field parent-field child-field)

Deep merge field definitions. Child field properties override parent, but :doc strings are concatenated.

Deep merge field definitions. Child field properties override parent,
but :doc strings are concatenated.
sourceraw docstring

enumsclj/s

(enums schema)

Get all enum names from a schema

Get all enum names from a schema
sourceraw docstring

get-ancestorsclj/s

(get-ancestors schema kind-name)

Get all ancestors of a kind (transitive closure of parents). Returns a sequence in breadth-first order. Detects and throws on circular inheritance.

Get all ancestors of a kind (transitive closure of parents).
Returns a sequence in breadth-first order.
Detects and throws on circular inheritance.
sourceraw docstring

get-parentsclj/s

(get-parents schema kind-name)

Get direct parent kinds of a kind

Get direct parent kinds of a kind
sourceraw docstring

handle-includeclj

(handle-include s)
source

humanizeclj/s

(humanize term)
source

infer-enumsclj/s

(infer-enums s)
source

inherited-fieldsclj/s

(inherited-fields schema kind-name)

Get all fields inherited from parent kinds with deep merge. Fields from later parents override earlier ones, and local fields override all.

Get all fields inherited from parent kinds with deep merge.
Fields from later parents override earlier ones, and local fields override all.
sourceraw docstring

inverse-fieldsclj/s

source

is-enum-type?clj/s

(is-enum-type? type-name schema)

Check if a type is an enum

Check if a type is an enum
sourceraw docstring

is-reference-type?clj/s

(is-reference-type? type-name schema)

Check if a type is a reference to another kind

Check if a type is a reference to another kind
sourceraw docstring

kind-defclj/s

(kind-def schema kind)
source

kindsclj/s

(kinds schema)

Get all kind names from a schema

Get all kind names from a schema
sourceraw docstring

merge*clj/s

(merge* mcar & mcdr)
source

normalize-docsclj

(normalize-docs {:keys [kinds enums description explanation] :as schema})

Use :description as :doc on kinds, fields, and enums, and a top-level :description as :explanation, when those are absent.

Use :description as :doc on kinds, fields, and enums, and a top-level :description as :explanation, when those are absent.
sourceraw docstring

normalize-extendsclj/s

(normalize-extends extends)

Convert :extends to a vector for consistent handling. Accepts single keyword or vector of keywords.

Convert :extends to a vector for consistent handling.
Accepts single keyword or vector of keywords.
sourceraw docstring

numeric-primitivesclj/s

source

path-dirclj

(path-dir p)
source

primitivesclj/s

source

read-schemaclj

(read-schema source)
source

reduce-old-candel-shitclj/s

(reduce-old-candel-shit s)
source

safe-kebab-caseclj/s

(safe-kebab-case s)
source

strict-keysclj/smacro

(strict-keys & {:keys [req req-un opt opt-un]})
source

struct-parentclj/s

(struct-parent struct thing)
source

validate-inheritanceclj/s

(validate-inheritance schema)

Validate all inheritance relationships in a schema

Validate all inheritance relationships in a schema
sourceraw docstring

validate-no-cyclesclj/s

(validate-no-cycles schema kind-name)

Check for circular inheritance in a kind

Check for circular inheritance in a kind
sourceraw docstring

validate-parent-existsclj/s

(validate-parent-exists schema kind-name)

Check that all parent kinds exist in the schema

Check that all parent kinds exist in the schema
sourceraw docstring

validate-schemaclj/s

(validate-schema schema)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close