Amanda icon indicating copy to clipboard operation
Amanda copied to clipboard

minimum:0 should throw an error against minus values

Open craftgear opened this issue 13 years ago • 0 comments

  var amanda = require('amanda')
  var person = {
    type: 'object',
    properties: {
      age: {
        type: 'number',
        minimum: 1,

      }
    }
  }
  amanda({age: -1},  person, function(error){
    console.log(error)
  })

this code should throw an error, but it doesn't.

craftgear avatar Feb 08 '12 05:02 craftgear