document updates

This commit is contained in:
2025-10-27 22:06:33 +01:00
parent a6da34740f
commit 50125f4659
3 changed files with 588 additions and 37 deletions
+12
View File
@@ -687,10 +687,22 @@ pub mod schemas {
pub size_bytes: i64,
}
#[derive(Serialize, Deserialize, ToSchema)]
pub struct DocumentMetadataUpdate {
pub value: Value,
#[serde(default)]
#[schema(default = false)]
pub replace: bool,
}
#[derive(Serialize, Deserialize, ToSchema)]
pub struct UpdateDocumentRequest {
#[schema(nullable)]
pub title: Option<String>,
#[schema(nullable, value_type = Option<String>)]
pub issued_at: Option<Value>,
#[schema(nullable)]
pub metadata: Option<DocumentMetadataUpdate>,
}
#[derive(Serialize, Deserialize, ToSchema)]