mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 14:21:15 +00:00
Init
This commit is contained in:
9
src/schemas/vendor.schema.ts
Normal file
9
src/schemas/vendor.schema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user