mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 08:54:20 +10:00
committed by
GitHub
parent
0b9a23c550
commit
6f650e1c2f
@@ -1,11 +1,13 @@
|
||||
import { DocumentVisibility } from '@prisma/client';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const DOCUMENT_TITLE_MAX_LENGTH = 255;
|
||||
|
||||
export const ZDocumentTitleSchema = z
|
||||
.string()
|
||||
.trim()
|
||||
.min(1)
|
||||
.max(255)
|
||||
.max(DOCUMENT_TITLE_MAX_LENGTH)
|
||||
.describe('The title of the document.');
|
||||
|
||||
export const ZDocumentExternalIdSchema = z
|
||||
|
||||
Reference in New Issue
Block a user