fix: set the topic field of API /clients/:clientid/subscribe as requried

This commit is contained in:
Shawn 2023-01-09 17:57:39 +08:00
parent e88529d55b
commit 50717a5567
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ fields(keepalive) ->
];
fields(subscribe) ->
[
{topic, hoconsc:mk(binary(), #{desc => <<"Topic">>})},
{topic, hoconsc:mk(binary(), #{required => true, desc => <<"Topic">>})},
{qos, hoconsc:mk(emqx_schema:qos(), #{default => 0, desc => <<"QoS">>})},
{nl, hoconsc:mk(integer(), #{default => 0, desc => <<"No Local">>})},
{rap, hoconsc:mk(integer(), #{default => 0, desc => <<"Retain as Published">>})},