feat: update parameter serialization for CreateThoughtParams and UpdateUserParams
This commit is contained in:
@@ -14,5 +14,6 @@ pub struct CreateThoughtParams {
|
||||
))]
|
||||
pub content: String,
|
||||
pub visibility: Option<Visibility>,
|
||||
#[serde(rename = "replyToId")]
|
||||
pub reply_to_id: Option<Uuid>,
|
||||
}
|
||||
|
@@ -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>>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user