Comparing version 0.5.0 to 0.5.2
'use strict'; | ||
var doT = require('dot') | ||
, fs = require('fs') | ||
, resolve = require('./resolve') | ||
var resolve = require('./resolve') | ||
, util = require('./util') | ||
@@ -12,4 +10,3 @@ , equal = require('./equal'); | ||
var RULES = require('./rules') | ||
, validateTemplate = fs.readFileSync(__dirname + '/validate.dot.js') | ||
, validateGenerator = doT.compile(validateTemplate, { definitions: RULES.defs }); | ||
, validateGenerator = require('../dotjs/validate'); | ||
@@ -16,0 +13,0 @@ module.exports = compile; |
{ | ||
"name": "ajv", | ||
"version": "0.5.0", | ||
"version": "0.5.2", | ||
"description": "Another JSON schema Validator", | ||
@@ -25,3 +25,2 @@ "main": "lib/ajv.js", | ||
"dependencies": { | ||
"dot": "^1.0.3", | ||
"json-stable-stringify": "^1.0.0" | ||
@@ -31,6 +30,8 @@ }, | ||
"chai": "^3.0.0", | ||
"dot": "^1.0.3", | ||
"glob": "^5.0.10", | ||
"js-beautify": "^1.5.6", | ||
"mocha": "^2.2.5" | ||
"mocha": "^2.2.5", | ||
"watch": "^0.16.0" | ||
} | ||
} |
# ajv - Another JSON Schema Validator | ||
One of the fastest JSON Schema validators for node.js. It uses [doT templates](https://github.com/olado/doT) to generate super-fast validating functions. | ||
One of the fastest JSON Schema validators for node.js and browser. | ||
It uses precompiled [doT templates](https://github.com/olado/doT) to generate super-fast validating functions. | ||
[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv) | ||
@@ -153,2 +156,14 @@ [![npm version](https://badge.fury.io/js/ajv.svg)](http://badge.fury.io/js/ajv) | ||
## Contributing | ||
All validation functions are generated using doT templates in dot folder. Templates are precompiled so doT is not a run-time dependency. | ||
`bin/compile_dots` to compile templates to dotjs folder | ||
`bin/watch_dots` to automatically compile templates when files in dot folder change | ||
There is pre-commit hook that runs compile_dots and tests. | ||
## Changes history | ||
@@ -155,0 +170,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
329953
1
147
8798
183
2
6
- Removeddot@^1.0.3
- Removeddot@1.1.3(transitive)