File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- ## 0.16.0 (x .9.2014)
1
+ ## 0.16.0 (10 .9.2014)
2
2
3
3
- Some cleaning
4
4
- Requires now clojure 1.6.0 for ` clojure.walk `
5
5
- Support other formats in addition to JSON
6
- - Uses now the [ ring-middleware-format] ( https://github.com/ngrunwald/ring-middleware-format ) to parse requests and encode responses
6
+ - Uses the [ ring-middleware-format] ( https://github.com/ngrunwald/ring-middleware-format ) to parse requests and encode responses
7
+ - Fixes #43 : Middlewares added to route with : middlewares shouldn't leak to other routes in same context anymore
7
8
8
9
## 0.15.2 (4.9.2014)
9
10
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ There is also `defapi` as a short form for the common case of defining routes wi
155
155
Middlewares (and other handlers) can publish their capabilities to consume & produce different wire-formats.
156
156
This information is passed to ` ring-swagger ` and added to swagger-docs & is available in the swagger-ui.
157
157
158
- The default middleware on Compojure-API includes [ ring-middleware-format] ( https://github.com/ngrunwald/ring-middleware-format )
158
+ The default middlewares on Compojure-API includes [ ring-middleware-format] ( https://github.com/ngrunwald/ring-middleware-format )
159
159
which supports multiple formats. If the first element of ` defapi ` body is a map it will be used to pass parameters to
160
160
` api-middleware ` , e.g. the formats which should be enabled.
161
161
Original file line number Diff line number Diff line change 1
- (defproject metosin /compojure-api " 0.15.2 "
1
+ (defproject metosin /compojure-api " 0.16.0 "
2
2
:description " Compojure Api"
3
3
:url " https://github.com/metosin/compojure-api"
4
4
:license {:name " Eclipse Public License"
9
9
[prismatic/plumbing " 0.3.3" ]
10
10
[potemkin " 0.3.8" ]
11
11
[cheshire " 5.3.1" ]
12
- [compojure " 1.1.8 " ]
12
+ [compojure " 1.1.9 " ]
13
13
[prismatic/schema " 0.2.6" ]
14
14
[metosin/ring-http-response " 0.5.0" ]
15
15
[metosin/ring-swagger " 0.13.0" ]
Original file line number Diff line number Diff line change 62
62
63
63
(defn serializable?
64
64
" Predicate which return true if the response body is serializable.
65
- That is, return type is set by :return compojure-api key or it's not
66
- string, File or InputStream ."
65
+ That is, return type is set by :return compojure-api key or it's
66
+ a collection ."
67
67
[_ {:keys [body] :as response}]
68
68
(when response
69
69
(or (:compojure.api.meta/serializable? response)
You can’t perform that action at this time.
0 commit comments