27 lines
558 B
TypeScript
27 lines
558 B
TypeScript
import vine from '@vinejs/vine'
|
|
|
|
export const updateUserValidator = vine.compile(
|
|
vine.object({
|
|
preferences: vine.array(
|
|
vine.object({
|
|
name: vine.string(),
|
|
emoji: vine.string().maxLength(12),
|
|
color: vine.string().maxLength(12),
|
|
})
|
|
),
|
|
})
|
|
)
|
|
|
|
export const matchStudentValidator = vine.compile(
|
|
vine.object({
|
|
firstName: vine.string(),
|
|
lastName: vine.string(),
|
|
classId: vine.string(),
|
|
})
|
|
)
|
|
|
|
export const mergeStudentValidator = vine.compile(
|
|
vine.object({
|
|
pastStudentId: vine.number(),
|
|
})
|
|
)
|