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:
Stefan Strigler 2023-02-21 17:04:14 +01:00 committed by GitHub
commit 66defab4f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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") ->