|
@@ -111,7 +111,7 @@
|
|
|
comma_separated_atoms/0
|
|
comma_separated_atoms/0
|
|
|
]).
|
|
]).
|
|
|
|
|
|
|
|
--export([namespace/0, roots/0, roots/1, fields/1, desc/1]).
|
|
|
|
|
|
|
+-export([namespace/0, roots/0, roots/1, fields/1, desc/1, tags/0]).
|
|
|
-export([conf_get/2, conf_get/3, keys/2, filter/1]).
|
|
-export([conf_get/2, conf_get/3, keys/2, filter/1]).
|
|
|
-export([server_ssl_opts_schema/2, client_ssl_opts_schema/1, ciphers_schema/1]).
|
|
-export([server_ssl_opts_schema/2, client_ssl_opts_schema/1, ciphers_schema/1]).
|
|
|
-export([sc/2, map/2]).
|
|
-export([sc/2, map/2]).
|
|
@@ -120,6 +120,9 @@
|
|
|
|
|
|
|
|
namespace() -> broker.
|
|
namespace() -> broker.
|
|
|
|
|
|
|
|
|
|
+tags() ->
|
|
|
|
|
+ [<<"EMQX">>].
|
|
|
|
|
+
|
|
|
roots() ->
|
|
roots() ->
|
|
|
%% TODO change config importance to a field metadata
|
|
%% TODO change config importance to a field metadata
|
|
|
roots(high) ++ roots(medium) ++ roots(low).
|
|
roots(high) ++ roots(medium) ++ roots(low).
|
|
@@ -2342,7 +2345,7 @@ authentication(Which) ->
|
|
|
undefined -> hoconsc:array(typerefl:map());
|
|
undefined -> hoconsc:array(typerefl:map());
|
|
|
Module -> Module:root_type()
|
|
Module -> Module:root_type()
|
|
|
end,
|
|
end,
|
|
|
- %% It is a lazy type because when handing runtime update requests
|
|
|
|
|
|
|
+ %% It is a lazy type because when handling runtime update requests
|
|
|
%% the config is not checked by emqx_schema, but by the injected schema
|
|
%% the config is not checked by emqx_schema, but by the injected schema
|
|
|
Type = hoconsc:lazy(Type0),
|
|
Type = hoconsc:lazy(Type0),
|
|
|
#{
|
|
#{
|