Skip to content

Commit e636a51

Browse files
michaldrabikvladjerca
authored andcommitted
fix: add possible nullish field and use strings for profile request param
1 parent da4b599 commit e636a51

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

projects/api/src/contracts/_internal/response/progressResponseSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { statsResponseSchema } from './statsResponseSchema.ts';
55
export const progressResponseSchema = z.object({
66
aired: z.number().int(),
77
completed: z.number().int(),
8-
last_watched_at: z.string().datetime(),
8+
last_watched_at: z.string().datetime().nullish(),
99
reset_at: z.null(),
1010
next_episode: episodeResponseSchema,
1111
last_episode: episodeResponseSchema.or(z.null()),

projects/api/src/contracts/users/_internal/request/profileParamsSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from '../../../_internal/z.ts';
22

33
export const profileParamsSchema = z.object({
4-
id: z.enum(['me']).or(z.string()).openapi({
4+
id: z.string().openapi({
55
description:
66
`The slug that identifies the user, or "me" for the authenticated user.`,
77
}),

0 commit comments

Comments
 (0)