Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

401 B
Raw Blame
import { z } from "zod";
import { runtimeGeneratedIdInputDescription } from "../contracts/input-schema";

export const runtimeGeneratedIdInput = z
  .custom<undefined>((value) => value === undefined, {
    message:
      "Client-supplied ids are not allowed when creating records. Omit the id and use the id returned by Webstudio.",
  })
  .optional()
  .describe(runtimeGeneratedIdInputDescription);