2
0
Files
bot/packages/schemas/features/events/start/schema.ts
2023-12-22 09:13:53 +01:00

13 lines
284 B
TypeScript

import { z } from '../../../zod'
import { eventBaseSchema } from '../shared'
import { EventType } from '../constants'
export const startEventSchema = eventBaseSchema
.extend({
type: z.literal(EventType.START),
})
.openapi({
description: 'Event',
ref: 'event',
})