Custom JSON transformer which auto-encodes namespaced map keys
Custom JSON transformer which auto-encodes namespaced map keys
(decode-enum-keywords schema _opts)
Return an interceptor that will encode enum namespaced keywords
Return an interceptor that will encode enum namespaced keywords
(decode-namespaced-keys schema opts)
Returns an interceptor that will decode string keys on enter.
Returns an interceptor that will decode string keys on enter.
(encode-enum-keywords schema opts)
Return an interceptor that will encode enum namespaced keywords
Return an interceptor that will encode enum namespaced keywords
(encode-namespaced-keys schema opts)
Returns an interceptor that will encode keys as strings as well as filtering the map to only allowed keys.
Returns an interceptor that will encode keys as strings as well as filtering the map to only allowed keys.
(generate-encode-key-rename-map schema
{encode-map-key :json/encode-map-key
:or {encode-map-key str/snake}})
Function to generate a map of key renames for a provided schema with the given options.
Function to generate a map of key renames for a provided schema with the given options.
(transformer)
JSON transformer which will auotmatically encode / decode namespaced keywords into flatter JSON
Responds to the malli transformer option of: :json/encode-map-key
for building encoders
and decoders, as well as :json/encode-enum
for enum keywords.
Mostly useful to pair with cuerdas.core
string functions. By default will use snake case.
JSON transformer which will auotmatically encode / decode namespaced keywords into flatter JSON Responds to the malli transformer option of: `:json/encode-map-key` for building encoders and decoders, as well as `:json/encode-enum` for enum keywords. Mostly useful to pair with `cuerdas.core` string functions. By default will use snake case.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close