8000 minimum:0 should throw an error against minus values · Issue #24 · Baggz/Amanda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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.

786E Already on GitHub? Sign in to your account

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
0