Skip to content

Commit 7bd5896

Browse files
feat(index): add options validation (schema-utils)
1 parent a548d0b commit 7bd5896

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

lib/options.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"ident": {
5+
"type": "string"
6+
},
7+
"config": {
8+
"type": "object",
9+
"properties": {
10+
"path": {
11+
"type": "string"
12+
},
13+
"ctx": {
14+
"type": "object"
15+
}
16+
},
17+
"additionalProperties": false
18+
},
19+
"parser": {
20+
"oneOf": [
21+
{ "type": "string" },
22+
{ "type": "object" },
23+
{ "instanceof": "Function" }
24+
]
25+
},
26+
"plugins": {
27+
"oneOf": [
28+
{ "type": "array" },
29+
{ "type": "object" },
30+
{ "instanceof": "Function" }
31+
]
32+
}
33+
},
34+
"additionalProperties": false
35+
}

0 commit comments

Comments
 (0)