model.js
function Model(schema, examples, options) {
    options = options || {};

    this._schema = schema || null;
    this._examples = examples || {};
    this._additionalValidators = options.additionalValidators || [];

    this.debugConstructor = options.debug || debug;
    this.debug = this.debugConstructor(this.debugTopic || 'oada:model');
    this.errorConstructor = options.error || debug;
    this.error = this.errorConstructor(this.errorTopic || 'oada:model:error');
}
function Model(schema, examples, options) {
    options = options || {};

    this._schema = schema || null;
    this._examples = examples || {};
    this._additionalValidators = options.additionalValidators || [];

    this.debugConstructor = options.debug || debug;
    this.debug = this.debugConstructor(this.debugTopic || 'oada:model');
    this.errorConstructor = options.error || debug;
    this.error = this.errorConstructor(this.errorTopic || 'oada:model:error');
}
function Model ( schema , examples , options ) { options = options || { } ; this . _schema = schema || null ; this . _examples = examples || { } ; this . _additionalValidators = options . additionalValidators || [ ] ; this . debugConstructor = options . debug || debug ; this . debug = this . debugConstructor ( this . debugTopic || 'oada:model' ) ; this . errorConstructor = options . error || debug ; this . error = this . errorConstructor ( this . errorTopic || 'oada:model:error' ) ; }
A format model. Contains _schema, _examples, and validation.
@constructor
@param {*} schema - A format _schema in what every form validate() needs
@param {Array<*>} examples - An array of _examples in native form
@param {function} options.addtionalValidators - An array of validating
functions.
@param {function} options.debug - A debug logger constructor
@param {function} options.error - A custom error logger constructor
A format model . Contains _schema _examples and validation .