src/browser/schemaValidator.js
function validateObject(node, schema, key) {
    if (typeof node == "object") {
      try {
        validateModel(node, schema[SCHEMADATA]);
      } catch (e) {
        throw new ValidationException(e.message + " at " + key + ".");
      }
    } else {
      throw new ValidationException("Expected object for " + key);
    }
  }
function validateObject(node, schema, key) {
    if (typeof node == "object") {
      try {
        validateModel(node, schema[SCHEMADATA]);
      } catch (e) {
        throw new ValidationException(e.message + " at " + key + ".");
      }
    } else {
      throw new ValidationException("Expected object for " + key);
    }
  }
function validateObject ( node , schema , key ) { if ( typeof node == "object" ) { try { validateModel ( node , schema [ SCHEMADATA ] ) ; } catch ( e ) { throw new ValidationException ( e . message + " at " + key + "." ) ; } } else { throw new ValidationException ( "Expected object for " + key ) ; } }
Validate an object node
@param  {[type]} node   [description]
@param  {[type]} schema [description]
@param  {[type]} key    [description]
@return {[type]}        [description]
Validate an object node