UNPKG

json-api-schema

Version:

JSON Api Schema is a JSON dialect that can describe any Web Based API that uses JSON to exchange data.

25 lines (15 loc) 660 B
var Entity, Type, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Entity = require('./entity'); Type = (function(_super) { __extends(Type, _super); Type.entity("Type"); Type.accessors("name", ["get", "set"]); Type.children("schema"); function Type(options) { Type.__super__.constructor.call(this, options); } return Type; })(Entity); module.exports = Type;