cal.pub0.org/lib/validations/webhook.ts

15 lines
276 B
TypeScript

import { withValidation } from "next-validations";
import { z } from "zod";
const schemaWebhook = z
.object({})
.strict();
const withValidWebhook = withValidation({
schema: schemaWebhook,
type: "Zod",
mode: "body",
});
export { schemaWebhook, withValidWebhook };