coldbydefault-portfolio
    Preparing search index...

    Variable feedbackSchemaConst

    feedbackSchema: ZodObject<
        {
            consentToPublish: ZodBoolean;
            locale: ZodEnum<{ de: "de"; en: "en"; es: "es"; fr: "fr"; sv: "sv" }>;
            message: ZodString;
            name: ZodString;
            rating: ZodNullable<ZodNumber>;
            startedAt: ZodNumber;
            topic: ZodEnum<{ me: "me"; website: "website" }>;
            website: ZodString;
        },
        $strict,
    > = ...

    One schema for both ends: the form validates with it through zodResolver, and POST /api/feedback validates the same object again, because nothing the browser checked can be trusted. Messages are translation keys under Feedback.errors, never prose.