Merge pull request #6428 from zmstone/refactor-better-config-doc
docs: better config doc
This commit is contained in:
commit
e5b11d48a2
|
@ -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]),
|
||||
|
|
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue