Parcourir la source

Merge pull request #6428 from zmstone/refactor-better-config-doc

docs: better config doc
Zaiming (Stone) Shi il y a 4 ans
Parent
commit
e5b11d48a2

+ 1 - 2
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]),

+ 6 - 1
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).