diff --git a/CHANGELOG.md b/CHANGELOG.md index abba442f..3cf81b62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ * Swagger-routes mounted via api-options are mounted before other routes, fixes [#218](https://github.com/metosin/compojure-api/issues/218) * Routes are now resolved also from from Vars, fixes [#219](https://github.com/metosin/compojure-api/issues/219) +* Better handling of `:basePath` with `swagger-routes`, thanks to [Hoxu](https://github.com/hoxu). +* Updated dependencies: + +```clj +[metosin/ring-swagger "0.22.4"] is available but we use "0.22.3" +``` ## 1.0.0-RC1 (2.2.2016) diff --git a/project.clj b/project.clj index cb0fb34d..7417b7b4 100644 --- a/project.clj +++ b/project.clj @@ -13,7 +13,7 @@ [org.tobereplaced/lettercase "1.0.0"] [frankiesardo/linked "1.2.6"] [metosin/ring-http-response "0.6.5"] - [metosin/ring-swagger "0.22.3"] + [metosin/ring-swagger "0.22.4"] [metosin/schema-tools "0.7.0"] [ring-middleware-format "0.7.0"] [metosin/ring-swagger-ui "2.1.4-0"]] diff --git a/test/compojure/api/sweet_test.clj b/test/compojure/api/sweet_test.clj index 78aaa5f5..d371fd8b 100644 --- a/test/compojure/api/sweet_test.clj +++ b/test/compojure/api/sweet_test.clj @@ -188,7 +188,8 @@ "habanero"] :type "string"} :type "array"}} - :required ["id" "name" "toppings"]} + :required ["id" "name" "toppings"] + :additionalProperties false} :NewBand {:type "object" :properties {:description {:type "string"} :name {:type "string"} @@ -199,7 +200,8 @@ "habanero"] :type "string"} :type "array"}} - :required ["name" "toppings"]}}} + :required ["name" "toppings"] + :additionalProperties false}}} (fact "spec is valid" (v/validate spec) => nil))))