Follow API change of validator

This commit is contained in:
Kitaiti Makoto
2022-01-07 04:55:49 +09:00
parent 237da47950
commit 800e74da67
6 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ use plume_models::{
#[derive(Default, FromForm, Debug, Validate)]
pub struct NewCommentForm {
pub responding_to: Option<i32>,
#[validate(length(min = "1", message = "Your comment can't be empty"))]
#[validate(length(min = 1, message = "Your comment can't be empty"))]
pub content: String,
pub warning: String,
}