forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajv.ts
More file actions
38 lines (37 loc) · 633 Bytes
/
Copy pathajv.ts
File metadata and controls
38 lines (37 loc) · 633 Bytes
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
import Ajv from "ajv";
import addFormats from "ajv-formats";
export const ajv = addFormats(
new Ajv({
strict: true,
removeAdditional: false,
useDefaults: true,
allErrors: true,
coerceTypes: true,
}),
{
formats: [
"date",
"time",
"date-time",
"duration",
"uri",
"uri-reference",
"uri-template",
"email",
"hostname",
"ipv4",
"ipv6",
"regex",
"uuid",
"json-pointer",
"relative-json-pointer",
"byte",
"int32",
"int64",
"float",
"double",
"password",
"binary",
],
}
);