allow additional properties only at first level

This commit is contained in:
oleg 2015-12-31 23:58:39 +03:00
parent e5a81b2e92
commit 99f1eb7b53
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,8 @@ exports.validateConfig = function(config, callback) {
type: 'object',
properties: {
cmd: {type: 'string', required: true},
name: {type: 'string'},
type: {enum: ['shell']},
shell: {type: 'string'}
}
}

View File

@ -5,7 +5,7 @@ var conform = require('conform'),
module.exports = function(params, schema, validateOptions) {
var defaultValidateOptions = {
additionalProperties: true,
additionalProperties: false,
failOnFirstError: true,
cast: true,
castSource: true,