Skip to content

Commit 552315c

Browse files
committed
Update ring-swagger & changelog
1 parent 7fb7a06 commit 552315c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
* Swagger-routes mounted via api-options are mounted before other routes, fixes [#218](https://github.com/metosin/compojure-api/issues/218)
44
* Routes are now resolved also from from Vars, fixes [#219](https://github.com/metosin/compojure-api/issues/219)
5+
* Better handling of `:basePath` with `swagger-routes`, thanks to [Hoxu](https://github.com/hoxu).
6+
* Updated dependencies:
7+
8+
```clj
9+
[metosin/ring-swagger "0.22.4"] is available but we use "0.22.3"
10+
```
511

612
## 1.0.0-RC1 (2.2.2016)
713

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[org.tobereplaced/lettercase "1.0.0"]
1414
[frankiesardo/linked "1.2.6"]
1515
[metosin/ring-http-response "0.6.5"]
16-
[metosin/ring-swagger "0.22.3"]
16+
[metosin/ring-swagger "0.22.4"]
1717
[metosin/schema-tools "0.7.0"]
1818
[ring-middleware-format "0.7.0"]
1919
[metosin/ring-swagger-ui "2.1.4-0"]]

test/compojure/api/sweet_test.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@
188188
"habanero"]
189189
:type "string"}
190190
:type "array"}}
191-
:required ["id" "name" "toppings"]}
191+
:required ["id" "name" "toppings"]
192+
:additionalProperties false}
192193
:NewBand {:type "object"
193194
:properties {:description {:type "string"}
194195
:name {:type "string"}
@@ -199,7 +200,8 @@
199200
"habanero"]
200201
:type "string"}
201202
:type "array"}}
202-
:required ["name" "toppings"]}}}
203+
:required ["name" "toppings"]
204+
:additionalProperties false}}}
203205

204206
(fact "spec is valid"
205207
(v/validate spec) => nil))))

0 commit comments

Comments
 (0)