diff --git a/projects/api/src/contracts/_internal/response/translationResponseSchema.ts b/projects/api/src/contracts/_internal/response/translationResponseSchema.ts index 40d2c8c..ba23426 100644 --- a/projects/api/src/contracts/_internal/response/translationResponseSchema.ts +++ b/projects/api/src/contracts/_internal/response/translationResponseSchema.ts @@ -6,6 +6,6 @@ export const translationResponseSchema = z.array( overview: z.string().nullish(), tagline: z.string().nullish(), language: z.string(), - country: z.string(), + country: z.string().nullish(), }), ); diff --git a/projects/api/src/contracts/people/schema/response/peopleShowCreditsResponseSchema.ts b/projects/api/src/contracts/people/schema/response/peopleShowCreditsResponseSchema.ts index a618557..f07d324 100644 --- a/projects/api/src/contracts/people/schema/response/peopleShowCreditsResponseSchema.ts +++ b/projects/api/src/contracts/people/schema/response/peopleShowCreditsResponseSchema.ts @@ -8,7 +8,7 @@ export const peopleShowCreditsResponseSchema = z.object({ cast: z.array( z.object({ show: showResponseSchema, - episode_count: z.number().int(), + episode_count: z.number().int().nullish(), series_regular: z.boolean(), }).merge(characterResponseSchema), ).nullish(), @@ -17,7 +17,7 @@ export const peopleShowCreditsResponseSchema = z.object({ z.array( z.object({ show: showResponseSchema, - episode_count: z.number().int(), + episode_count: z.number().int().nullish(), }).merge(jobsResponseSchema), ), ).nullish(), diff --git a/projects/api/src/contracts/users/schema/response/socialActivityResponseSchema.ts b/projects/api/src/contracts/users/schema/response/socialActivityResponseSchema.ts index 6c5d30d..d4d8604 100644 --- a/projects/api/src/contracts/users/schema/response/socialActivityResponseSchema.ts +++ b/projects/api/src/contracts/users/schema/response/socialActivityResponseSchema.ts @@ -9,6 +9,7 @@ const activitySchema = z.object({ activity_at: z.string().datetime(), action: asString(z.enum(['scrobble', 'watch', 'checkin'])), user: profileResponseSchema, + user_rating: z.number().int().nullish(), }); const socialEpisodeResponseSchema = z.object({