JSON Schema definitions and examples for Kosmos data formats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
raucao af4b4407b8
3 weeks ago
.github Add release-drafter config 2 years ago
examples Initial expense schema 2 years ago
schemas Use CommonJS for schema files 2 years ago
.gitignore Support browserification of module 5 years ago
.jshintrc Add JSHint config 5 years ago
README.md Add npm link/version to README 2 years ago
index.js Use CommonJS for schema files 2 years ago
package-lock.json 3.1.0 3 weeks ago
package.json 3.1.0 3 weeks ago



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


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:');