validatejs-jsonapi-formatter
v1.0.0
Published
JSON:API formatter for validate.js
Downloads
1
Readme
JSON:API Formatter for validate.js
Getting started
Installation
npm install validatejs-jsonapi-formatter
Or
yarn add validatejs-jsonapi-formatter
Usage
const { setUpFormatter } = require('validatejs-jsonapi-formatter');
const validate = require('validate.js');
setUpFormatter(validate);
validate(changeset, validation, { format: 'jsonapi' }))