fix(emqx_mgmt_api_clients): hide set_keepalive_seconds from swagger

This commit is contained in:
Stefan Strigler 2023-06-01 16:57:19 +02:00
parent e011b5532f
commit 9c76aa901e
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 => #{