fix(mgmt_api): add missing error codes in schema
This commit is contained in:
parent
1e43fc3004
commit
28fc2b9ee9
|
@ -62,7 +62,11 @@ schema("/subscriptions") ->
|
||||||
tags => [<<"Subscriptions">>],
|
tags => [<<"Subscriptions">>],
|
||||||
parameters => parameters(),
|
parameters => parameters(),
|
||||||
responses => #{
|
responses => #{
|
||||||
200 => hoconsc:mk(hoconsc:array(hoconsc:ref(?MODULE, subscription)), #{})
|
200 => hoconsc:mk(hoconsc:array(hoconsc:ref(?MODULE, subscription)), #{}),
|
||||||
|
400 => emqx_dashboard_swagger:error_codes(
|
||||||
|
['INVALID_PARAMETER'], <<"Invalid parameter">>
|
||||||
|
),
|
||||||
|
500 => emqx_dashboard_swagger:error_codes(['NODE_DOWN'], <<"Bad RPC">>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.
|
}.
|
||||||
|
|
Loading…
Reference in New Issue