You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
"use strict";
|
|
|
|
// NOTE: For use with eg. allowExtraProperties, to blacklist certain specific properties
|
|
|
|
const ValidationError = require("@validatem/error");
|
|
|
|
module.exports = function (value) {
|
|
if (value !== undefined) {
|
|
throw new ValidationError("Value exists in a place that should be empty");
|
|
}
|
|
};
|