mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
dead code, CHANGELOG
This commit is contained in:
parent
20b7cabed7
commit
020c424b4e
2 changed files with 4 additions and 18 deletions
|
|
@ -27,6 +27,10 @@ We use [Break Versioning][breakver]. The version numbers follow a `<major>.<mino
|
||||||
[io.pedestal/pedestal.service "0.5.9"] is available but we use "0.5.8"
|
[io.pedestal/pedestal.service "0.5.9"] is available but we use "0.5.8"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `reitit-malli`
|
||||||
|
|
||||||
|
* FIX: Malli response coercision seems to do nothing at all [#498](https://github.com/metosin/reitit/pull/501)
|
||||||
|
|
||||||
## 0.5.13 (2021-04-23)
|
## 0.5.13 (2021-04-23)
|
||||||
|
|
||||||
* updated deps:
|
* updated deps:
|
||||||
|
|
|
||||||
|
|
@ -207,24 +207,6 @@
|
||||||
(let [{:keys [status]} (app invalid-request2)]
|
(let [{:keys [status]} (app invalid-request2)]
|
||||||
(is (= 500 status))))))))
|
(is (= 500 status))))))))
|
||||||
|
|
||||||
(let [app (ring/ring-handler
|
|
||||||
(ring/router
|
|
||||||
["/plus" {:get {:parameters {:query [:map [:x :int]]}
|
|
||||||
:responses {200 {:body [:map
|
|
||||||
[:total [:int {:encode/json str
|
|
||||||
:min 0}]]]}}
|
|
||||||
:handler (fn [{{{:keys [x]} :query} :parameters}]
|
|
||||||
{:status 200
|
|
||||||
:body {:total (* x x)}})}}]
|
|
||||||
{:data {:middleware [rrc/coerce-request-middleware
|
|
||||||
rrc/coerce-response-middleware]
|
|
||||||
:coercion malli/coercion}}))]
|
|
||||||
(app {:uri "/plus"
|
|
||||||
:request-method :get
|
|
||||||
:muuntaja/request {:format "application/json"}
|
|
||||||
:muuntaja/response {:format "application/json"}
|
|
||||||
:query-params {"x" "2"}}))
|
|
||||||
|
|
||||||
(deftest malli-coercion-test
|
(deftest malli-coercion-test
|
||||||
(let [create (fn [middleware]
|
(let [create (fn [middleware]
|
||||||
(ring/ring-handler
|
(ring/ring-handler
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue