mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 15:08:44 -05:00
16 lines
415 B
TypeScript
16 lines
415 B
TypeScript
import * as z from "zod";
|
|
|
|
export const SUGGESTION_DESCRIPTION_LIMIT = 500;
|
|
|
|
const suggestionRootSchema = z.object({
|
|
description: z.string().max(SUGGESTION_DESCRIPTION_LIMIT),
|
|
});
|
|
|
|
export const suggestionFullSchema = suggestionRootSchema.extend({
|
|
suggestedId: z.number().int(),
|
|
tier: z.number().int().min(1).max(3),
|
|
region: z.enum(["NA", "EU"]),
|
|
});
|
|
|
|
export const resuggestionSchema = suggestionRootSchema;
|