We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31a1c70 + 9d814d4 commit 8d8d7e4Copy full SHA for 8d8d7e4
src/compojure/api/middleware.clj
@@ -76,7 +76,7 @@
76
(assoc-in [:meta :produces] (map mime-types response-formats))
77
handler)))
78
79
-(defn handle-req-error [e handler req]
+(defn handle-req-error [^Throwable e handler req]
80
(cond
81
(instance? JsonParseException e)
82
(bad-request {:type "json-parse-exception"
src/compojure/api/swagger.clj
@@ -94,7 +94,7 @@
94
(defn strip-trailing-spaces [s] (st/replace-first s #"(.)\/+$" "$1"))
95
96
(defn create-api-route [[ks v]]
97
- [{:method (keyword (.getName (first (keep second ks))))
+ [{:method (keyword (name (first (keep second ks))))
98
:uri (->> ks (map first) (map remove-param-regexes) st/join strip-trailing-spaces)} v])
99
100
(defn extract-method [body]
0 commit comments