Skip to content

Commit 80b524b

Browse files
committed
update resource :coercion doc to 2.x representation
1 parent 52619f4 commit 80b524b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compojure/api/resource.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@
154154
Top-level mw are applied first if route matches, method-level
155155
mw are applied next if method matches
156156
157-
- **:coercion** A function from request->type->coercion-matcher, used
157+
- **:coercion** A named coercion or instance of Coercion
158158
in resource coercion for :body, :string and :response.
159-
Setting value to `(constantly nil)` disables both request- &
159+
Setting value to `nil` disables both request- &
160160
response coercion. See tests and wiki for details.
161161
162162
Enhancements to ring-swagger operations map:

0 commit comments

Comments
 (0)