ring-swagger & compojure-api
ben 2019-02-11T15:16:44.002300Z

Is the Compojure wiki up-to-date? I’ve just tried testing the following destructuring example and it doesn’t return what I expected:

(compojure/GET "/test" [item] 
  (str "<h1>You don't win friends with" item "!</h1>"))

;; Expected
$ curl <http://localhost:3000/test?item=salad>
&lt;h1&gt;You don't win friends with salad!&lt;/h1&gt;

;; Observed
$ curl <http://localhost:3000/test?item=salad>
&lt;h1&gt;You don't win friends with !&lt;/h1&gt;
(from https://github.com/weavejester/compojure/wiki/Destructuring-Syntax)

ben 2019-02-11T15:17:08.002600Z

(LMK if this is the wrong place to ask this)