Skip to content

Commit

Permalink
new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Jun 20, 2014
1 parent 3e0c862 commit 8808de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resume-schema",
"version": "0.0.0",
"version": "0.0.1",
"description": "schema ======",
"main": "validator.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var schema = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'schema.json'),



function resumeValidator(resumeJson, callback) {
function validate(resumeJson, callback) {
ZSchema.validate(resumeJson, schema)
.then(function(report){
callback(report, null);
Expand All @@ -17,5 +17,7 @@ function resumeValidator(resumeJson, callback) {
callback(null, err);
})
}
module.exports = resumeValidator;
module.exports = {
validate: validate
}

0 comments on commit 8808de5

Please sign in to comment.