Skip to content

Commit 15e1cb8

Browse files
committed
fixup! fixup! set to 2.x
1 parent 5848b54 commit 15e1cb8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ merged with the internal registry at coerce time.
4444

4545
```clj
4646
(s/def ::foo keyword?)
47-
(c/coerce ::foo "bar" {::c/idents {::foo (fn [x opts] (str "keyword:" x))}}) -> "keyword:bar"
47+
(c/coerce ::foo "bar" {:idents {::foo (fn [x opts] (str "keyword:" x))}}) -> "keyword:bar"
4848
```
4949

5050
Coercers are functions of 2 args, the value, and the options coerce
@@ -60,7 +60,7 @@ The typical example would be :
6060
```clj
6161
(s/def ::foo (s/coll-of keyword?))
6262
;; we'll namespace all keywords in that coll-of
63-
(c/coerce ::foo ["a" "b"] {::c/idents {`keyword? (fn [x opts] (keyword "foo" x)})}) -> [foo/a foo/b]
63+
(c/coerce ::foo ["a" "b"] {:idents {`keyword? (fn [x opts] (keyword "foo" x))}}) -> [foo/a foo/b]
6464
```
6565

6666
You can specify multiple overrides per coerce call.
@@ -72,7 +72,7 @@ easily for instance generate open-api definitions using these.
7272

7373
```clj
7474
(c/coerce ::foo (s/coll-of keyword?)
75-
{::c/forms {`s/coll-of (fn [[_ spec]] (fn [x opts] (do-something-crazy-with-spec+the-value spec x opts)))}})
75+
{:forms {`s/coll-of (fn [[_ spec]] (fn [x opts] (do-something-crazy-with-spec+the-value spec x opts)))}})
7676
```
7777

7878
### Closed maps

test/exoscale/coax_test.cljc

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
:unqualified 12
294294
:sub {::infer-int 42}}))
295295
(is (= (sc/coerce-structure {::or-example "321"}
296-
{::sc/op sc/conform})
296+
{:op sc/conform})
297297
{::or-example [:int 321]}))
298298

299299
(defrecord SomeRec [a])
@@ -430,7 +430,7 @@
430430
(is (= {::x :y/quux}
431431
(sc/coerce ::mm
432432
{::x "quux"}
433-
{::sc/cache? false}))))
433+
{:cache? false}))))
434434

435435
(def d :kw)
436436
;; no vars in cljs

0 commit comments

Comments
 (0)