-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathzod.json
113 lines (113 loc) · 4.14 KB
/
zod.json
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"errors": {
"invalid_type": "Expected {{expected}}, received {{received}}",
"invalid_type_received_undefined": "Required",
"invalid_type_received_null": "Required",
"invalid_literal": "Invalid literal value, expected {{expected}}",
"unrecognized_keys": "Unrecognized key(s) in object: {{- keys}}",
"invalid_union": "Invalid input",
"invalid_union_discriminator": "Invalid discriminator value. Expected {{- options}}",
"invalid_enum_value": "Invalid enum value. Expected {{- options}}, received '{{received}}'",
"invalid_arguments": "Invalid function arguments",
"invalid_return_type": "Invalid function return type",
"invalid_date": "Invalid date",
"custom": "Invalid input",
"invalid_intersection_types": "Intersection results could not be merged",
"not_multiple_of": "Number must be a multiple of {{multipleOf}}",
"not_finite": "Number must be finite",
"invalid_string": {
"email": "Invalid {{validation}}",
"url": "Invalid {{validation}}",
"uuid": "Invalid {{validation}}",
"cuid": "Invalid {{validation}}",
"regex": "Invalid",
"datetime": "Invalid {{validation}}",
"startsWith": "Invalid input: must start with \"{{startsWith}}\"",
"endsWith": "Invalid input: must end with \"{{endsWith}}\""
},
"too_small": {
"array": {
"exact": "Array must contain exactly {{minimum}} element(s)",
"inclusive": "Array must contain at least {{minimum}} element(s)",
"not_inclusive": "Array must contain more than {{minimum}} element(s)"
},
"string": {
"exact": "String must contain exactly {{minimum}} character(s)",
"inclusive": "String must contain at least {{minimum}} character(s)",
"not_inclusive": "String must contain over {{minimum}} character(s)"
},
"number": {
"exact": "Number must be exactly {{minimum}}",
"inclusive": "Number must be greater than or equal to {{minimum}}",
"not_inclusive": "Number must be greater than {{minimum}}"
},
"set": {
"exact": "Invalid input",
"inclusive": "Invalid input",
"not_inclusive": "Invalid input"
},
"date": {
"exact": "Date must be exactly {{- minimum, datetime}}",
"inclusive": "Date must be greater than or equal to {{- minimum, datetime}}",
"not_inclusive": "Date must be greater than {{- minimum, datetime}}"
}
},
"too_big": {
"array": {
"exact": "Array must contain exactly {{maximum}} element(s)",
"inclusive": "Array must contain at most {{maximum}} element(s)",
"not_inclusive": "Array must contain less than {{maximum}} element(s)"
},
"string": {
"exact": "String must contain exactly {{maximum}} character(s)",
"inclusive": "String must contain at most {{maximum}} character(s)",
"not_inclusive": "String must contain under {{maximum}} character(s)"
},
"number": {
"exact": "Number must be exactly {{maximum}}",
"inclusive": "Number must be less than or equal to {{maximum}}",
"not_inclusive": "Number must be less than {{maximum}}"
},
"set": {
"exact": "Invalid input",
"inclusive": "Invalid input",
"not_inclusive": "Invalid input"
},
"date": {
"exact": "Date must be exactly {{- maximum, datetime}}",
"inclusive": "Date must be smaller than or equal to {{- maximum, datetime}}",
"not_inclusive": "Date must be smaller than {{- maximum, datetime}}"
}
}
},
"validations": {
"email": "email",
"url": "url",
"uuid": "uuid",
"cuid": "cuid",
"regex": "regex",
"datetime": "datetime"
},
"types": {
"function": "function",
"number": "number",
"string": "string",
"nan": "nan",
"integer": "integer",
"float": "float",
"boolean": "boolean",
"date": "date",
"bigint": "bigint",
"undefined": "undefined",
"symbol": "symbol",
"null": "null",
"array": "array",
"object": "object",
"unknown": "unknown",
"promise": "promise",
"void": "void",
"never": "never",
"map": "map",
"set": "set"
}
}