git ssb

0+

Piet / ssb-loomio



Tree: fe44824d083024ca4463bd4448e0acf43259b9c1

Files: fe44824d083024ca4463bd4448e0acf43259b9c1 / errors / sync / isPositionChoiceError.js

371 bytesRaw
1const Validator = require('is-my-json-valid')
2const schema = require('../schema/positionChoiceError')
3const validator = Validator(schema, {verbose: true})
4
5module.exports = function isPositionChoiceError (obj) {
6 const result = validator(obj)
7
8 // exposes error messages provided by is-my-json-valid
9 isPositionChoiceError.errors = validator.errors
10
11 return result
12}
13

Built with git-ssb-web