UNPKG

validate-types

Version:

Validate object properties against type schema

13 lines (12 loc) 284 B
module.exports = { name: 'readOnly', validate: function(params) { return !params.testConfig; }, message: function(params) { return 'Field "' + params.fieldName + '" is read only'; }, skipFurtherTests: function() { return true; } };