mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
doc: deprecated openapi parameters in docs & example
This commit is contained in:
parent
9534f6df8b
commit
3c6139950c
2 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ Malli:
|
|||
[:x
|
||||
{:title "X parameter"
|
||||
:description "Description for X parameter"
|
||||
:json-schema/deprecated true
|
||||
:json-schema/default 42}
|
||||
int?]
|
||||
[:y int?]]}}}]
|
||||
|
|
@ -151,6 +152,7 @@ Schema:
|
|||
{:post
|
||||
{:parameters
|
||||
{:body {:x (schema-tools.core/schema s/Num {:description "Description for X parameter"
|
||||
:openapi/deprecated true
|
||||
:openapi/example 13
|
||||
:openapi/default 42})
|
||||
:y int?}}}}]
|
||||
|
|
@ -165,6 +167,7 @@ Spec:
|
|||
{:body (spec-tools.data-spec/spec ::foo
|
||||
{:x (schema-tools.core/spec {:spec int?
|
||||
:description "Description for X parameter"
|
||||
:openapi/deprecated true
|
||||
:openapi/example 13
|
||||
:openapi/default 42})
|
||||
:y int?}}}}}]
|
||||
|
|
|
|||
|
|
@ -97,6 +97,10 @@
|
|||
:json-schema/default 30
|
||||
:json-schema/example 10}
|
||||
int?]
|
||||
[:charset {:title "Which charset to use?"
|
||||
:optional true
|
||||
:json-schema/deprecated true}
|
||||
string?]
|
||||
[:email {:title "Email address to search for"
|
||||
:json-schema/format "email"}
|
||||
string?]]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue