Liking cljdoc? Tell your friends :D

martian.parameter-aliases


alias-schemaclj/s

(alias-schema registry schema)

Given a (possibly, deeply nested) schema, renames all keys (in it and its subschemas) into corresponding "idiomatic" keys (aliases) using the given parameter aliases registry.

Given a (possibly, deeply nested) `schema`, renames all keys (in it and its
subschemas) into corresponding "idiomatic" keys (aliases) using the given
parameter aliases `registry`.
raw docstring

parameter-aliasesclj/s


registryclj/s

(registry schema)

Builds a lookupable registry of parameter alias maps for the given schema.

Returns an instance of a lazy registry.

Aliases are computed on demand (via compute-aliases-at), so materializing massive alias maps upfront is avoided. Per-path results are memoized within the registry. Identical alias maps are shared to cut memory usage.

A returned value implements ILookup and is indexed by "idiomatic paths". Looking up a path gives an alias map for that level, mapping idiomatic keys (kebab-case, unqualified) to their original schema keys.

Builds a lookupable registry of parameter alias maps for the given `schema`.

Returns an instance of a lazy registry.

Aliases are computed on demand (via `compute-aliases-at`), so materializing
massive alias maps upfront is avoided. Per-path results are memoized within
the registry. Identical alias maps are shared to cut memory usage.

A returned value implements `ILookup` and is indexed by "idiomatic paths".
Looking up a path gives an alias map for that level, mapping idiomatic keys
(kebab-case, unqualified) to their original schema keys.
raw docstring

unalias-dataclj/s

(unalias-data registry data)

Given a (possibly, deeply nested) data structure, returns it with all its keys renamed from "idiomatic" (aliases) using the given parameter aliases registry.

Given a (possibly, deeply nested) `data` structure, returns it with all its
keys renamed from "idiomatic" (aliases) using the given parameter aliases
`registry`.
raw 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