1
0

Fix gallery validation (again) (#247)

* Remove accidental URL validation for gallery

* Remove accidental URL validation for gallery
This commit is contained in:
Geometrically
2021-09-02 22:39:29 -07:00
committed by GitHub
parent d0efa5d3fe
commit 04998d0215

View File

@@ -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<Option<String>>,
#[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<Option<String>>,
}