1
0

Remove accidental URL validation for gallery (#246)

This commit is contained in:
Geometrically
2021-09-01 21:19:49 -07:00
committed by GitHub
parent c87e72e08e
commit d0efa5d3fe

View File

@@ -1076,9 +1076,9 @@ pub async fn delete_project_icon(
#[derive(Serialize, Deserialize, Validate)]
pub struct GalleryCreateQuery {
pub featured: bool,
#[validate(url, length(min = 1, max = 255))]
#[validate(length(min = 1, max = 255))]
pub title: Option<String>,
#[validate(url, length(min = 1, max = 2048))]
#[validate(length(min = 1, max = 2048))]
pub description: Option<String>,
}