Просмотр исходного кода

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
Stefan Strigler 2 лет назад
Родитель
Сommit
1e1003e4e6

+ 1 - 0
apps/emqx_dashboard/src/emqx_dashboard_swagger.erl

@@ -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.
 

+ 1 - 0
apps/emqx_management/src/emqx_mgmt_api_clients.erl

@@ -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 => #{