mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
feat: avoid duplicated :description for openapi parameters
This commit is contained in:
parent
a390180975
commit
9534f6df8b
2 changed files with 5 additions and 9 deletions
|
|
@ -110,9 +110,8 @@
|
|||
(merge {:in (name in)
|
||||
:name k
|
||||
:required (required? k)
|
||||
:schema (dissoc schema :deprecated)}
|
||||
(select-keys schema [:description])
|
||||
(when (:deprecated schema) {:deprecated true})))
|
||||
:schema (dissoc schema :description :deprecated)}
|
||||
(select-keys schema [:description :deprecated])))
|
||||
(into []))})
|
||||
(when body
|
||||
;; :body uses a single schema to describe every :requestBody
|
||||
|
|
|
|||
|
|
@ -171,8 +171,7 @@
|
|||
:deprecated true
|
||||
:required true
|
||||
:schema {:type "integer"
|
||||
:format "int64"
|
||||
:description "this is deprecated"}}
|
||||
:format "int64"}}
|
||||
{:in "path"
|
||||
:name "z"
|
||||
:required true
|
||||
|
|
@ -221,8 +220,7 @@
|
|||
:required true
|
||||
:description "this is deprecated"
|
||||
:deprecated true
|
||||
:schema {:type "integer"
|
||||
:description "this is deprecated"}}
|
||||
:schema {:type "integer"}}
|
||||
{:in "path"
|
||||
:name :z
|
||||
:required true
|
||||
|
|
@ -269,8 +267,7 @@
|
|||
:description "this is deprecated"
|
||||
:deprecated true
|
||||
:schema {:type "integer"
|
||||
:format "int32"
|
||||
:description "this is deprecated"}}
|
||||
:format "int32"}}
|
||||
{:in "path"
|
||||
:name "z"
|
||||
:required true
|
||||
|
|
|
|||
Loading…
Reference in a new issue