Export to GitHub

jsonschema - issue #8

maxDecimal not working


Posted on Dec 5, 2008 by Happy Kangaroo

^ 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"); }

Comment #1

Posted on Apr 16, 2009 by Swift Panda

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium