You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,16 @@
2
2
3
3
- added destructuring for `:headers`, thanks to [tchagnon](https://github.com/tchagnon)!
4
4
-`: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.
6
6
-`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.
7
7
8
8
```clojure
9
-
; all meta-data
10
9
(context*"/api/:kikka" []
11
10
:summary"summary inherited from context"
12
11
:path-params [kikka :- s/Str] ; enforced here at runtime
13
12
:query-params [kukka :- s/Str] ; enforced here at runtime
14
13
(GET*"/:kakka" []
15
-
:path-params [kakka :- s/Str] ; enforced here
14
+
:path-params [kakka :- s/Str] ; enforced here at runtime
0 commit comments