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

@@ -17,7 +17,7 @@ pub struct ApiKeyResponse {
#[serde(flatten)]
pub key: ApiKeySchema,
/// The full plaintext API key. This is only returned on creation.
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none", rename = "plaintextKey")]
pub plaintext_key: Option<String>,
}