Merge pull request #10013 from sstrigler/EMQX-7820-5-0-fix-swagger-for-get-gateway-name-clients
fix: schema for `/gateways/:name/clients` was missing top-level structure
This commit is contained in:
commit
66defab4f0
|
@ -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).
|
||||
|
@ -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") ->
|
||||
|
|
Loading…
Reference in New Issue