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

Method validate

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

Source from the content-addressed store, hash-verified

289 super(typeof length === 'object' && length || { length, decimals });
290 }
291 validate(value) {
292 if (!Validator.isFloat(String(value))) {
293 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid float', value));
294 }
295 return true;
296 }
297}
298
299/**

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected