Parcourir la source

fix: retainer api doc qos enum (#5614)

DDDHuang il y a 4 ans
Parent
commit
cfe4e37d50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/emqx_retainer/src/emqx_retainer_api.erl

+ 1 - 1
apps/emqx_retainer/src/emqx_retainer_api.erl

@@ -44,7 +44,7 @@ message_props() ->
     properties([
         {id, string, <<"Message ID">>},
         {topic, string, <<"MQTT Topic">>},
-        {qos, string, <<"MQTT QoS">>},
+        {qos, integer, <<"MQTT QoS">>, [0, 1, 2]},
         {payload, string, <<"MQTT Payload">>},
         {publish_at, string, <<"Publish datetime, in RFC 3339 format">>},
         {from_clientid, string, <<"Publisher ClientId">>},