Skip to content

Commit

Permalink
Merge pull request #10013 from sstrigler/EMQX-7820-5-0-fix-swagger-fo…
Browse files Browse the repository at this point in the history
…r-get-gateway-name-clients

fix: schema for `/gateways/:name/clients` was missing top-level structure
  • Loading branch information
sstrigler committed Feb 21, 2023
2 parents bf978ef + 965d63f commit 66defab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/emqx_gateway/src/emqx_gateway_api_clients.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
-include("emqx_gateway_http.hrl").
-include_lib("typerefl/include/types.hrl").
-include_lib("hocon/include/hoconsc.hrl").
-include_lib("emqx/include/emqx_placeholder.hrl").
-include_lib("emqx/include/logger.hrl").

-behaviour(minirest_api).
Expand Down Expand Up @@ -464,7 +463,12 @@ schema("/gateways/:name/clients") ->
summary => <<"List Gateway's Clients">>,
parameters => params_client_query(),
responses =>
?STANDARD_RESP(#{200 => schema_client_list()})
?STANDARD_RESP(#{
200 => [
{data, schema_client_list()},
{meta, mk(hoconsc:ref(emqx_dashboard_swagger, meta), #{})}
]
})
}
};
schema("/gateways/:name/clients/:clientid") ->
Expand Down

0 comments on commit 66defab

Please sign in to comment.