lib/spotify.js
function(schema, dontRecurse) {
    if ('string' === typeof schema) {
      var schemaName = schema.split("#");
      schema = schemas.build(schemaName[0], schemaName[1]);
      if (!schema)
        throw new Error('Could not load schema: ' + schemaName.join('#'));
    } else if (schema && !dontRecurse && (!schema.hasOwnProperty('parse') && !schema.hasOwnProperty('serialize'))) {
      var keys = Object.keys(schema);
      keys.forEach(function(key) {
        schema[key] = loadSchema(schema[key], true);
      });
    }
    return schema;
  }
function(schema, dontRecurse) {
    if ('string' === typeof schema) {
      var schemaName = schema.split("#");
      schema = schemas.build(schemaName[0], schemaName[1]);
      if (!schema)
        throw new Error('Could not load schema: ' + schemaName.join('#'));
    } else if (schema && !dontRecurse && (!schema.hasOwnProperty('parse') && !schema.hasOwnProperty('serialize'))) {
      var keys = Object.keys(schema);
      keys.forEach(function(key) {
        schema[key] = loadSchema(schema[key], true);
      });
    }
    return schema;
  }
function ( schema , dontRecurse ) { if ( 'string' === typeof schema ) { var schemaName = schema . split ( "#" ) ; schema = schemas . build ( schemaName [ 0 ] , schemaName [ 1 ] ) ; if ( ! schema ) throw new Error ( 'Could not load schema: ' + schemaName . join ( '#' ) ) ; } else if ( schema && ! dontRecurse && ( ! schema . hasOwnProperty ( 'parse' ) && ! schema . hasOwnProperty ( 'serialize' ) ) ) { var keys = Object . keys ( schema ) ; keys . forEach ( function ( key ) { schema [ key ] = loadSchema ( schema [ key ] , true ) ; } ) ; } return schema ; }
load payload and response schemas
load payload and response schemas