diff --git a/apps/emqx_bridge/src/schema/emqx_bridge_schema.erl b/apps/emqx_bridge/src/schema/emqx_bridge_schema.erl index 58be231e4..673dcfc16 100644 --- a/apps/emqx_bridge/src/schema/emqx_bridge_schema.erl +++ b/apps/emqx_bridge/src/schema/emqx_bridge_schema.erl @@ -53,7 +53,7 @@ api_schema(Method) -> Broker = [ {Type, ref(Mod, Method)} || {Type, Mod} <- [ - {<<"webhook">>, emqx_bridge_webhook_schema}, + {<<"webhook">>, emqx_bridge_http_schema}, {<<"mqtt">>, emqx_bridge_mqtt_schema} ] ], @@ -158,7 +158,7 @@ fields(bridges) -> [ {webhook, mk( - hoconsc:map(name, ref(emqx_bridge_webhook_schema, "config")), + hoconsc:map(name, ref(emqx_bridge_http_schema, "config")), #{ desc => ?DESC("bridges_webhook"), required => false, diff --git a/apps/emqx_bridge/src/schema/emqx_bridge_webhook_schema.erl b/apps/emqx_bridge_http/src/emqx_bridge_http_schema.erl similarity index 99% rename from apps/emqx_bridge/src/schema/emqx_bridge_webhook_schema.erl rename to apps/emqx_bridge_http/src/emqx_bridge_http_schema.erl index 0236fdca4..2e3d882d5 100644 --- a/apps/emqx_bridge/src/schema/emqx_bridge_webhook_schema.erl +++ b/apps/emqx_bridge_http/src/emqx_bridge_http_schema.erl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%-------------------------------------------------------------------- --module(emqx_bridge_webhook_schema). +-module(emqx_bridge_http_schema). -include_lib("typerefl/include/types.hrl"). -include_lib("hocon/include/hoconsc.hrl"). diff --git a/apps/emqx_bridge/test/emqx_bridge_webhook_SUITE.erl b/apps/emqx_bridge_http/test/emqx_bridge_http_SUITE.erl similarity index 99% rename from apps/emqx_bridge/test/emqx_bridge_webhook_SUITE.erl rename to apps/emqx_bridge_http/test/emqx_bridge_http_SUITE.erl index 41b611131..30a01cf6a 100644 --- a/apps/emqx_bridge/test/emqx_bridge_webhook_SUITE.erl +++ b/apps/emqx_bridge_http/test/emqx_bridge_http_SUITE.erl @@ -13,7 +13,7 @@ %% limitations under the License. %%-------------------------------------------------------------------- --module(emqx_bridge_webhook_SUITE). +-module(emqx_bridge_http_SUITE). %% This suite should contains testcases that are specific for the webhook %% bridge. There are also some test cases that implicitly tests the webhook diff --git a/rel/i18n/emqx_bridge_webhook_schema.hocon b/rel/i18n/emqx_bridge_http_schema.hocon similarity index 98% rename from rel/i18n/emqx_bridge_webhook_schema.hocon rename to rel/i18n/emqx_bridge_http_schema.hocon index 4037893bd..b7b715db1 100644 --- a/rel/i18n/emqx_bridge_webhook_schema.hocon +++ b/rel/i18n/emqx_bridge_http_schema.hocon @@ -1,4 +1,4 @@ -emqx_bridge_webhook_schema { +emqx_bridge_http_schema { config_body.desc: """The body of the HTTP request.