mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 00:41:12 +00:00
test: add description and deprecated to openapi-test
This commit is contained in:
parent
f1e3ed88ea
commit
a390180975
1 changed files with 19 additions and 6 deletions
|
|
@ -47,7 +47,9 @@
|
||||||
["/plus/:z"
|
["/plus/:z"
|
||||||
{:get {:summary "plus"
|
{:get {:summary "plus"
|
||||||
:tags [:plus :spec]
|
:tags [:plus :spec]
|
||||||
:parameters {:query {:x int?, :y int?}
|
:parameters {:query {:x int?, :y (st/spec {:spec int?
|
||||||
|
:description "this is deprecated"
|
||||||
|
:openapi/deprecated true})}
|
||||||
:path {:z int?}}
|
:path {:z int?}}
|
||||||
:openapi {:operationId "spec-plus"
|
:openapi {:operationId "spec-plus"
|
||||||
:deprecated true
|
:deprecated true
|
||||||
|
|
@ -78,7 +80,8 @@
|
||||||
["/plus/*z"
|
["/plus/*z"
|
||||||
{:get {:summary "plus"
|
{:get {:summary "plus"
|
||||||
:tags [:plus :malli]
|
:tags [:plus :malli]
|
||||||
:parameters {:query [:map [:x int?] [:y int?]]
|
:parameters {:query [:map [:x int?] [:y {:json-schema/deprecated true
|
||||||
|
:description "this is deprecated"} int?]]
|
||||||
:path [:map [:z int?]]}
|
:path [:map [:z int?]]}
|
||||||
:openapi {:responses {400 {:description "kosh"
|
:openapi {:responses {400 {:description "kosh"
|
||||||
:content {"application/json" {:schema {:type "string"}}}}}}
|
:content {"application/json" {:schema {:type "string"}}}}}}
|
||||||
|
|
@ -107,7 +110,8 @@
|
||||||
["/plus/*z"
|
["/plus/*z"
|
||||||
{:get {:summary "plus"
|
{:get {:summary "plus"
|
||||||
:tags [:plus :schema]
|
:tags [:plus :schema]
|
||||||
:parameters {:query {:x s/Int, :y s/Int}
|
:parameters {:query {:x s/Int, :y (schema-tools.core/schema s/Int {:description "this is deprecated"
|
||||||
|
:openapi/deprecated true})}
|
||||||
:path {:z s/Int}}
|
:path {:z s/Int}}
|
||||||
:openapi {:responses {400 {:content {"application/json" {:schema {:type "string"}}}
|
:openapi {:responses {400 {:content {"application/json" {:schema {:type "string"}}}
|
||||||
:description "kosh"}}}
|
:description "kosh"}}}
|
||||||
|
|
@ -163,9 +167,12 @@
|
||||||
:format "int64"}}
|
:format "int64"}}
|
||||||
{:in "query"
|
{:in "query"
|
||||||
:name "y"
|
:name "y"
|
||||||
|
:description "this is deprecated"
|
||||||
|
:deprecated true
|
||||||
:required true
|
:required true
|
||||||
:schema {:type "integer"
|
:schema {:type "integer"
|
||||||
:format "int64"}}
|
:format "int64"
|
||||||
|
:description "this is deprecated"}}
|
||||||
{:in "path"
|
{:in "path"
|
||||||
:name "z"
|
:name "z"
|
||||||
:required true
|
:required true
|
||||||
|
|
@ -212,7 +219,10 @@
|
||||||
{:in "query"
|
{:in "query"
|
||||||
:name :y
|
:name :y
|
||||||
:required true
|
:required true
|
||||||
:schema {:type "integer"}}
|
:description "this is deprecated"
|
||||||
|
:deprecated true
|
||||||
|
:schema {:type "integer"
|
||||||
|
:description "this is deprecated"}}
|
||||||
{:in "path"
|
{:in "path"
|
||||||
:name :z
|
:name :z
|
||||||
:required true
|
:required true
|
||||||
|
|
@ -256,8 +266,11 @@
|
||||||
{:in "query"
|
{:in "query"
|
||||||
:name "y"
|
:name "y"
|
||||||
:required true
|
:required true
|
||||||
|
:description "this is deprecated"
|
||||||
|
:deprecated true
|
||||||
:schema {:type "integer"
|
:schema {:type "integer"
|
||||||
:format "int32"}}
|
:format "int32"
|
||||||
|
:description "this is deprecated"}}
|
||||||
{:in "path"
|
{:in "path"
|
||||||
:name "z"
|
:name "z"
|
||||||
:required true
|
:required true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue