Skip to content

Commit 011dc36

Browse files
committed
fix(episode): makes optional response params nullish
1 parent e636a51 commit 011dc36

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ export const episodeResponseSchema = z.object({
1414
/***
1515
* Available if requesting extended `full`.
1616
*/
17-
votes: z.number().int(),
17+
votes: z.number().int().nullish(),
1818
/***
1919
* Available if requesting extended `full`.
2020
*/
21-
comment_count: z.number().int(),
21+
comment_count: z.number().int().nullish(),
2222
/***
2323
* Available if requesting extended `full`.
2424
*/
25-
updated_at: z.string().datetime(),
25+
updated_at: z.string().datetime().nullish(),
2626
/***
2727
* Available if requesting extended `full`.
2828
*/
29-
available_translations: z.array(z.string()),
29+
available_translations: z.array(z.string()).nullish(),
3030
/***
3131
* Available if requesting extended `full`.
3232
*/
33-
runtime: z.number().int(),
33+
runtime: z.number().int().nullish(),
3434
/***
3535
* Available if requesting extended `full`.
3636
*/

0 commit comments

Comments
 (0)