Skip to content

Commit

Permalink
update creation title validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Sep 18, 2023
1 parent 9d6898a commit 963637f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "writing"
version = "0.10.7"
version = "0.10.8"
edition = "2021"
rust-version = "1.64"
description = ""
Expand Down
2 changes: 1 addition & 1 deletion src/api/creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct CreateCreationInput {
#[validate(url)]
pub original_url: Option<String>,
pub genre: Option<Vec<String>>,
#[validate(length(min = 4, max = 256))]
#[validate(length(min = 1, max = 256))]
pub title: String,
#[validate(url)]
pub cover: Option<String>,
Expand Down

0 comments on commit 963637f

Please sign in to comment.