Generic case conversion utilities for API and data transformations.
This namespace provides reusable case conversion utilities that handle transformations between different naming conventions commonly used in APIs:
These functions are designed to be nil-safe and handle nested data structures where appropriate.
Usage: (:require [wagoe.core.utils.case-conversion :as case-conversion])
(case-conversion/camel-case->kebab-case-map {:userId "123" :tenantId "456"}) ;; => {:user-id "123" :tenant-id "456"}
Generic case conversion utilities for API and data transformations.
This namespace provides reusable case conversion utilities that handle
transformations between different naming conventions commonly used in APIs:
- camelCase (JavaScript/JSON APIs)
- kebab-case (Clojure idioms)
- snake_case (Database/SQL)
These functions are designed to be nil-safe and handle nested data structures
where appropriate.
Usage:
(:require [wagoe.core.utils.case-conversion :as case-conversion])
(case-conversion/camel-case->kebab-case-map {:userId "123" :tenantId "456"})
;; => {:user-id "123" :tenant-id "456"}Shared PII redaction utilities used by error reporting adapters.
Shared PII redaction utilities used by error reporting adapters.
Generic type and case conversion utilities.
Generic type and case conversion utilities.
Value predicates the CLI layer validates arguments with.
It also held a second implementation of validate-with-transform, validate-cli-args, validate-request and the result accessors — the same names wagoe.core.validation defined, with a different implementation and no compiled-schema cache. Nothing outside its own tests called them (BOU-323).
Schema validation goes through wagoe.core.validation, whose validators are compiled once and cached; result shapes live in wagoe.core.validation.result.
Value predicates the CLI layer validates arguments with. It also held a second implementation of validate-with-transform, validate-cli-args, validate-request and the result accessors — the same names wagoe.core.validation defined, with a different implementation and no compiled-schema cache. Nothing outside its own tests called them (BOU-323). Schema validation goes through wagoe.core.validation, whose validators are compiled once and cached; result shapes live in wagoe.core.validation.result.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |