Merge pull request #7413 from zmstone/docs-add-more-schema-desc

docs: add more schema desc
This commit is contained in:
Zaiming (Stone) Shi 2022-03-25 16:10:00 +01:00 committed by GitHub
commit 39d477e77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 9 deletions

View File

@ -954,7 +954,8 @@ fields("ws_opts") ->
default => false, default => false,
desc => desc =>
"If <code>true</code>, compress WebSocket messages using <code>zlib</code>.<br/>\n" "If <code>true</code>, compress WebSocket messages using <code>zlib</code>.<br/>\n"
" The configuration items under <code>deflate_opts</code> belong to the compression-related parameter configuration." "The configuration items under <code>deflate_opts</code> "
"belong to the compression-related parameter configuration."
} }
)}, )},
{"idle_timeout", {"idle_timeout",
@ -1414,10 +1415,7 @@ fields("sysmon_vm") ->
sc( sc(
hoconsc:union([disabled, duration()]), hoconsc:union([disabled, duration()]),
#{ #{
desc => desc => "Enable Long GC monitoring.<br/>"
"Enable Long GC monitoring.<br/>\n"
" Notice: don't enable the monitor in production for:<br/>\n"
" https://github.com/erlang/otp/blob/feb45017da36be78d4c5784d758ede619fa7bfd3/erts/emulator/beam/erl_gc.c#L421"
} }
)}, )},
{"long_schedule", {"long_schedule",
@ -1677,7 +1675,8 @@ mqtt_listener() ->
duration(), duration(),
#{ #{
desc => desc =>
"Timeout for proxy protocol. EMQX will close the TCP connection if proxy protocol packet is not received within the timeout." "Timeout for proxy protocol. EMQX will close the TCP connection "
"if proxy protocol packet is not received within the timeout."
} }
)}, )},
{?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME, {?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME,
@ -1845,7 +1844,15 @@ common_ssl_opts_schema(Defaults) ->
{"depth", {"depth",
sc( sc(
integer(), integer(),
#{default => Df("depth", 10)} #{
default => Df("depth", 10),
desc =>
"Maximum number of non-self-issued intermediate certificates that can follow "
"the peer certificate in a valid certification path. "
"So, if depth is 0 the PEER must be signed by the trusted ROOT-CA directly; "
"if 1 the path can be PEER, CA, ROOT-CA; if 2 the path can be PEER, CA, CA, ROOT-CA, "
"and so on. The default value is 10."
}
)}, )},
{"password", {"password",
sc( sc(

View File

@ -61,7 +61,7 @@ fields(server) ->
})} })}
, {failed_action, failed_action()} , {failed_action, failed_action()}
, {ssl, , {ssl,
sc(ref(ssl_conf), #{})} sc(ref(ssl_conf), #{desc => "SSL client config"})}
, {auto_reconnect, , {auto_reconnect,
sc(hoconsc:union([false, duration()]), sc(hoconsc:union([false, duration()]),
#{ default => "60s" #{ default => "60s"

View File

@ -221,7 +221,10 @@ option. The indicator can be set to:
* qos0: If the publish request is non-confirmable * qos0: If the publish request is non-confirmable
* qos1: If the publish request is confirmable" * qos1: If the publish request is confirmable"
})} })}
, {listeners, sc(ref(udp_listeners))} , {listeners,
sc(ref(udp_listeners),
#{ desc =>"Listeners (UDP) for CoAP service"
})}
] ++ gateway_common_options(); ] ++ gateway_common_options();
fields(lwm2m) -> fields(lwm2m) ->