From 16fb6382317872b77b487fd68e29625b660bec61 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 8 Mar 2025 16:25:50 +0100 Subject: [PATCH] Make `guess` field of video mandatory --- api/src/models/utils/language.ts | 1 - api/src/models/video.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/models/utils/language.ts b/api/src/models/utils/language.ts index b1d0bcf3..2f902d63 100644 --- a/api/src/models/utils/language.ts +++ b/api/src/models/utils/language.ts @@ -23,7 +23,6 @@ export const Language = (props?: NonNullable[0]>) => This is a BCP 47 language code (the IETF Best Current Practices on Tags for Identifying Languages). BCP 47 is also known as RFC 5646. It subsumes ISO 639 and is backward compatible with it. `, - error: "Expected a valid (and NORMALIZED) bcp-47 language code.", examples: ["en-US"], ...props, }), diff --git a/api/src/models/video.ts b/api/src/models/video.ts index 96da6f0f..b01a11bd 100644 --- a/api/src/models/video.ts +++ b/api/src/models/video.ts @@ -65,7 +65,7 @@ export const SeedVideo = t.Object({ "Kyoo will prefer playing back the highest `version` number if there are multiples rendering.", }), - guess: t.Optional(Guess), + guess: Guess, }); export type SeedVideo = typeof SeedVideo.static;