fix: set the topic field of API /clients/:clientid/subscribe as requried
This commit is contained in:
parent
e88529d55b
commit
50717a5567
|
@ -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">>})},
|
||||
|
|
Loading…
Reference in New Issue