cal.pub0.org/lib/validations/booking-reference.ts

12 lines
314 B
TypeScript
Raw Normal View History

import { withValidation } from "next-validations";
import { z } from "zod";
2022-03-30 12:17:55 +00:00
const schemaBookingReference = z.object({}).strict();
const withValidBookingReference = withValidation({
schema: schemaBookingReference,
type: "Zod",
mode: "body",
});
export { schemaBookingReference, withValidBookingReference };