This package has been deprecated

Author message:

Validation for the sengi system is handled by the jsonotron-js package now.

sengi-validation

1.8.1 • Public • Published

Sengi-Validation

npm JavaScript Style Guide

This library provides validation functions for the (Sengi)[https://github.com/karlhulme/sengi] document-database system.

It provides functions for checking that a given document adheres to it's document type. It also validates the other resources: enum types, schema types, format validators and role types.

This library can be used to to verify doc types independently of the engine, including as part of a set of automated tests.

Installation

npm install sengi-validation

Development

Code base adheres to the rules chosen by https://standardjs.com/. Code is formatted with 2 spaces.

Tests are written using Jest with 100% coverage.

npm test

Continuous Deployment

Any pushes or pull-requests on non-master branches will trigger the test runner.

Any pushes to master will cause the library to be re-published.

Readme

Keywords

none

Package Sidebar

Install

npm i sengi-validation

Weekly Downloads

1

Version

1.8.1

License

MIT

Unpacked Size

112 kB

Total Files

43

Last publish

Collaborators

  • karlhulme