mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
8 lines
211 B
TypeScript
8 lines
211 B
TypeScript
import { z } from "zod";
|
|
|
|
export const idSchema = z
|
|
.number({
|
|
required_error: "recipe id is required",
|
|
invalid_type_error: "recipe id must be a number",
|
|
})
|
|
.positive("recipe id must be positive");
|