fix(emqx_mgmt_api_clients): hide set_keepalive_seconds from swagger
This commit is contained in:
parent
e011b5532f
commit
9c76aa901e
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 => #{
|
||||
|
|
Loading…
Reference in New Issue