MCPcopy
hub / github.com/sequelize/sequelize / validate

Method validate

lib/data-types.js:248–253  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

246 */
247class INTEGER extends NUMBER {
248 validate(value) {
249 if (!Validator.isInt(String(value))) {
250 throw new sequelizeErrors.ValidationError(util.format(`%j is not a valid ${this.key.toLowerCase()}`, value));
251 }
252 return true;
253 }
254}
255
256/**

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected