The purpose of this addon is to simplify the process of creating and validating schema-based JSON documents.
var schema = new Schema(jsonBlob);
var document = schema.buildDocument();
item = document.addItem();
item.set('description', 'Headquarters');
item.set('streetAddress', '155 Water St');
document.dump();
[{
"description": "Headquarters",
"streetAddress": "155 Water St"
}]
var schema = new Schema(jsonBlob);
var document = schema.buildDocument();
document.set('description', 'Headquarters');
document.set('streetAddress', '155 Water St');
document.dump();
{
"description": "Headquarters",
"streetAddress": "155 Water St"
}
var url = 'https://gridiron.aptible.com/schemas/workforce_locations/v0.0.3';
Schema.load(url).then((schema) => {
var document = schema.buildDocument();
var location = document.addItem();
location.set('address', '155 Water St');
});
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.