diff --git a/apps/emqx_authn/src/emqx_authn_schema.erl b/apps/emqx_authn/src/emqx_authn_schema.erl index c2e963ec4..7ec318803 100644 --- a/apps/emqx_authn/src/emqx_authn_schema.erl +++ b/apps/emqx_authn/src/emqx_authn_schema.erl @@ -50,8 +50,7 @@ config_refs(Modules) -> %% in emqx_schema, 'authentication' is a map() type which is to allow %% EMQ X more plugable. root_type() -> - T = authenticator_type(), - hoconsc:union([T, hoconsc:array(T)]). + hoconsc:array(authenticator_type()). mechanism(Name) -> hoconsc:mk(hoconsc:enum([Name]), diff --git a/apps/emqx_connector/src/emqx_connector_http.erl b/apps/emqx_connector/src/emqx_connector_http.erl index bae4e334b..0249d51b1 100644 --- a/apps/emqx_connector/src/emqx_connector_http.erl +++ b/apps/emqx_connector/src/emqx_connector_http.erl @@ -36,7 +36,9 @@ -export([ roots/0 , fields/1 - , validations/0]). + , validations/0 + , namespace/0 + ]). -export([ check_ssl_opts/2 ]). @@ -50,6 +52,9 @@ %%===================================================================== %% Hocon schema + +namespace() -> "connector-http". + roots() -> fields(config).