소스 검색

Merge pull request #7337 from lafirest/fix/retainer_update_api

fix(retainer): don't translate config content, keep it in raw
JianBo He 3 년 전
부모
커밋
a85b31d904
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      apps/emqx_retainer/src/emqx_retainer_api.erl

+ 4 - 4
apps/emqx_retainer/src/emqx_retainer_api.erl

@@ -38,13 +38,13 @@
 namespace() -> "retainer".
 
 api_spec() ->
-    emqx_dashboard_swagger:spec(?MODULE, #{check_schema => true, translate_body => true}).
+    emqx_dashboard_swagger:spec(?MODULE, #{check_schema => true}).
 
 paths() ->
     [?PREFIX, ?PREFIX ++ "/messages", ?PREFIX ++ "/message/:topic"].
 
 schema(?PREFIX) ->
-    #{operationId => config,
+    #{'operationId' => config,
       get => #{tags => ?TAGS,
                description => <<"Get retainer config">>,
                responses => #{200 => mk(conf_schema(), #{desc => "The config content"}),
@@ -61,7 +61,7 @@ schema(?PREFIX) ->
      };
 
 schema(?PREFIX ++ "/messages") ->
-    #{operationId => lookup_retained_warp,
+    #{'operationId' => lookup_retained_warp,
       get => #{tags => ?TAGS,
                description => <<"List retained messages">>,
                parameters => page_params(),
@@ -72,7 +72,7 @@ schema(?PREFIX ++ "/messages") ->
         };
 
 schema(?PREFIX ++ "/message/:topic") ->
-    #{operationId => with_topic_warp,
+    #{'operationId' => with_topic_warp,
       get => #{tags => ?TAGS,
                description => <<"Lookup a message by a topic without wildcards">>,
                parameters => parameters(),