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"}Ids for new app migrations.
Apps and framework libraries share one schema_migrations id space, and
framework ids end in an odd second (test/wagoe/migration_ids_test.clj). So
an app id ends in an even one and never collides with a framework id.
Ids for new app migrations. Apps and framework libraries share one `schema_migrations` id space, and framework ids end in an odd second (test/wagoe/migration_ids_test.clj). So an app id ends in an even one and never collides with a framework id.
Shared PII redaction utilities used by error reporting adapters.
Shared PII redaction utilities used by error reporting adapters.
Is a user-supplied redirect target a path on this site? Shared by every
return-to, so the rule is written once (BOU-553).
Is a user-supplied redirect target a path on this site? Shared by every `return-to`, so the rule is written once (BOU-553).
Case conversion that gives the same answer on every JVM.
clojure.string/lower-case and upper-case use the JVM's default locale, so on
tr-TR I lowers to a dotless ı and i uppers to a dotted İ. Keys,
headers, emails and SQL names must not change with the server's locale.
Case conversion that gives the same answer on every JVM. clojure.string/lower-case and upper-case use the JVM's default locale, so on tr-TR `I` lowers to a dotless `ı` and `i` uppers to a dotted `İ`. Keys, headers, emails and SQL names must not change with the server's locale.
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 |