mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-09 00:08:46 +00:00
11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import { z } from "zod";
|
|
|
|
export const feedQuerySchema = z.object({
|
|
createdAt: z.string().datetime().optional(),
|
|
limit: z
|
|
.string()
|
|
.transform((val) => parseInt(val, 10))
|
|
.refine((num) => num > 0 && num <= 30, {
|
|
message: "Limit must be between 1 and 30",
|
|
}),
|
|
});
|