Skip to content

Commit 2a8c4db

Browse files
committed
update :coercion doc
1 parent b10a068 commit 2a8c4db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compojure/api/middleware.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@
308308
- **:ring-swagger** options for ring-swagger's swagger-json method.
309309
e.g. `{:ignore-missing-mappings? true}`
310310
311-
- **:coercion** A function from request->type->coercion-matcher, used
311+
- **:coercion** Either an instance of Coercion or a keyword naming it, or a
312+
function from request->type->coercion-matcher, used
312313
in endpoint coercion for types :body, :string and :response.
313-
Defaults to `compojure.api.middleware/default-coercion`
314+
Defaults to `compojure.api.coercion/default-coercion`
314315
Setting value to nil disables all coercion.
315316
316317
- **:components** Components which should be accessible to handlers using

0 commit comments

Comments
 (0)