packages/plugin-hapi/schemas/hapi.json
{
"$id": "hapi",
"type": "object",
"additionalProperties": false,
"required": [
"attachSocketio",
"plugins",
"server"
],
"properties": {
"attachSocketio": {
"default": false,
"type": "boolean"
},
"plugins": {
"default": {},
"type": "object",
"required": [
"list"
],
"properties": {
"list": {
"default": [],
"type": "array",
"items": {
"type": "object",
"required": [
"plugin"
],
"additionalProperties": false,
"properties": {
"plugin": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object"
}
]
},
"options": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object"
}
],
"default": {}
}
}
}
},
"options": {
"type": "object"
}
}
},
"server": {
"default": {},
"type": "object"
},
"views": {
"type": "object",
"required": [
"engines",
"path"
],
"properties": {
"engines": {
"type": "object",
"patternProperties": {
".*": {
"type": "object"
}
},
"minProperties": 1
},
"relativeTo": {
"type": "string",
"minLength": 1
},
"path": {
"type": "string",
"minLength": 1
}
}
}
}
}