Skip to content

Commit c80e56e

Browse files
committed
fix(show): corrects typing for season ratings
1 parent 145e17c commit c80e56e

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

projects/api/src/contracts/shows/_internal/response/seasonResponseSchema.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { seasonIdsResponseSchema } from '../../../_internal/response/seasonIdsResponseSchema.ts';
2-
import { z } from '../../../_internal/z.ts';
2+
import { float, z } from '../../../_internal/z.ts';
33

44
export const seasonResponseSchema = z.object({
55
number: z.number().int(),
@@ -11,11 +11,10 @@ export const seasonResponseSchema = z.object({
1111
/**
1212
* Available if requesting extended `full`.
1313
*/
14-
rating: z.number().int().optional(
15-
/**
16-
* Available if requesting extended `full`.
17-
*/
18-
),
14+
rating: float(z.number()).nullish(),
15+
/**
16+
* Available if requesting extended `full`.
17+
*/
1918
votes: z.number().int().nullish(),
2019
/**
2120
* Available if requesting extended `full`.

0 commit comments

Comments
 (0)