feat: rename fields in ApiKeyResponse and ThoughtSchema for consistency with API specifications

This commit is contained in:
2025-09-06 19:19:14 +02:00
parent 38e107ad59
commit e7cf76a0d8
2 changed files with 4 additions and 1 deletions

View File

@@ -12,11 +12,14 @@ use uuid::Uuid;
pub struct ThoughtSchema {
pub id: Uuid,
#[schema(example = "frutiger")]
#[serde(rename = "authorUsername")]
pub author_username: String,
#[schema(example = "This is my first thought! #welcome")]
pub content: String,
pub visibility: Visibility,
#[serde(rename = "replyToId")]
pub reply_to_id: Option<Uuid>,
#[serde(rename = "createdAt")]
pub created_at: DateTimeWithTimeZoneWrapper,
}