5 lines
233 B
TypeScript
5 lines
233 B
TypeScript
import { t } from 'elysia';
|
|
|
|
export const BigIntIdSchema = t.String({ pattern: "^\\d+$" });
|
|
export const AccountIdSchema = t.String({ pattern: "^(@.+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$" });
|