mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
15 lines
292 B
TypeScript
15 lines
292 B
TypeScript
|
|
import { z } from "zod";
|
||
|
|
|
||
|
|
export const createAssetImageMetadataSchema = z.object({
|
||
|
|
namespace: z
|
||
|
|
.string()
|
||
|
|
.trim()
|
||
|
|
.min(1)
|
||
|
|
.max(120)
|
||
|
|
.regex(/^[a-zA-Z0-9/_-]+$/)
|
||
|
|
.optional(),
|
||
|
|
});
|
||
|
|
|
||
|
|
export type CreateAssetImageMetadata = z.infer<typeof createAssetImageMetadataSchema>;
|
||
|
|
|