You've already forked AstralRinth
forked from didirus/AstralRinth
More reasonable length restrictions (#458)
This commit is contained in:
@@ -167,10 +167,10 @@ pub async fn version_get(
|
||||
|
||||
#[derive(Serialize, Deserialize, Validate)]
|
||||
pub struct EditVersion {
|
||||
#[validate(length(min = 1, max = 256))]
|
||||
#[validate(length(min = 1, max = 64))]
|
||||
pub name: Option<String>,
|
||||
#[validate(
|
||||
length(min = 1, max = 64),
|
||||
length(min = 1, max = 32),
|
||||
regex = "crate::util::validate::RE_URL_SAFE"
|
||||
)]
|
||||
pub version_number: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user