From f99a76886e11ab791bf4753ec31b89baf624b97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Varela?= Date: Fri, 9 Feb 2024 11:21:31 +0200 Subject: [PATCH] Fix: fix swagger ring tests, malli keys are now strings, not keywords --- test/cljc/reitit/swagger_test.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cljc/reitit/swagger_test.clj b/test/cljc/reitit/swagger_test.clj index 40902704..0ad096c7 100644 --- a/test/cljc/reitit/swagger_test.clj +++ b/test/cljc/reitit/swagger_test.clj @@ -161,14 +161,14 @@ expected {:x-id #{::math} :swagger "2.0" :info {:title "my-api"} - :definitions {::req-key {:type "string" + :definitions {"reitit.swagger-test/req-key" {:type "string" :x-anyOf [{:type "string"} {:type "string"}]} - ::req-val {:type "object" + "reitit.swagger-test/req-val" {:type "object" :x-anyOf [{:type "object"} {:type "string"}]} - ::resp-map {:type "object"}, - ::resp-string {:type "string" + "reitit.swagger-test/resp-map" {:type "object"}, + "reitit.swagger-test/resp-string" {:type "string" :minLength 1}} :paths {"/api/spec/plus/{z}" {:patch {:parameters [] :summary "patch"