From 81dfe45b72e24c18fbda4c4ca10a46dcfcb43761 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Fri, 18 Aug 2023 15:17:01 +0300 Subject: [PATCH] fix example --- doc/ring/coercion.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ring/coercion.md b/doc/ring/coercion.md index 5ba6a70e..32f51e68 100644 --- a/doc/ring/coercion.md +++ b/doc/ring/coercion.md @@ -160,12 +160,12 @@ You can also specify request and response body schemas per content-type. The syn (ring/router ["/api" ["/example" {:post {:coercion reitit.coercion.schema/coercion - :request {:content {"application/json" {:y s/Int} - "application/edn" {:z s/Int}} + :request {:content {"application/json" {:schema {:y s/Int}} + "application/edn" {:schema {:z s/Int}}} ;; default if no content-type matches: :body {:yy s/Int}} - :responses {200 {:content {"application/json" {:w s/Int} - "application/edn" {:x s/Int}} + :responses {200 {:content {"application/json" {:schema {:w s/Int}} + "application/edn" {:schema {:x s/Int}}} ;; default if no content-type matches: :body {:ww s/Int}}} :handler ...}}]]