open-index/open-npm huggingface dataset:
npm package: @royalschedule/input-verifier
Description: A script that verifies the structure of the json input to be processed by the scheduling algorithm.
Author: Royal Schedule
Latest version: 6.0.4

# Input verifier

A script that verifies the structure of the json input to be processed by the scheduling algorithm.


## Installation

`npm i -S @royalschedule/input-verifier`


## Usage

```typescript
import { verify } from '@royalschedule/input-verifier';

// analyze the json input
const result = verify({ ... });

if (result.valid) {
  console.log('Valid input 🎉');
} else {
  console.log(`${result.errors.length} error(s) found`);
}
```