forked from jmug/stoatchat
fix: add additional validation on legacy nonce value
This commit is contained in:
@@ -21,6 +21,7 @@ pub struct DataMessageSend {
|
|||||||
/// Unique token to prevent duplicate message sending
|
/// Unique token to prevent duplicate message sending
|
||||||
///
|
///
|
||||||
/// **This is deprecated and replaced by `Idempotency-Key`!**
|
/// **This is deprecated and replaced by `Idempotency-Key`!**
|
||||||
|
#[validate(length(min = 1, max = 64))]
|
||||||
nonce: Option<String>,
|
nonce: Option<String>,
|
||||||
|
|
||||||
/// Message content to send
|
/// Message content to send
|
||||||
|
|||||||
Reference in New Issue
Block a user