Quellcode durchsuchen

fix(rules): load rules from config file failed

Shawn vor 4 Jahren
Ursprung
Commit
c3effca553
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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 => [
                 oneOf => [
                     #{
                     #{
                         type => string,
                         type => string,
+                        example => <<"channel_id_of_my_bridge">>,
                         description => <<"The channel id of an emqx bridge">>
                         description => <<"The channel id of an emqx bridge">>
                     },
                     },
                     #{
                     #{
@@ -152,9 +153,6 @@ put_req_schema() ->
                             function => #{
                             function => #{
                                 type => string,
                                 type => string,
                                 example => <<"console">>
                                 example => <<"console">>
-                            },
-                            args => #{
-                                type => object
                             }
                             }
                         }
                         }
                     }
                     }