git ssb

0+

Piet / ssb-loomio



Tree: 54da6278f7b2e4b69c93d48ac2318edec1ca00f7

Files: 54da6278f7b2e4b69c93d48ac2318edec1ca00f7 / errors / sync / isPositionLateError.js

462 bytesRaw
1const Validator = require('is-my-json-valid')
2const schema = require('../schema/positionLateError')
3const validator = Validator(schema, {verbose: true})
4
5// server is not used here. Closure pattern is just for consistency of use with other functions.
6module.exports = function isPositionLateError (obj) {
7 const result = validator(obj)
8
9 // exposes error messages provided by is-my-json-valid
10 isPositionLateError.errors = validator.errors
11
12 return result
13}
14

Built with git-ssb-web