mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Fix malli + swagger
This commit is contained in:
parent
ddf56624b7
commit
39aafc9029
2 changed files with 5 additions and 1 deletions
|
|
@ -67,6 +67,10 @@ is called the first time, so that `rfe/push-state` and such can be called
|
|||
|
||||
* lots of bug fixes, see [spec-tools changelog](https://github.com/metosin/spec-tools/blob/master/CHANGELOG.md#0102-2020-05-05)
|
||||
|
||||
### `reitit-malli`
|
||||
|
||||
* Swagger body-parameters don't use empty default, fixes [#399](https://github.com/metosin/reitit/issues/399)
|
||||
|
||||
### `reitit-sieppari`
|
||||
|
||||
* changes from Sieppari:
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
(defmethod extract-parameter :body [_ schema options]
|
||||
(let [swagger-schema (swagger/transform schema (merge options {:in :body, :type :parameter}))]
|
||||
[{:in "body"
|
||||
:name (:title swagger-schema "")
|
||||
:name (:title swagger-schema "body")
|
||||
:description (:description swagger-schema "")
|
||||
:required (not= :maybe (m/name schema))
|
||||
:schema swagger-schema}]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue