From 0cfe5b4ea5cf7cb031d32d0c39c2fafbdf7c95c3 Mon Sep 17 00:00:00 2001 From: tjalkane <1162417+Koura@users.noreply.github.com> Date: Wed, 24 Jun 2020 23:11:23 +0300 Subject: [PATCH] Replace top-level `:tags` with `[:swagger :tags]` path in documentation --- modules/reitit-swagger/src/reitit/swagger.cljc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/reitit-swagger/src/reitit/swagger.cljc b/modules/reitit-swagger/src/reitit/swagger.cljc index fb0c0742..998457ac 100644 --- a/modules/reitit-swagger/src/reitit/swagger.cljc +++ b/modules/reitit-swagger/src/reitit/swagger.cljc @@ -29,7 +29,6 @@ | --------------|-------------| | :swagger | map of any swagger-data. Must have `:id` (keyword or sequence of keywords) to identify the api | :no-doc | optional boolean to exclude endpoint from api docs - | :tags | optional set of string or keyword tags for an endpoint api docs | :summary | optional short string summary of an endpoint | :description | optional long description of an endpoint. Supports http://spec.commonmark.org/ @@ -52,7 +51,7 @@ :handler reitit.swagger/swagger-spec-handler}}] [\"/plus\" - {:get {:tags #{:math} + {:get {:swagger {:tags \"math\"} :summary \"adds numbers together\" :description \"takes `x` and `y` query-params and adds them together\" :parameters {:query {:x int?, :y int?}}