Merge pull request #10912 from sstrigler/EMQX-9966-remove-set-the-online-client-keepalive-by-seconds-from-doc

remove set the online client keepalive by seconds from doc
This commit is contained in:
Stefan Strigler 2023-06-02 09:08:57 +02:00 committed by GitHub
commit 1e1003e4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -1039,6 +1039,7 @@ parse_object_loop([{Name, Hocon} | Rest], Module, Options, Props, Required, Refs
%% return true if the field has 'importance' set to 'hidden'
is_hidden(Hocon) ->
hocon_schema:is_hidden(Hocon, #{include_importance_up_from => ?IMPORTANCE_LOW}).
is_required(Hocon) ->
hocon_schema:field_schema(Hocon, required) =:= true.

View File

@ -369,6 +369,7 @@ schema("/clients/:clientid/keepalive") ->
put => #{
description => ?DESC(set_keepalive_seconds),
tags => ?TAGS,
hidden => true,
parameters => [{clientid, hoconsc:mk(binary(), #{in => path})}],
'requestBody' => hoconsc:mk(hoconsc:ref(?MODULE, keepalive)),
responses => #{