From 04998d0215b37b78f56397f300f5a67f8005b5fb Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 2 Sep 2021 22:39:29 -0700 Subject: [PATCH] Fix gallery validation (again) (#247) * Remove accidental URL validation for gallery * Remove accidental URL validation for gallery --- src/routes/projects.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/projects.rs b/src/routes/projects.rs index 45cfd7913..51aa0f79b 100644 --- a/src/routes/projects.rs +++ b/src/routes/projects.rs @@ -1199,14 +1199,14 @@ pub struct GalleryEditQuery { skip_serializing_if = "Option::is_none", with = "::serde_with::rust::double_option" )] - #[validate(url, length(min = 1, max = 255))] + #[validate(length(min = 1, max = 255))] pub title: Option>, #[serde( default, skip_serializing_if = "Option::is_none", with = "::serde_with::rust::double_option" )] - #[validate(url, length(min = 1, max = 2048))] + #[validate(length(min = 1, max = 2048))] pub description: Option>, }