feat: update parameter serialization for CreateThoughtParams and UpdateUserParams

This commit is contained in:
2025-09-06 20:44:21 +02:00
parent 19520c832f
commit 8a4c07b3f6
2 changed files with 6 additions and 1 deletions

View File

@@ -14,5 +14,6 @@ pub struct CreateThoughtParams {
))]
pub content: String,
pub visibility: Option<Visibility>,
#[serde(rename = "replyToId")]
pub reply_to_id: Option<Uuid>,
}

View File

@@ -14,6 +14,7 @@ pub struct CreateUserParams {
pub struct UpdateUserParams {
#[validate(length(max = 50))]
#[schema(example = "Frutiger Aero Fan")]
#[serde(rename = "displayName")]
pub display_name: Option<String>,
#[validate(length(max = 160))]
@@ -21,14 +22,17 @@ pub struct UpdateUserParams {
pub bio: Option<String>,
#[validate(url)]
#[serde(rename = "avatarUrl")]
pub avatar_url: Option<String>,
#[validate(url)]
#[serde(rename = "headerUrl")]
pub header_url: Option<String>,
#[serde(rename = "customCss")]
pub custom_css: Option<String>,
#[validate(length(max = 8))]
#[schema(example = json!(["username1", "username2"]))]
#[serde(rename = "topFriends")]
pub top_friends: Option<Vec<String>>,
}