diff --git a/lib/project.js b/lib/project.js index 44dbf18..c29afea 100644 --- a/lib/project.js +++ b/lib/project.js @@ -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'} } } diff --git a/lib/validateParams.js b/lib/validateParams.js index 8f8bd8f..7605cc6 100644 --- a/lib/validateParams.js +++ b/lib/validateParams.js @@ -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,