code: function resolveExtensions(schema) {
  
                  var xprops, props;
  
                  xprops = getExtendedProperties(schema, []);
  
                  //unwind the property stack so that the earliest gets inheritance link
                  schema.properties = schema.properties || {};
                  function copyprop(item) { //util to get around jslint complaints about doing this directly in loop
                      schema.properties[item.key] = item.val;
                  }
  
                  while (xprops.length > 0) {
                      props = xprops.pop();
                      props.forEach(copyprop);
                  }
              }
docs: looks in JSONSchema objects for "extends" and copies properties to children