fix: missing default value for qos field of API /clients/:clientid/subscribe

This commit is contained in:
Shawn 2023-01-09 16:02:10 +08:00
parent 6f5057b9dd
commit 7ed1384623
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ fields(keepalive) ->
fields(subscribe) ->
[
{topic, hoconsc:mk(binary(), #{desc => <<"Topic">>})},
{qos, hoconsc:mk(emqx_schema:qos(), #{desc => <<"QoS">>})},
{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">>})},
{rh, hoconsc:mk(integer(), #{default => 0, desc => <<"Retain Handling">>})}