Replace top-level :tags with [:swagger :tags] path in documentation

This commit is contained in:
tjalkane 2020-06-24 23:11:23 +03:00
parent cf45940715
commit 0cfe5b4ea5

View file

@ -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?}}