readme.md 574 Bytes
Newer Older
Jaap Karan Singh's avatar
Jaap Karan Singh committed
1 2 3 4 5 6
JSON Schema Validator
=====================

jsonschema validator with custom types and attributes


7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Usage
-----

```js
var validator = require('jsonschema-validator').validator;

// regexp
validator.validate(/abc/, { type: 'regexp' });

// error
validator.validate(new Error(), { type: 'error' });

// objectid
validator.validate('123456789012345678901234', { type: 'objectId' });
```


Jaap Karan Singh's avatar
Jaap Karan Singh committed
24 25 26
Changelog
---------

Jaap Karan Singh's avatar
Jaap Karan Singh committed
27 28 29
### v0.1.0
- Changed namespace to `js` from `ht`

30 31 32 33 34
### v0.0.2
- Removed dependency on `mongoskin`
- Added some tests
- Removed shrinkwrap

Jaap Karan Singh's avatar
Jaap Karan Singh committed
35 36
### v0.0.1
- Initial commit