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

Method validate

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

Source from the content-addressed store, hash-verified

340 return 'DECIMAL';
341 }
342 validate(value) {
343 if (!Validator.isDecimal(String(value))) {
344 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid decimal', value));
345 }
346 return true;
347 }
348}
349
350// TODO: Create intermediate class

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected