Skip to content

Commit 87fed7b

Browse files
committed
fix: force string type on limit params with multiple types
1 parent cbd4595 commit 87fed7b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

projects/api/src/contracts/_internal/request/limitlessQuerySchema.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ export const limitlessQuerySchema = z.object({
44
limit: z.number()
55
.int()
66
.or(z.literal('all'))
7-
.optional().openapi({
8-
description: 'The number of items per page',
7+
.optional()
8+
.openapi({
9+
description: `The number of items per page, can be a number or the value all`,
10+
type: 'string',
11+
oneOf: undefined
912
}),
1013
});

0 commit comments

Comments
 (0)