Skip to content

Commit

Permalink
fix #36, bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Mar 31, 2015
1 parent 6e44667 commit 2c9e529
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.19.3 (31.3.2015)

- `:resourcePath` is now set correctly with Swagger 1.2 endpoints (fixes [#36](https://github.com/metosin/ring-swagger/issues/36).

## 0.19.2 (31.3.2015)

- avoid reflection with regexps, thanks to [Michael Blume](https://github.com/MichaelBlume)
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject metosin/ring-swagger "0.19.2"
(defproject metosin/ring-swagger "0.19.3"
:description "Swagger Spec for Ring Apps"
:url "https://github.com/metosin/ring-swagger"
:license {:name "Eclipse Public License"
Expand Down
2 changes: 1 addition & 1 deletion src/ring/swagger/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
resource-defaults
(select-keys parameters [:apiVersion :produces :consumes])
{:basePath basepath
:resourcePath "/"
:resourcePath (str "/" api)
:models (transform-models (extract-models details))
:apis (for [{:keys [method uri metadata] :as route} (:routes details)
:let [{:keys [return summary notes nickname parameters
Expand Down
6 changes: 3 additions & 3 deletions test/ring/swagger/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
=> {:swaggerVersion "1.2"
:apiVersion "0.0.1"
:basePath ..basepath..
:resourcePath "/"
:resourcePath (str "/" ..api..)
:produces ["application/json"]
:consumes ["application/json"]
:models {}
Expand Down Expand Up @@ -462,7 +462,7 @@
=> {:swaggerVersion "1.2"
:apiVersion ..version..
:basePath ..basepath..
:resourcePath "/"
:resourcePath (str "/" ..api..)
:produces ["application/json"
"application/xml"]
:consumes ["application/json"
Expand Down Expand Up @@ -520,7 +520,7 @@
=> {:swaggerVersion "1.2"
:apiVersion "0.0.1"
:basePath ..basepath..
:resourcePath "/"
:resourcePath (str "/" ..api..)
:produces ["application/json"]
:consumes ["application/json"]
:models {}
Expand Down

0 comments on commit 2c9e529

Please sign in to comment.