Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

386 B
Raw Blame
import * as v from 'valibot';

export const customPropertyDefinitionNameSchema = v.pipe(
  v.string(),
  v.trim(),
  v.minLength(1),
  v.maxLength(255),
);
export const customPropertyDefinitionDescriptionSchema = v.pipe(
  v.string(),
  v.trim(),
  v.maxLength(1000),
);
export const customPropertyDefinitionDisplayOrderSchema = v.pipe(
  v.number(),
  v.integer(),
  v.minValue(0),
);