2.2.1 • Published 4 years ago

kosmos-schemas v2.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

DEPRECATED Please use @kosmos/schemas instead.

This repository/module contains JSON Schema definitions as well as examples for Kosmos data formats.

Usage

You can import these schemas to validate data in JavaScript programs. For example using npm and the tv4 JSON Schema validator:

let tv4 = require('tv4');
let schemas = require('kosmos-schemas');

let contributor = {
  name: "Tyrion"
}

let result = tv4.validate(contributor, schemas['contributor']);

if (result) {
  console.log('Your data is valid');
} else {
  console.log('Your data is not valid:');
  console.log(tv4.error);
}
2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago