mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
import { z } from "zod/v4";
|
|
|
|
export const vendorSchema = z.object({
|
|
name: z.string().min(1, "Name is required").max(64),
|
|
website: z.string().url().optional().or(z.literal("")),
|
|
notes: z.string().max(1024).optional(),
|
|
});
|
|
|
|
export type VendorInput = z.infer<typeof vendorSchema>;
|