Просмотр исходного кода

fix(rules): load rules from config file failed

Shawn 4 лет назад
Родитель
Сommit
c3effca553
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      apps/emqx_rule_engine/src/emqx_rule_engine_api.erl

+ 1 - 3
apps/emqx_rule_engine/src/emqx_rule_engine_api.erl

@@ -144,6 +144,7 @@ put_req_schema() ->
                 oneOf => [
                     #{
                         type => string,
+                        example => <<"channel_id_of_my_bridge">>,
                         description => <<"The channel id of an emqx bridge">>
                     },
                     #{
@@ -152,9 +153,6 @@ put_req_schema() ->
                             function => #{
                                 type => string,
                                 example => <<"console">>
-                            },
-                            args => #{
-                                type => object
                             }
                         }
                     }