SimpleSchema: Conditionally required field is not working
问题 This is how I'm doing a validation using SimpleSchema with a conditionally required field ( module ). So this should only be required if type has the value 'start' client const module = 'articles', _id = 'bmphCpyHZLhTc74Zp' console.log(module, _id) // returns as expected 'articles' and 'bmphCpyHZLhTc74Zp' example.call( { type : 'start', module: module, _id : _id }, (error, result) => { if (error) console.log(error) } ) server example = new ValidatedMethod({ name : 'example', validate: new