bpdusk / jsonschema

Automatically exported from code.google.com/p/jsonschema
0 stars 0 forks source link

maxDecimal not working #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
^ is not the correct operator....
on the check you should use (around line 165):

if (typeof schema.maxDecimal == 'number' && (value *
Math.pow(10,schema.maxDecimal))%1) {
  addError("may only have " + schema.maxDecimal + " digits of decimal places");
}

Original issue reported on code.google.com by bruno.gradua@gmail.com on 5 Dec 2008 at 2:25

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 16 Apr 2009 at 8:38