JSON Schema Validator in Cell.js
Check out the demo here
There are two ways (You can see an actual usage here: https://github.com/intercellular/jsonschema/blob/master/index.html#L30) :
Use the value
attribute to initialize with your own value.
var app = App({
schema: {
value: {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
},
data: {
value: {
"name": "Ethan"
}
}
});
Use the url
attribute to fetch a remote JSON object for usage.
var app = App({
schema: {
url: "./example/schema.json"
},
data: {
url: "./example/data.json"
}
});