refactor: rename base validator to sample validator in source and documentation
This commit is contained in:
@@ -1 +1 @@
|
||||
export * from './base.validator';
|
||||
export * from './sample.validator';
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const baseValidator = z.object({
|
||||
export const sampleValidator = z.object({
|
||||
email: z.string().email({
|
||||
message: JSON.stringify({ key: 'validation:invalid_email' }),
|
||||
}),
|
||||
@@ -12,4 +12,4 @@ export const baseValidator = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
export type BaseValidatorType = z.infer<typeof baseValidator>;
|
||||
export type SampleValidatorType = z.infer<typeof sampleValidator>;
|
||||
Reference in New Issue
Block a user