fix(mgmt_api): deprecate clientid field instead of removing it

This commit is contained in:
Erik Timan 2023-01-10 16:48:04 +01:00
parent 19033c812a
commit fb97096405
2 changed files with 4 additions and 6 deletions

View File

@ -63,12 +63,6 @@ result of each individual message in the batch.
zh: "MQTT 消息的 QoS" zh: "MQTT 消息的 QoS"
} }
} }
clientid {
desc {
en: "Each message can be published as if it is done on behalf of an MQTT client whos ID can be specified in this field."
zh: "每个消息都可以带上一个 MQTT 客户端 ID用于模拟 MQTT 客户端的发布行为。"
}
}
payload { payload {
desc { desc {
en: "The MQTT message payload." en: "The MQTT message payload."

View File

@ -102,6 +102,10 @@ fields(message) ->
required => false, required => false,
default => 0 default => 0
})}, })},
{clientid,
hoconsc:mk(binary(), #{
deprecated => {since, "v5.0.14"}
})},
{payload, {payload,
hoconsc:mk(binary(), #{ hoconsc:mk(binary(), #{
desc => ?DESC(payload), desc => ?DESC(payload),