An open API service indexing awesome lists of open source software.

https://github.com/fd/schemata.js

ES6 ready JSON-Schema validator
https://github.com/fd/schemata.js

Last synced: over 1 year ago
JSON representation

ES6 ready JSON-Schema validator

Awesome Lists containing this project

README

          

# schemata.js

[![Sauce Test Status](https://saucelabs.com/browser-matrix/schematajs.svg)](https://saucelabs.com/u/schematajs)

```js
import {Schema} from 'schemata.js';

Schema.import('http://json-schema.org/card')
.then(schema => {
var info = schema.validate({
"familyName": "Menke",
"givenName": "Simon",
});

if (!info.valid) {
console.log(info.errors);
}
});
```