mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
bc6057b7c5
commit
276b2c837c
1 changed files with 19 additions and 0 deletions
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -32,6 +32,25 @@ We use [Break Versioning][breakver]. The version numbers follow a `<major>.<mino
|
|||
* new options `:reitit.spec/wrap` to wrap top-level route data specs when spec validation is enabled. Using `spec-tools.spell/closed` closes top-level specs.
|
||||
* Updated swagger-examples to easily enable closed spec validation
|
||||
|
||||
```clj
|
||||
(require '[reitit.core :as r])
|
||||
(require '[reitit.spec :as rs])
|
||||
(require '[reitit.dev.pretty :as pretty)
|
||||
(require '[spec-tools.spell :as spell])
|
||||
(require '[clojure.spec.alpha :as s])
|
||||
|
||||
(s/def ::description string?)
|
||||
|
||||
(r/router
|
||||
["/api" {:summary "kikka"}]
|
||||
{:validate rs/validate
|
||||
:spec (s/merge ::rs/default-data (s/keys :req-un [::description]))
|
||||
::rs/wrap spell/closed
|
||||
:exception pretty/exception})
|
||||
```
|
||||
|
||||

|
||||
|
||||
### `reitit-frontend`
|
||||
|
||||
* add support for html5 links inside Shadow DOM by [Antti Leppänen](https://github.com/fraxu).
|
||||
|
|
|
|||
Loading…
Reference in a new issue