feat: watchlist add accepts title/year/imdb for movies not in DB

This commit is contained in:
2026-06-04 02:47:55 +02:00
parent e7cdbf9ca7
commit cf2f4a1b4f
2 changed files with 12 additions and 5 deletions

View File

@@ -20,7 +20,14 @@ pub struct WatchlistResponse {
#[derive(Debug, Clone, Deserialize, utoipa::ToSchema)]
pub struct AddToWatchlistRequest {
pub movie_id: Uuid,
#[serde(skip_serializing_if = "Option::is_none")]
pub movie_id: Option<Uuid>,
#[serde(skip_serializing_if = "Option::is_none")]
pub external_metadata_id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub manual_title: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub manual_release_year: Option<u16>,
}
#[derive(Debug, Clone, Serialize, utoipa::ToSchema)]