We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145e17c commit c80e56eCopy full SHA for c80e56e
1 file changed
projects/api/src/contracts/shows/_internal/response/seasonResponseSchema.ts
@@ -1,5 +1,5 @@
1
import { seasonIdsResponseSchema } from '../../../_internal/response/seasonIdsResponseSchema.ts';
2
-import { z } from '../../../_internal/z.ts';
+import { float, z } from '../../../_internal/z.ts';
3
4
export const seasonResponseSchema = z.object({
5
number: z.number().int(),
@@ -11,11 +11,10 @@ export const seasonResponseSchema = z.object({
11
/**
12
* Available if requesting extended `full`.
13
*/
14
- rating: z.number().int().optional(
15
- /**
16
- * Available if requesting extended `full`.
17
- */
18
- ),
+ rating: float(z.number()).nullish(),
+ /**
+ * Available if requesting extended `full`.
+ */
19
votes: z.number().int().nullish(),
20
21
0 commit comments