Skip to content

Commit

Permalink
feat(index): add options validation (schema-utils)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Dec 16, 2017
1 parent a548d0b commit 7bd5896
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lib/options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"type": "object",
"properties": {
"ident": {
"type": "string"
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"ctx": {
"type": "object"
}
},
"additionalProperties": false
},
"parser": {
"oneOf": [
{ "type": "string" },
{ "type": "object" },
{ "instanceof": "Function" }
]
},
"plugins": {
"oneOf": [
{ "type": "array" },
{ "type": "object" },
{ "instanceof": "Function" }
]
}
},
"additionalProperties": false
}

0 comments on commit 7bd5896

Please sign in to comment.