fix(mgmt_api): deprecate clientid field instead of removing it
This commit is contained in:
parent
19033c812a
commit
fb97096405
|
@ -63,12 +63,6 @@ result of each individual message in the batch.
|
|||
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 {
|
||||
desc {
|
||||
en: "The MQTT message payload."
|
||||
|
|
|
@ -102,6 +102,10 @@ fields(message) ->
|
|||
required => false,
|
||||
default => 0
|
||||
})},
|
||||
{clientid,
|
||||
hoconsc:mk(binary(), #{
|
||||
deprecated => {since, "v5.0.14"}
|
||||
})},
|
||||
{payload,
|
||||
hoconsc:mk(binary(), #{
|
||||
desc => ?DESC(payload),
|
||||
|
|
Loading…
Reference in New Issue