Skip to content

Commit

Permalink
Merge pull request #13107 from thalesmg/hide-clientv2-response-type-r…
Browse files Browse the repository at this point in the history
…57-20240523

fix(client mgmt api): hide unused return type
  • Loading branch information
thalesmg committed May 23, 2024
2 parents b4c6968 + b1e3c94 commit 823a6bc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/emqx_management/src/emqx_mgmt_api_clients.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,16 @@ schema("/clients_v2") ->
parameters => fields(list_clients_v2_inputs),
responses => #{
200 =>
emqx_dashboard_swagger:schema_with_example(?R_REF(list_clients_v2_response), #{
<<"data">> => [client_example()],
<<"meta">> => #{
<<"count">> => 1,
<<"cursor">> => <<"g2wAAAADYQFhAm0AAAACYzJq">>,
<<"hasnext">> => true
}
}),
%% TODO: unhide after API is ready
%% emqx_dashboard_swagger:schema_with_example(?R_REF(list_clients_v2_response), #{
%% <<"data">> => [client_example()],
%% <<"meta">> => #{
%% <<"count">> => 1,
%% <<"cursor">> => <<"g2wAAAADYQFhAm0AAAACYzJq">>,
%% <<"hasnext">> => true
%% }
%% }),
emqx_dashboard_swagger:schema_with_example(map(), #{}),
400 =>
emqx_dashboard_swagger:error_codes(
['INVALID_PARAMETER'], <<"Invalid parameters">>
Expand Down

0 comments on commit 823a6bc

Please sign in to comment.