Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum:0 should throw an error against minus values #24

Open
craftgear opened this issue Feb 8, 2012 · 0 comments
Open

minimum:0 should throw an error against minus values #24

craftgear opened this issue Feb 8, 2012 · 0 comments

Comments

@craftgear
Copy link

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant