Liking cljdoc? Tell your friends :D

wagoe.devtools.shell.dashboard.pages.schemas


collect-schemasclj

(collect-schemas)

Collect available Malli schemas. Returns a seq of schema keys.

Collect available Malli schemas. Returns a seq of schema keys.
sourceraw docstring

renderclj

(render opts req)

Render the Schema Browser full page.

Render the Schema Browser full page.
sourceraw docstring

render-schema-detailclj

(render-schema-detail schema-key)

Render a schema's fields as a tree panel.

Render a schema's fields as a tree panel.
sourceraw docstring

reset-schemas!clj

(reset-schemas!)

Clear the cached schema map so it is re-discovered on next access. Called automatically on system reload.

Clear the cached schema map so it is re-discovered on next access.
Called automatically on system reload.
sourceraw docstring

schema-keyclj

(schema-key ns-sym var-name)

The browser's key for schema var var-name in namespace ns-sym: the var's fully-qualified name as a keyword, e.g. :wagoe.user.schema/User.

Not :<module>/<Var>. That shorter key kept only the segment before .schema, so acme.user.schema/User and wagoe.user.schema/User were both :user/User, and every *.core.schema namespace landed on :core. Once the scan took in every loaded .schema namespace (BOU-509) the collision became reachable, and discover-all-schemas merges — one schema silently vanished from the browser. The full namespace is the only name unique by construction.

The browser's key for schema var `var-name` in namespace `ns-sym`: the
var's fully-qualified name as a keyword, e.g. :wagoe.user.schema/User.

Not :<module>/<Var>. That shorter key kept only the segment before
`.schema`, so acme.user.schema/User and wagoe.user.schema/User were both
:user/User, and every `*.core.schema` namespace landed on :core. Once the
scan took in every loaded `.schema` namespace (BOU-509) the collision became
reachable, and discover-all-schemas merges — one schema silently vanished
from the browser. The full namespace is the only name unique by
construction.
sourceraw docstring

schema-namespace?clj

(schema-namespace? ns-sym)

Does ns-sym name a schema namespace?

Any namespace ending in .schema, not only the framework's own. The scan used to match wagoe.<module>.schema exactly, so an application namespace such as invoicing.invoice.schema could never appear — the browser listed 52 framework schemas and none of the developer's (BOU-509). The same regex also missed nested framework namespaces like wagoe.admin.core.schema.

Does `ns-sym` name a schema namespace?

Any namespace ending in `.schema`, not only the framework's own. The scan
used to match `wagoe.<module>.schema` exactly, so an application namespace
such as `invoicing.invoice.schema` could never appear — the browser listed
52 framework schemas and none of the developer's (BOU-509). The same regex
also missed nested framework namespaces like `wagoe.admin.core.schema`.
sourceraw docstring

truncate-exampleclj

(truncate-example s n)

s capped at n lines, with a count of what was dropped.

`s` capped at `n` lines, with a count of what was dropped.
sourceraw docstring

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