Skip to content

Commit

Permalink
chore: update context max length
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Nov 26, 2023
1 parent d85b615 commit 8dbdcf0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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 = "1.3.15"
version = "1.3.16"
edition = "2021"
rust-version = "1.64"
description = ""
Expand Down
2 changes: 1 addition & 1 deletion src/api/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use super::{
pub struct CreateCollectionInput {
pub gid: PackObject<xid::Id>,
pub language: PackObject<Language>,
#[validate(length(min = 0, max = 1024))]
#[validate(length(min = 0, max = 4096))]
pub context: String,
pub info: CollectionInfoInput,
#[validate(url)]
Expand Down
4 changes: 2 additions & 2 deletions src/api/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::db;
pub struct CreateMessageInput {
pub attach_to: PackObject<xid::Id>,
pub kind: String,
#[validate(length(min = 0, max = 512))]
#[validate(length(min = 0, max = 4096))]
pub context: String,
pub language: PackObject<Language>,
#[validate(custom = "validate_message")]
Expand Down Expand Up @@ -166,7 +166,7 @@ pub struct UpdateMessageInput {
#[validate(range(min = 1, max = 32767))]
pub version: i16,
pub gid: PackObject<xid::Id>,
#[validate(length(min = 0, max = 512))]
#[validate(length(min = 0, max = 4096))]
pub context: Option<String>,
pub language: Option<PackObject<Language>>,
#[validate(custom = "validate_message")]
Expand Down

0 comments on commit 8dbdcf0

Please sign in to comment.