Skip to content

Commit 10d37e1

Browse files
committed
clear changelog
1 parent 4aef6bf commit 10d37e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
- added destructuring for `:headers`, thanks to [tchagnon](https://github.com/tchagnon)!
44
- `:path-param` allows any keywords, needed for the partial parameter matching with `context*`
5-
- **BREAKING**: parameters are collected in (Ring-)Swagger 2.0 format, might break client-side restructurings. see https://github.com/metosin/ring-swagger/blob/master/test/ring/swagger/swagger2_test.clj & https://github.com/metosin/compojure-api/blob/master/src/compojure/api/meta.clj for examples of the new models
5+
- **BREAKING**: parameters are collected in (Ring-)Swagger 2.0 format, might break client-side `compojure.api.meta/restructure-param` dispatch functions - for the swagger documentation part. see https://github.com/metosin/ring-swagger/blob/master/test/ring/swagger/swagger2_test.clj & https://github.com/metosin/compojure-api/blob/master/src/compojure/api/meta.clj for examples of the new schemas.
66
- `context*` to allow setting meta-data to mid-routes. Mid-route meta-data are deep-merged into endpoint swagger-definitions at compile-time. At runtime, code is executed in place.
77

88
```clojure
9-
; all meta-data
109
(context* "/api/:kikka" []
1110
:summary "summary inherited from context"
1211
:path-params [kikka :- s/Str] ; enforced here at runtime
1312
:query-params [kukka :- s/Str] ; enforced here at runtime
1413
(GET* "/:kakka" []
15-
:path-params [kakka :- s/Str] ; enforced here
14+
:path-params [kakka :- s/Str] ; enforced here at runtime
1615
(ok {:kikka kikka
1716
:kukka kukka
1817
:kakka kakka})))

0 commit comments

Comments
 (0)