diff --git a/doc/ring/openapi.md b/doc/ring/openapi.md index 7515b933..b2288575 100644 --- a/doc/ring/openapi.md +++ b/doc/ring/openapi.md @@ -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?}}}}}] diff --git a/examples/openapi/src/example/server.clj b/examples/openapi/src/example/server.clj index 83e3a6b0..6c4ae3e7 100644 --- a/examples/openapi/src/example/server.clj +++ b/examples/openapi/src/example/server.clj @@ -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?]]}