Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Nov 3, 2016
1 parent 8391717 commit 4ebadcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/validationSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var ajv = new Ajv({
verbose: true
});

function validationSchema(schema, options) {
function validateSchema(schema, options) {
if(Array.isArray(options)) {
var errors = options.map(validateObject.bind(this, schema));
errors.forEach(function(list, idx) {
Expand Down Expand Up @@ -59,4 +59,4 @@ function filterErrors(errors) {
return newErrors;
}

module.exports = validationSchema;
module.exports = validateSchema;

0 comments on commit 4ebadcd

Please sign in to comment.