mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import vine from '@vinejs/vine';
|
|
|
|
export const linkValidator = vine.compile(
|
|
vine.object({
|
|
name: vine.string().trim().minLength(1).maxLength(254),
|
|
description: vine.string().trim().maxLength(300).optional(),
|
|
url: vine.string().trim(),
|
|
favorite: vine.boolean(),
|
|
collectionId: vine.string().trim(),
|
|
})
|
|
);
|