atlp-rwanda/hackers-ec-Fe

View on GitHub
src/validations/EnableDisable.validation.ts

Summary

Maintainability
A
50 mins
Test Coverage
A
100%
import { z } from 'zod';

export const EnableDisableSchema = z.object({
    reason: z
        .string({ message: 'Reason must be a string' })
        .nonempty({ message: 'Reason field is required' }),
});

export type EnableDisableSchemaType = z.infer<typeof EnableDisableSchema>;