Closed lazdmx closed 13 years ago
I ran your test and JSV properly reported an error for the second item. Can not reproduce.
Ouch... exactly, but try this
[42, 42.0]
That will properly pass because the "integer" type only enforces that the number is divisible by one.
There is an error in type checking, which allows to use non-allowable values if requested type value can be taken through conversion. For example, if I have a scheme like this
it allows me to have instances like these:
[ 42, "42", 42.0 ]