Created
April 22, 2012 21:13
-
-
Save raytiley/2466970 to your computer and use it in GitHub Desktop.
Design Phase 4 - Report Validator Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Anything not exported would be private and not accessible from the loaded module. | |
var privateVariable = 'I would be hidden'; | |
//Public Method | |
//Returns JSON object of invalid properties and error descriptions | |
exports.validateReport = function(report) { | |
var errors = undefined; | |
//Return an object of propertyName : errorMessages for all invalid fields | |
//If object is valid return undefined | |
return errors; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment