Bläddra i källkod

fix(rules): load rules from config file failed

Shawn 4 år sedan
förälder
incheckning
c3effca553
1 ändrade filer med 1 tillägg och 3 borttagningar
  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
                             }
                         }
                     }