diff --git a/CHANGELOG.md b/CHANGELOG.md index 234d5f3d..2ef4292b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ We use [Break Versioning][breakver]. The version numbers follow a `.schema] [[#'malli/coercion (fn [nom] [:map [nom [:string {:description (str "description " nom)}]]])] - [#'schema/coercion (fn [nom] {nom s/Str})] + [#'schema/coercion (fn [nom] {nom (schema-tools.core/schema s/Str + {:description (str "description " nom)})})] [#'spec/coercion (fn [nom] {nom (st/spec {:spec string? :description (str "description " nom)})})]]] (testing coercion @@ -396,30 +397,22 @@ (is (match? [{:in "query" :name "q" :required true - :description (if (not= #'schema/coercion coercion) - "description :q" - "") + :description "description :q" :schema {:type "string"}} {:in "header" :name "h" :required true - :description (if (not= #'schema/coercion coercion) - "description :h" - "") + :description "description :h" :schema {:type "string"}} {:in "cookie" :name "c" :required true - :description (if (not= #'schema/coercion coercion) - "description :c" - "") + :description "description :c" :schema {:type "string"}} {:in "path" :name "p" :required true - :description (if (not= #'schema/coercion coercion) - "description :p" - "") + :description "description :p" :schema {:type "string"}}] (-> spec (get-in [:paths "/parameters" :post :parameters])