mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-10 22:05:07 +00:00
allow additional properties only at first level
This commit is contained in:
parent
e5a81b2e92
commit
99f1eb7b53
@ -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'}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user