Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 388 Bytes
#revalidator = require 'revalidator'
### Validate Scores Connect Middleware
#module.exports = (validateScore) ->
#revalidator.validate.messages.score = 'Score Value is Required...'
#result = revalidator.validate validateScore,
#properties:
#score:
#description: 'Score is required'
#type: 'string'
#minLength: 1
#required: true
#result