mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
import vine from '@vinejs/vine';
|
|
|
|
export const baseLinkValidator = vine.object({
|
|
name: vine.string().trim().minLength(1).maxLength(254),
|
|
description: vine.string().trim().maxLength(300).optional(),
|
|
url: vine.string().url({ require_tld: false }).trim(),
|
|
favorite: vine.boolean(),
|
|
collectionId: vine.number(),
|
|
});
|