code: function resolveInheritance(derived) {
      var base = derived['allOf'];
      if (defined(base)) {
          resolveInheritance(base);
  
          for (var singleBase in base) {
              mergeProperties(derived, base[singleBase]);
          }
  
          delete derived['allOf'];
      }
  
      for (var name in derived) {
          if (derived.hasOwnProperty(name)) {
              if (typeof derived[name] === 'object') {
                  resolveInheritance(derived[name]);
              }
          }
      }
  }
docs: ////////////////////////////////////////////////////////////////////////////// 
  @function resolveInheritance
  Recursively finds schemas being referenced within the 'allOf' properties and merges
  those properties into the referencing part of the schema.
  @param  {object} derived - The json schema object that may have an 'allOf' property that needs resolving.
  @return {object} The resolved json schema object.