Skip to content

Commit

Permalink
fix msg
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Apr 22, 2024
1 parent 2529df3 commit 1025b1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compojure/api/swagger.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
(swagger2/transform-operations routes/non-nil-routes swagger))

(defn swagger-ui [options]
(assert (map? options) "Since 1.2.0, compojure.api.swagger/swagger-ui takes just one map as argument, with `:path` for the path.")
(assert (map? options) "Since 1.1.11, compojure.api.swagger/swagger-ui takes just one map as argument, with `:path` for the path.")
(c/undocumented
(swagger-ui/swagger-ui options)))

(defn swagger-docs [{:keys [path] :or {path "/swagger.json"} :as options}]
(assert (map? options) "Since 1.2.0, compojure.api.swagger/swagger-docs takes just one map as argument, with `:path` for the path.")
(assert (map? options) "Since 1.1.11, compojure.api.swagger/swagger-docs takes just one map as argument, with `:path` for the path.")
(let [extra-info (dissoc options :path)]
(c/GET path request
:no-doc true
Expand Down

0 comments on commit 1025b1a

Please sign in to comment.