cic-schemas-data-validator

1.0.0-alpha.3 • Public • Published

cic-schemas-data-validator

import { validatePerson } from 'cic-schemas-data-validator'

const data = { data: 'that will not validate' }

const personValidationErrors = await validatePerson(data)

if (personValidationErrors) {
  personValidationErrors.map(e => console.log(`${e.message}`))
}

Readme

Keywords

none

Package Sidebar

Install

npm i cic-schemas-data-validator

Weekly Downloads

1

Version

1.0.0-alpha.3

License

GPLv3

Unpacked Size

10.3 kB

Total Files

4

Last publish

Collaborators

  • geoffturk