Fix malli + swagger

This commit is contained in:
Tommi Reiman 2020-05-16 14:08:16 +03:00
parent ddf56624b7
commit 39aafc9029
2 changed files with 5 additions and 1 deletions

View file

@ -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:

View file

@ -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}]))