This repository was archived by the owner on Feb 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeyitOptions.default.ts
More file actions
56 lines (47 loc) · 1.59 KB
/
TeyitOptions.default.ts
File metadata and controls
56 lines (47 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import type { TeyitOptions } from '../types/TeyitOptions.type';
export const TeyitOptionsDefault: TeyitOptions = {
output_dir: './generated/teyit',
error_messages: {
base: {
nullable: 'Field {path} cannot be null',
required: 'Field {path} is required'
},
string: {
type: 'Field {path} must be a string',
enum: 'Field {path} must be one of the allowed values',
pattern: 'Field {path} must match the required pattern',
min: 'Field {path} must be at least {min} character{plural_suffix}',
max: 'Field {path} must be at most {max} character{plural_suffix}'
},
number: {
type: 'Field {path} must be a number',
enum: 'Field {path} must be one of the allowed values',
min: 'Field {path} must be greater than or equal to {min}',
max: 'Field {path} must be less than or equal to {max}',
integer: 'Field {path} must be an integer',
positive: 'Field {path} must be a positive',
negative: 'Field {path} must be a negative'
},
boolean: {
type: 'Field {path} must be a boolean'
},
date: {
type: 'Field {path} must be a date',
min: 'Field {path} must be after {min}',
max: 'Field {path} must be before {max}'
},
object: {
type: 'Field {path} must be an object'
},
array: {
type: 'Field {path} must be an array',
min: 'Field {path} must be at least {min} item${plural_suffix}',
max: 'Field {path} must be at most {max} item${plural_suffix}'
}
},
validation: {
abort_early: false,
sort_keys: true,
strip_unknown: true
}
};