garycourt/JSV — Issue #27: additionalProperties not working ?
Author: Xample
Created: 2011-12-29 10:32:21+00:00
State: open

Hi, I tried:

env.validate([{foo:"string",bar:"nan"}], {
properties:{
foo:{type:"string"}
},
additionalProperties:{
type:"number"
}
})

I expected to get an error on the additional property applied on "bar" which should have been a number, but I did not. Is that correct ?