Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 圆环摆动器中的查询参数描述_Clojure_Swagger_Compojure Api - Fatal编程技术网

Clojure 圆环摆动器中的查询参数描述

Clojure 圆环摆动器中的查询参数描述,clojure,swagger,compojure-api,Clojure,Swagger,Compojure Api,我通过compojure api使用ring swagger。我有几个查询参数,我正在努力找到一种方法来为单个查询参数添加描述。我可以添加整个端点的摘要,但这还不够 是否可以使用ring swagger/compojure api向单个查询参数添加一个swagger描述?compojure.api.sweet/description 例如: (GET "/hello" [] :query-params [name :- (describe String "This is the swagge

我通过compojure api使用ring swagger。我有几个查询参数,我正在努力找到一种方法来为单个查询参数添加描述。我可以添加整个端点的摘要,但这还不够


是否可以使用ring swagger/compojure api向单个查询参数添加一个swagger描述?

compojure.api.sweet/description

例如:

(GET "/hello" []
  :query-params [name :- (describe String "This is the swagger description for the parameter")]
  (ok {:message (str "Hello, " name)}))

请在您的问题中添加您已经尝试过的内容以及为什么不起作用。