mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 06:15:08 +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',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
cmd: {type: 'string', required: true},
|
cmd: {type: 'string', required: true},
|
||||||
|
name: {type: 'string'},
|
||||||
|
type: {enum: ['shell']},
|
||||||
shell: {type: 'string'}
|
shell: {type: 'string'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ var conform = require('conform'),
|
|||||||
|
|
||||||
module.exports = function(params, schema, validateOptions) {
|
module.exports = function(params, schema, validateOptions) {
|
||||||
var defaultValidateOptions = {
|
var defaultValidateOptions = {
|
||||||
additionalProperties: true,
|
additionalProperties: false,
|
||||||
failOnFirstError: true,
|
failOnFirstError: true,
|
||||||
cast: true,
|
cast: true,
|
||||||
castSource: true,
|
castSource: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user