Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
just-sultanov committed Sep 30, 2021
1 parent 8c758a5 commit b84d084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ team.sultanov/secret-keeper {:mvn/version "RELEASE"}
;; Transformer with some options:
;; - :key - schema property key (by default ::keeper/secret)
;; - :key - schema property key (by default ::keeper/category)
;; - :secrets - schema type or map key name
(def Transformer
Expand All @@ -146,7 +146,7 @@ team.sultanov/secret-keeper {:mvn/version "RELEASE"}
[:lastname string?]
[:email string?]
[:passport string?]
[:address [:map {:category :personal}
[:address [:map {:category :personal} ; local category
[:street string?]
[:zip int?]
[:city string?]
Expand Down
6 changes: 4 additions & 2 deletions src/main/clojure/secret/keeper/malli.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

(defn transformer
"Secret transformer.
- Encoder - encodes all secrets using the specified categories.
- Decoder - decodes all secrets.
Expand All @@ -24,7 +25,7 @@
;; 1. Define your transformer
(def Transformer
(transformer
{:key :category ;; by default ::keeper/secret
{:key :category ;; by default ::keeper/category
:secrets {:passport :confidential
:password :internal-only}}))
Expand All @@ -48,7 +49,8 @@
(m/encode User <your-data> Transformer)
;; 4. Decode all secrets
(m/decode User <your-data> Transformer)"
(m/decode User <your-data> Transformer)
```"
([]
(transformer nil))
([{:keys [key secrets]
Expand Down

0 comments on commit b84d084

Please sign in to comment.