More reasonable length restrictions (#458)

This commit is contained in:
Geometrically
2022-09-26 18:09:50 -07:00
committed by GitHub
parent 75b7583832
commit 3e52f804a7
5 changed files with 11 additions and 11 deletions

View File

@@ -251,9 +251,9 @@ pub async fn dependency_list(
/// A project returned from the API
#[derive(Serialize, Deserialize, Validate)]
pub struct EditProject {
#[validate(length(min = 3, max = 256))]
#[validate(length(min = 3, max = 64))]
pub title: Option<String>,
#[validate(length(min = 3, max = 2048))]
#[validate(length(min = 3, max = 256))]
pub description: Option<String>,
#[validate(length(max = 65536))]
pub body: Option<String>,